# create static method

FaceIndexer create(

1. int maximumTemplateCount,
2. FaceTemplateFormat format

)

Creates an empty face indexer

param maximumTemplateCount Maximum number of templates that this face indexer can hold. param format Face template format accepted by this face indexer. return The newly created face indexer. throws FaceException An error has occurred during Face Library execution.

## Implementation

    static FaceIndexer create(int maximumTemplateCount, FaceTemplateFormat format) {
      FaceIndexer faceIndexer = FaceIndexer();
      var err = faceSDK.id3FaceIndexer_Create(faceIndexer.handle, maximumTemplateCount, format.value);
      if (err != FaceError.success.value) {
        faceIndexer.dispose();
        throw FaceException(err);
      }
      return faceIndexer;
    }