FaceDetector: faceDetectionClassifications.all don't work on SDK 43

  1. SDK Version: 43
  2. 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,
}

Hey @alex77, can you let me know what OS versions and device models you’ve reproduced this issue on?

Cheers,
Adam

Hello !

Device : Xiaomi mi9 T pro
with android : Version 11 RKQ1

But it’s used to work fine (with FaceDetector.Constants.Classifications.all) but now with “FaceDetector.FaceDetectorClassifications.all” (which I am forced to used) it doesn’t work anymore…

Thx for helping me !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.