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 +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ function getFaceDetector(options: MLKitDetectFacesOnDeviceOptions): any {
5454 const faceDetectorOptions =
5555 new com . google . firebase . ml . vision . face . FirebaseVisionFaceDetectorOptions . Builder ( )
5656 . setModeType ( options . detectionMode === "accurate" ? com . google . firebase . ml . vision . face . FirebaseVisionFaceDetectorOptions . ACCURATE_MODE : com . google . firebase . ml . vision . face . FirebaseVisionFaceDetectorOptions . FAST_MODE )
57- // .setLandmarkType(com.google.firebase.ml.vision.face.FirebaseVisionFaceDetectorOptions.ALL_LANDMARKS) // TODO
58- // .setClassificationType(com.google.firebase.ml.vision.face.FirebaseVisionFaceDetectorOptions.ALL_CLASSIFICATIONS) // TODO
57+ . setLandmarkType ( com . google . firebase . ml . vision . face . FirebaseVisionFaceDetectorOptions . ALL_LANDMARKS ) // TODO make configurable
58+ . setClassificationType ( com . google . firebase . ml . vision . face . FirebaseVisionFaceDetectorOptions . ALL_CLASSIFICATIONS ) // TODO make configurable
5959 . setMinFaceSize ( options . minimumFaceSize )
6060 . setTrackingEnabled ( options . enableFaceTracking === true )
6161 . build ( ) ;
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ function getDetector(options: MLKitDetectFacesOnDeviceOptions): FIRVisionFaceDet
6262 const firVision : FIRVision = FIRVision . vision ( ) ;
6363 const firOptions = FIRVisionFaceDetectorOptions . new ( ) ;
6464 firOptions . modeType = options . detectionMode === "accurate" ? FIRVisionFaceDetectorMode . Accurate : FIRVisionFaceDetectorMode . Fast ;
65- // firOptions.landmarkType = FIRVisionFaceDetectorLandmark.All; // TODO
66- // firOptions.classificationType = FIRVisionFaceDetectorClassification.All; // TODO
65+ firOptions . landmarkType = FIRVisionFaceDetectorLandmark . All ; // TODO make configurable
66+ firOptions . classificationType = FIRVisionFaceDetectorClassification . All ; // TODO make configurable
6767 firOptions . minFaceSize = options . minimumFaceSize ;
6868 firOptions . isTrackingEnabled = options . enableFaceTracking === true ;
6969 return firVision . faceDetectorWithOptions ( firOptions ) ;
You can’t perform that action at this time.
0 commit comments