- SDK Version: 43
- Platforms(Android/iOS/web/all): all
I’m trying to get the information from smilingProbability, leftEyeOpenProbabilitye rightEyeOpenProbability
.
I folowed the doc : ‘faceDetectionClassifications’ should be selected as ‘all’. And it doesn’t work.
I saw another post for the same issue, but with no response.
My code :
<Camera
style={styles.camera}
type={type}
autoFocus={Camera.Constants.AutoFocus.on}
onCameraReady={() => setIsCameraReady(true)}
onFacesDetected={handleFacesDetected}
faceDetectorSettings={{
mode: FaceDetector.FaceDetectorMode.accurate,
detectLandmarks: FaceDetector.FaceDetectorLandmarks.all,
runClassifications: FaceDetector.FaceDetectorClassifications.all,
minDetectionInterval: 100,
tracking: true,
}}
ref={cameraRef}
>
Response object :
{
"bounds": Object {
"origin": Object {
"x": 136.91060606060609,
"y": 301.782196969697,
},
"size": Object {
"height": 357.8693181818182,
"width": 357.9772727272727,
},
},
"faceID": 0,
"rollAngle": 343.01099586486816,
"yawAngle": 351.3297119140625,
}