FaceMeshDetectorOptions
Stay organized with collections
Save and categorize content based on your preferences.
Public Method Summary
boolean |
equals( Object o)
Indicates whether some other object is "equal to" this one.
|
int |
hashCode()
Returns a hash code value for the object.
|
String
|
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final int
BOUNDING_BOX_ONLY
public static final int
FACE_MESH
Public Methods
public boolean equals (Object o)
Indicates whether some other object is "equal to" this one.
public int hashCode ()
Returns a hash code value for the object.
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\u003eFaceMeshDetectorOptions\u003c/code\u003e provides configuration settings for the \u003ccode\u003eFaceMeshDetector\u003c/code\u003e in ML Kit.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two main use cases: detecting only the bounding box of a face (\u003ccode\u003eBOUNDING_BOX_ONLY\u003c/code\u003e) or detecting the face mesh along with the bounding box (\u003ccode\u003eFACE_MESH\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eA builder class (\u003ccode\u003eFaceMeshDetectorOptions.Builder\u003c/code\u003e) is available for creating instances of \u003ccode\u003eFaceMeshDetectorOptions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFaceMeshDetectorOptions\u003c/code\u003e includes standard methods like \u003ccode\u003eequals\u003c/code\u003e, \u003ccode\u003ehashCode\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# FaceMeshDetectorOptions\n\npublic class **FaceMeshDetectorOptions** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nOptions for [FaceMeshDetector](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetector). \n\n### Nested Class Summary\n\n|------------|---|---|--------------------------------------------------------------------------------------------------------------------------|\n| class | [FaceMeshDetectorOptions.Builder](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions.Builder) || Builder class of [FaceMeshDetectorOptions](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions). |\n| @interface | [FaceMeshDetectorOptions.UseCase](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions.UseCase) || Defines options for main use case. |\n\n### Constant Summary\n\n|-----|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [BOUNDING_BOX_ONLY](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions#BOUNDING_BOX_ONLY) | [FaceMeshDetectorOptions.UseCase](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions.UseCase) to only return bounding box for detected face. |\n| int | [FACE_MESH](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions#FACE_MESH) | [FaceMeshDetectorOptions.UseCase](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions.UseCase) to also return face mesh info for detected face. |\n\n### Public Method Summary\n\n|-------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) o) Indicates whether some other object is \"equal to\" this one. |\n| int | [hashCode](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions#hashCode())() Returns a hash code value for the object. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [toString](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions#toString())() |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final int\n**BOUNDING_BOX_ONLY**\n\n[FaceMeshDetectorOptions.UseCase](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions.UseCase) to only return bounding box for detected\nface. \nConstant Value: 0 \n\n#### public static final int\n**FACE_MESH**\n\n[FaceMeshDetectorOptions.UseCase](/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions.UseCase) to also return face mesh info for detected\nface. It returns at most 2 [FaceMesh](/android/reference/com/google/mlkit/vision/facemesh/FaceMesh)s\nin this use case. \nConstant Value: 1\n\nPublic Methods\n--------------\n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) o)\n\nIndicates whether some other object is \"equal to\" this one. \n\n#### public int **hashCode** ()\n\nReturns a hash code value for the object. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **toString** ()"]]