Package com.appliedrec.verid.core2
Class FaceDetectionRecognitionFactory
- java.lang.Object
-
- com.appliedrec.verid.core2.FaceDetectionRecognitionFactory
-
- All Implemented Interfaces:
IFaceDetectionFactory
,IFaceRecognitionFactory
public class FaceDetectionRecognitionFactory extends java.lang.Object implements IFaceDetectionFactory, IFaceRecognitionFactory
Default face detection and recognition factory- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description FaceDetectionRecognitionFactory(android.content.Context context)
ConstructorFaceDetectionRecognitionFactory(android.content.Context context, FaceDetectionRecognitionSettings settings)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClassifier(Classifier classifier)
Add a classifier to loadIFaceDetection
createFaceDetection()
Create an instance offace detection
.IFaceRecognition
createFaceRecognition()
Create an instance offace recognition
java.util.Set<Classifier>
getAdditionalClassifiers()
VerIDFaceTemplateVersion
getDefaultFaceTemplateVersion()
java.util.Set<VerIDFaceTemplateVersion>
getFaceTemplateVersions()
void
setDefaultFaceTemplateVersion(VerIDFaceTemplateVersion defaultFaceTemplateVersion)
void
setFaceTemplateVersions(java.util.Set<VerIDFaceTemplateVersion> faceTemplateVersions)
-
-
-
Constructor Detail
-
FaceDetectionRecognitionFactory
public FaceDetectionRecognitionFactory(@NonNull android.content.Context context, @Nullable FaceDetectionRecognitionSettings settings)
Constructor- Parameters:
context
- Application contextsettings
- Settings (optional)- Since:
- 2.0.0
-
FaceDetectionRecognitionFactory
public FaceDetectionRecognitionFactory(@NonNull android.content.Context context)
Constructor- Parameters:
context
- Application context- Since:
- 1.0.0
-
-
Method Detail
-
createFaceDetection
public IFaceDetection createFaceDetection() throws java.lang.Exception
Create an instance offace detection
.- Specified by:
createFaceDetection
in interfaceIFaceDetectionFactory
- Returns:
- Face detection
- Throws:
java.lang.Exception
- if the creation fails- Since:
- 1.0.0
-
createFaceRecognition
public IFaceRecognition createFaceRecognition() throws java.lang.Exception
Create an instance offace recognition
- Specified by:
createFaceRecognition
in interfaceIFaceRecognitionFactory
- Returns:
- Face recognition
- Throws:
java.lang.Exception
- if the creation fails- Since:
- 1.0.0
-
getDefaultFaceTemplateVersion
@Nullable public VerIDFaceTemplateVersion getDefaultFaceTemplateVersion()
- Returns:
- Default face template version
- Since:
- 2.1.0
-
setDefaultFaceTemplateVersion
public void setDefaultFaceTemplateVersion(@Nullable VerIDFaceTemplateVersion defaultFaceTemplateVersion)
- Parameters:
defaultFaceTemplateVersion
- Default face template version or null to let Ver-ID decide- Since:
- 2.1.0
-
setFaceTemplateVersions
public void setFaceTemplateVersions(java.util.Set<VerIDFaceTemplateVersion> faceTemplateVersions)
- Parameters:
faceTemplateVersions
-- Since:
- 2.8.0
-
getFaceTemplateVersions
public java.util.Set<VerIDFaceTemplateVersion> getFaceTemplateVersions()
- Returns:
- Since:
- 2.8.0
-
addClassifier
public void addClassifier(Classifier classifier)
Add a classifier to load- Parameters:
classifier
- Classifier to add- Since:
- 2.0.0
-
getAdditionalClassifiers
public java.util.Set<Classifier> getAdditionalClassifiers()
- Returns:
- Classifiers that will be loaded in addition to the classifiers shipped with the Ver-ID SDK
- Since:
- 2.0.0
-
-