This repository was archived by the owner on Apr 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export class MLKitFaceDetection extends MLKitFaceDetectionBase {
3333 for ( let i = 0 ; i < faces . size ( ) ; i ++ ) {
3434 const face = faces . get ( i ) ;
3535 result . faces . push ( {
36+ bounds : boundingBoxToBounds ( face . getBoundingBox ( ) ) ,
3637 smilingProbability : face . getSmilingProbability ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . UNCOMPUTED_PROBABILITY ? face . getSmilingProbability ( ) : undefined ,
3738 leftEyeOpenProbability : face . getLeftEyeOpenProbability ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . UNCOMPUTED_PROBABILITY ? face . getLeftEyeOpenProbability ( ) : undefined ,
3839 rightEyeOpenProbability : face . getRightEyeOpenProbability ( ) !== com . google . firebase . ml . vision . face . FirebaseVisionFace . UNCOMPUTED_PROBABILITY ? face . getRightEyeOpenProbability ( ) : undefined ,
Original file line number Diff line number Diff line change @@ -90,7 +90,8 @@ export function detectFacesOnDevice(options: MLKitDetectFacesOnDeviceOptions): P
9090 smilingProbability : face . hasSmilingProbability ? face . smilingProbability : undefined ,
9191 leftEyeOpenProbability : face . hasLeftEyeOpenProbability ? face . leftEyeOpenProbability : undefined ,
9292 rightEyeOpenProbability : face . hasRightEyeOpenProbability ? face . rightEyeOpenProbability : undefined ,
93- trackingId : face . hasTrackingID ? face . trackingID : undefined
93+ trackingId : face . hasTrackingID ? face . trackingID : undefined ,
94+ bounds : face . frame
9495 } ) ;
9596 }
9697 resolve ( result ) ;
You can’t perform that action at this time.
0 commit comments