Created
April 8, 2022 06:05
-
-
Save muhwyndhamhp/a3a661e1a5fca42d32000691efe355d1 to your computer and use it in GitHub Desktop.
FaceDetector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val options = FaceDetectorOptions.Builder() | |
.setPerformanceMode(FaceDetectorOptions.PERFORMANCE_MODE_FAST) | |
.setContourMode(FaceDetectorOptions.LANDMARK_MODE_NONE) // skips landmark mapping | |
.setClassificationMode(FaceDetectorOptions.CLASSIFICATION_MODE_NONE) // skips facial expressions and other classification such as wink | |
.build() | |
val faceDetector = FaceDetection.getClient(options) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment