Skip to content

Instantly share code, notes, and snippets.

@muhwyndhamhp
Created April 8, 2022 06:05
Show Gist options
  • Save muhwyndhamhp/a3a661e1a5fca42d32000691efe355d1 to your computer and use it in GitHub Desktop.
Save muhwyndhamhp/a3a661e1a5fca42d32000691efe355d1 to your computer and use it in GitHub Desktop.
FaceDetector
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