PoseDetectorOptionsBase
Stay organized with collections
Save and categorize content based on your preferences.
Nested Class Summary
@interface
The detector mode which indicates whether
detection is for single image or for streaming.
@interface
Hardware configuration for pose
detection.
Constant Summary
int |
CPU
|
Hardware configuration that uses CPU only. |
int |
CPU_GPU
|
Hardware configuration that uses both CPU and
GPU. |
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
Constants
public static final int
CPU
Hardware configuration that uses CPU only.
Constant Value:
1
public static final int
CPU_GPU
Hardware configuration that uses both CPU and GPU.
Constant Value:
2
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\u003ePoseDetectorOptionsBase\u003c/code\u003e provides base options for configuring the PoseDetector in Google ML Kit.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two main subclasses: \u003ccode\u003eAccuratePoseDetectorOptions\u003c/code\u003e (prioritizes accuracy) and \u003ccode\u003ePoseDetectorOptions\u003c/code\u003e (prioritizes speed).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can choose between hardware configurations (CPU or CPU/GPU) and detector modes (single image or stream).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSINGLE_IMAGE_MODE\u003c/code\u003e is for independent image analysis, while \u003ccode\u003eSTREAM_MODE\u003c/code\u003e is optimized for video or camera streams, leveraging previous frame data for faster results.\u003c/p\u003e\n"],["\u003cp\u003eThis class is a foundation for customizing pose detection settings within your Android application.\u003c/p\u003e\n"]]],[],null,["# PoseDetectorOptionsBase\n\npublic class **PoseDetectorOptionsBase** extends [Object](//developer.android.com/reference/java/lang/Object.html) \n\n|---|---|---|\n| Known Direct Subclasses [AccuratePoseDetectorOptions](/android/reference/com/google/mlkit/vision/pose/accurate/AccuratePoseDetectorOptions), [PoseDetectorOptions](/android/reference/com/google/mlkit/vision/pose/defaults/PoseDetectorOptions) |---------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------| | [AccuratePoseDetectorOptions](/android/reference/com/google/mlkit/vision/pose/accurate/AccuratePoseDetectorOptions) | Options for [PoseDetector](/android/reference/com/google/mlkit/vision/pose/PoseDetector) with models optimized for accuracy. | | [PoseDetectorOptions](/android/reference/com/google/mlkit/vision/pose/defaults/PoseDetectorOptions) | Options for [PoseDetector](/android/reference/com/google/mlkit/vision/pose/PoseDetector) with models optimized for speed. | |||\n\nBase options for [PoseDetector](/android/reference/com/google/mlkit/vision/pose/PoseDetector). \n\n### Nested Class Summary\n\n|------------|---|---|-------------------------------------------------------------------------------------------|\n| @interface | [PoseDetectorOptionsBase.DetectorMode](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptionsBase.DetectorMode) || The detector mode which indicates whether detection is for single image or for streaming. |\n| @interface | [PoseDetectorOptionsBase.HardwareConfig](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptionsBase.HardwareConfig) || Hardware configuration for pose detection. |\n\n### Constant Summary\n\n|-----|----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| int | [CPU](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptionsBase#CPU) | Hardware configuration that uses CPU only. |\n| int | [CPU_GPU](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptionsBase#CPU_GPU) | Hardware configuration that uses both CPU and GPU. |\n| int | [SINGLE_IMAGE_MODE](/android/reference/com/google/mlkit/vision/pose/PoseDetectorOptionsBase#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/PoseDetectorOptionsBase#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/PoseDetectorOptionsBase#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/PoseDetectorOptionsBase#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/PoseDetectorOptionsBase#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**CPU**\n\nHardware configuration that uses CPU only. \nConstant Value: 1 \n\n#### public static final int\n**CPU_GPU**\n\nHardware configuration that uses both CPU and GPU. \nConstant Value: 2 \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/PoseDetectorOptionsBase#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/PoseDetectorOptionsBase#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** ()"]]