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.
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 to true, 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 to false disables this check, while setting it to true enables it. Ensure that you adjust this parameter according to your application's needs.