Eye glasses Detection¶
-
ErrorCode
Trueface::SDK::detectGlasses(const FaceBoxAndLandmarks &faceBoxAndLandmarks, GlassesLabel &result, float &glassesScore)¶ Detect whether the face in the image is wearing any type of eye glasses or not
- Return
error code, see ErrorCode.
- Parameters
[in] faceBoxAndLandmarks: FaceBoxAndLandmarks returned by detectFaces() or detectLargestFace().[out] result: The predicted GlassesLabel for face image.[out] glassesScore: The glasses score for this image. This can be used for setting custom thresholds that work better for the use case. By default, we use a glasses score greater than 0.0 to determine that glasses were detected.