Liveness¶
Deprecated since version 0.17.
- SDK.detect_blink(self: tfsdk.SDK) → Tuple[tfsdk.ERRORCODE, float, float]¶
Estimate score for eyes blink.
- Returns
The
ERRORCODE
, left wink score, right wink score, in that order. Wink score indicates likelihood of eye being open (0 is closed, 1 is open). Optimal threshold is 0.4 in normal use and 0.1 in low light conditions.
Use the following guidelines for best performance:
Camera should see frontal view of the face
The eyes should be looking directly into the camera
The face should be 1 - 2 ft from the camera
Recommended 640 x 480 resolution or better
Ensure there is good lighting illuminating the eyes