@@ -37,7 +37,9 @@ export class MLKitFaceDetection extends MLKitFaceDetectionBase {
3737 smilingProbability : face . getSmilingProbability ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . UNCOMPUTED_PROBABILITY ? face . getSmilingProbability ( ) : undefined ,
3838 leftEyeOpenProbability : face . getLeftEyeOpenProbability ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . UNCOMPUTED_PROBABILITY ? face . getLeftEyeOpenProbability ( ) : undefined ,
3939 rightEyeOpenProbability : face . getRightEyeOpenProbability ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . UNCOMPUTED_PROBABILITY ? face . getRightEyeOpenProbability ( ) : undefined ,
40- trackingId : face . getTrackingId ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . INVALID_ID ? face . getTrackingId ( ) : undefined
40+ trackingId : face . getTrackingId ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . INVALID_ID ? face . getTrackingId ( ) : undefined ,
41+ headEulerAngleY : face . getHeadEulerAngleY ( ) ,
42+ headEulerAngleZ : face . getHeadEulerAngleZ ( )
4143 } ) ;
4244 }
4345
@@ -98,7 +100,9 @@ export function detectFacesOnDevice(options: MLKitDetectFacesOnDeviceOptions): P
98100 smilingProbability : face . getSmilingProbability ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . UNCOMPUTED_PROBABILITY ? face . getSmilingProbability ( ) : undefined ,
99101 leftEyeOpenProbability : face . getLeftEyeOpenProbability ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . UNCOMPUTED_PROBABILITY ? face . getLeftEyeOpenProbability ( ) : undefined ,
100102 rightEyeOpenProbability : face . getRightEyeOpenProbability ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . UNCOMPUTED_PROBABILITY ? face . getRightEyeOpenProbability ( ) : undefined ,
101- trackingId : face . getTrackingId ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . INVALID_ID ? face . getTrackingId ( ) : undefined
103+ trackingId : face . getTrackingId ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . INVALID_ID ? face . getTrackingId ( ) : undefined ,
104+ headEulerAngleY : face . getHeadEulerAngleY ( ) ,
105+ headEulerAngleZ : face . getHeadEulerAngleZ ( )
102106 } ) ;
103107 }
104108 }
0 commit comments