PoseDetectorOptions
Stay organized with collections
Save and categorize content based on your preferences.
Constant Summary
int |
PERFORMANCE_MODE_ACCURATE
|
This mode indicates a preference for accuracy
during detection. |
int |
PERFORMANCE_MODE_FAST
|
This mode indicates a preference for speed
during detection. |
int |
SINGLE_IMAGE_MODE
|
This mode is designed for single images where
the detection of each image is independent. |
int |
STREAM_MODE
|
This mode is designed for streaming frames from
video or camera. |
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
This mode indicates a preference for accuracy during detection. This will more
accurately detect the pose at the cost of speed.
Constant Value: 2
This mode indicates a preference for speed during detection. This may be less
precise but will run faster.
Constant Value: 1
public static final int
SINGLE_IMAGE_MODE
This mode is designed for single images where the detection of each image is
independent. In this mode, the detector will return pose results slower than
STREAM_MODE
.
Constant Value: 2
public static final int
STREAM_MODE
This mode is designed for streaming frames from video or camera. In this mode, the
detector will return pose results faster than
SINGLE_IMAGE_MODE
, since it leverages the detection results from previous
images.
Constant Value: 1
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003ePoseDetectorOptions\u003c/code\u003e allows you to configure the settings for pose detection with ML Kit.\u003c/p\u003e\n"],["\u003cp\u003eYou can choose between accuracy and speed using \u003ccode\u003ePERFORMANCE_MODE_ACCURATE\u003c/code\u003e or \u003ccode\u003ePERFORMANCE_MODE_FAST\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003ePose detection can be optimized for single images (\u003ccode\u003eSINGLE_IMAGE_MODE\u003c/code\u003e) or continuous streams like video (\u003ccode\u003eSTREAM_MODE\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eA builder class, \u003ccode\u003ePoseDetectorOptions.Builder\u003c/code\u003e, is available for creating instances of \u003ccode\u003ePoseDetectorOptions\u003c/code\u003e.\u003c/p\u003e\n"]]],["`PoseDetectorOptions` configures pose detection, offering `Builder` for setup. It supports `@DetectorMode` (single image or stream) and `@PerformanceMode` (accuracy or speed). Constants define `PERFORMANCE_MODE_ACCURATE` (2) and `PERFORMANCE_MODE_FAST` (1), alongside `SINGLE_IMAGE_MODE` (2) and `STREAM_MODE` (1). Public methods include `equals()`, `hashCode()`, and `toString()`. The class allows selecting between fast or accurate pose detection and adapts to single image or streaming inputs.\n"],null,["# PoseDetectorOptions\n\npublic class **PoseDetectorOptions** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nOptions for [PoseDetector](/android/reference/com/google/mlkit/vision/pose/PoseDetector). \n\n### Nested Class Summary\n\n|------------|---|---|---------------------------------------------------------------------------------------------------------|\n| class | [PoseDetectorOptions.Builder](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptions.Builder) || Builder for [PoseDetectorOptions](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptions). |\n| @interface | [PoseDetectorOptions.DetectorMode](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptions.DetectorMode) || The detector mode which indicates whether detection is for single image or for streaming. |\n| @interface | [PoseDetectorOptions.PerformanceMode](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptions.PerformanceMode) || Defines options to control accuracy / speed trade-offs in performing pose detection. |\n\n### Constant Summary\n\n|-----|----------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| int | [PERFORMANCE_MODE_ACCURATE](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptions#PERFORMANCE_MODE_ACCURATE) | This mode indicates a preference for accuracy during detection. |\n| int | [PERFORMANCE_MODE_FAST](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptions#PERFORMANCE_MODE_FAST) | This mode indicates a preference for speed during detection. |\n| int | [SINGLE_IMAGE_MODE](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptions#SINGLE_IMAGE_MODE) | This mode is designed for single images where the detection of each image is independent. |\n| int | [STREAM_MODE](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptions#STREAM_MODE) | This mode is designed for streaming frames from video or camera. |\n\n### Public Method Summary\n\n|-------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptions#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/pose/PoseDetectorOptions#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/pose/PoseDetectorOptions#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**PERFORMANCE_MODE_ACCURATE**\n\nThis mode indicates a preference for accuracy during detection. This will more\naccurately detect the pose at the cost of speed. \nConstant Value: 2 \n\n#### public static final int\n**PERFORMANCE_MODE_FAST**\n\nThis mode indicates a preference for speed during detection. This may be less\nprecise but will run faster. \nConstant Value: 1 \n\n#### public static final int\n**SINGLE_IMAGE_MODE**\n\nThis mode is designed for single images where the detection of each image is\nindependent. In this mode, the detector will return pose results slower than\n[STREAM_MODE](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptions#STREAM_MODE). \nConstant Value: 2 \n\n#### public static final int\n**STREAM_MODE**\n\nThis mode is designed for streaming frames from video or camera. In this mode, the\ndetector will return pose results faster than [SINGLE_IMAGE_MODE](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptions#SINGLE_IMAGE_MODE), since it leverages the detection results from previous\nimages. \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** ()"]]