Estimator collections¶
99% real applications is needed one instance of faceengine and one instance of every estimators. Initialization of estimators is to slow therefore application should initialize all needing estimators on start up and re use its.
A estimator collection are a logical groped estimators. Estimators from collection are initialized in first call.
Class FaceEstimatorsCollection contains all estimators for a face.
Module contains face estimator collections.
Enum for face estimators.
ags estimator
basic attributes estimator
face descriptor estimator
emotion estimator
eye estimation (eyelid, iris landmarks and state)
gaze direction estimator
head pose estimator
mouth state estimator
warp quality estimator
Collection of lazy load face estimators.
lazy load head pose estimator
- Type
Optional[HeadPoseEstimator]
lazy load eye estimator
- Type
Optional[EyeEstimator]
lazy load gaze direction estimator
- Type
Optional[GazeEstimator]
lazy load mouth state estimator
- Type
Optional[MouthStateEstimator]
lazy load warp quality estimator
- Type
Optional[WarpQualityEstimator]
lazy load basic attributes estimator
- Type
Optional[BasicAttributesEstimator]
lazy load emotions estimator
- Type
Optional[EmotionsEstimator]
lazy load ags estimator
- Type
Optional[AGSEstimator]
lazy load face descriptor estimator
- Type
Optional[FaceDescriptorEstimator]
warper
- Type
Optional[Warper]
Get ags estimator.
If estimator is initialized it will be returned otherwise it will be initialized and returned
- Returns
estimator
- Return type
Get basic attributes estimator.
If estimator is initialized it will be returned otherwise it will be initialized and returned
- Returns
estimator
- Return type
Get head pose estimator.
If estimator is initialized it will be returned otherwise it will be initialized and returned
- Returns
estimator
- Return type
Get emotions estimator.
If estimator is initialized it will be returned otherwise it will be initialized and returned
- Returns
estimator
- Return type
Get eye estimator.
If estimator is initialized it will be returned otherwise it will be initialized and returned
- Returns
estimator
- Return type
Get current faceengine.
- Returns
self._faceEngine
- Return type
Get gaze direction estimator.
If estimator is initialized it will be returned otherwise it will be initialized and returned
- Returns
estimator
- Return type
Get head pose estimator.
If estimator is initialized it will be returned otherwise it will be initialized and returned
- Returns
estimator
- Return type
Create an estimator. Create new estimator with help self._faceengine
- Parameters
estimator – estimator for creating
- Raises
ValueError("Bad estimator type") – if estimator not found
- Return type
None
Get mouth state estimator.
If estimator is initialized it will be returned otherwise it will be initialized and returned
- Returns
estimator
- Return type
Remove estimators.
- Parameters
estimator – estimator for removing
- Return type
None
Get warp quality estimator.
If estimator is initialized it will be returned otherwise it will be initialized and returned
- Returns
estimator
- Return type