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
acceptOccludedFacesandfaceOcclusionEstimatorEnabledtofalsefor 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
OccludedFaceerror 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,
acceptOccludedMouthis 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
mouthCheckparameter controls whether the system should check for occluded mouths. Setting it tofalsedisables this check, while setting it totrueenables it. Ensure that you adjust this parameter according to your application's needs.