Mouth estimation#
The mouth estimation determines whether the mouth in a frame is occluded by an object, such as a hand or other obstructions. By using the mouth estimation, you can ensure that your application accurately handles images where mouths may be partially covered.
Dependency on medical mask estimation#
The mouth estimation is performed only if the medical mask estimation is successful. If a medical mask is detected, the mouth estimation will not proceed.
Dependency on face occlusion estimation#
- LUNA ID for Android: Set the
acceptOccludedFaces
andfaceOcclusionEstimatorEnabled
tofalse
for mouth estimation. - LUNA ID for iOS: The face occlusion estimation is performed after the mouth estimation if both the estimation are enabled.
For details, see Face occlusion estimation.
Error handling#
- LUNA ID for Android: Returns the
OccludedFace
error message if the mouth is occluded. - LUNA ID for iOS: Returns the 1029 error code if the mouth is occluded.
Implementation#
Platform | Implementation |
---|---|
LUNA ID for Android | public val acceptOccludedMouth: Boolean = true |
LUNA ID for iOS | @property (nonatomic, assign) BOOL mouthCheck; |
Additional notes#
- LUNA ID for Android: By default,
acceptOccludedMouth
is set totrue
, allowing frames with occluded mouths to be considered as potential best shots. Adjust this setting based on your specific requirements. - LUNA ID for iOS: The
mouthCheck
parameter controls whether the system should check for occluded mouths. Setting it tofalse
disables this check, while setting it totrue
enables it. Ensure that you adjust this parameter according to your application's needs.