FaceDetectorOptions.PerformanceMode
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eFaceDetectorOptions.PerformanceMode\u003c/code\u003e allows you to control the trade-off between the accuracy and speed of face detection.\u003c/p\u003e\n"],["\u003cp\u003eChoosing a more accurate mode will increase processing time, while a faster mode might detect fewer faces.\u003c/p\u003e\n"],["\u003cp\u003eThere are two performance modes: \u003ccode\u003eFaceDetectorOptions.PERFORMANCE_MODE_FAST\u003c/code\u003e and \u003ccode\u003eFaceDetectorOptions.PERFORMANCE_MODE_ACCURATE\u003c/code\u003e.\u003c/p\u003e\n"]]],["`FaceDetectorOptions.PerformanceMode` controls the accuracy and speed of face detection. Two modes are available: `PERFORMANCE_MODE_FAST`, which prioritizes speed but may detect fewer faces, and `PERFORMANCE_MODE_ACCURATE`, which prioritizes accuracy but may take longer. It implements the `Annotation` interface. The inherited methods from this interface are `annotationType()`, `equals()`, `hashCode()`, and `toString()`. These allow handling of annotations.\n"],null,["# FaceDetectorOptions.PerformanceMode\n\npublic static abstract @interface **FaceDetectorOptions.PerformanceMode** implements [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html) \nDefines options to control accuracy / speed trade-offs in performing face detection. In\ngeneral, choosing the more accurate mode will generally result in longer runtime, whereas\nchoosing the faster mode will generally result in detecting fewer faces.\n\nPerformanceMode constants - enumeration of supported Performance Mode:\n\n1. [FaceDetectorOptions.PERFORMANCE_MODE_FAST](/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#PERFORMANCE_MODE_FAST)\n2. [FaceDetectorOptions.PERFORMANCE_MODE_ACCURATE](/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions#PERFORMANCE_MODE_ACCURATE) \n\n### Inherited Method Summary\n\nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| abstract [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c? extends [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html)\\\u003e | annotationType() |\n| abstract boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| abstract int | hashCode() |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | toString() |"]]