CustomObjectDetectorOptions
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Constant Summary
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()
|
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\u003eCustomObjectDetectorOptions\u003c/code\u003e provides configuration for object detection with custom classifier models in Google ML Kit.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits detection modes (single image or stream) from \u003ccode\u003eObjectDetectorOptionsBase\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eA builder class (\u003ccode\u003eCustomObjectDetectorOptions.Builder\u003c/code\u003e) is used to create instances of \u003ccode\u003eCustomObjectDetectorOptions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eStandard methods like \u003ccode\u003eequals\u003c/code\u003e, \u003ccode\u003ehashCode\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e are available.\u003c/p\u003e\n"]]],["`CustomObjectDetectorOptions` provides settings for `ObjectDetector` using custom classifier models. Key actions include defining the detection mode as `SINGLE_IMAGE_MODE` (for independent single images) or `STREAM_MODE` (for video/camera streams). The class also includes a builder (`CustomObjectDetectorOptions.Builder`) for creating these options and methods to determine object equality (`equals`), calculate hash codes (`hashCode`), and generate string representations (`toString`). It inherits additional functionalities, including the same `equals` and `hashCode` methods from `ObjectDetectorOptionsBase` and several common methods from the base `Object` class.\n"],null,["# CustomObjectDetectorOptions\n\npublic class **CustomObjectDetectorOptions** extends [ObjectDetectorOptionsBase](/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase) \nOptions for [ObjectDetector](/android/reference/com/google/mlkit/vision/objects/ObjectDetector)\nwith custom classifier models. \n\n### Nested Class Summary\n\n|-------|---|---|----------------------------------------------------------------------------------------------------------------------------------|\n| class | [CustomObjectDetectorOptions.Builder](/android/reference/com/google/mlkit/vision/objects/custom/CustomObjectDetectorOptions.Builder) || Builder of [CustomObjectDetectorOptions](/android/reference/com/google/mlkit/vision/objects/custom/CustomObjectDetectorOptions). |\n\n### Inherited Constant Summary\n\nFrom class [com.google.mlkit.vision.objects.ObjectDetectorOptionsBase](/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase) \n\n|-----|---------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| int | [SINGLE_IMAGE_MODE](/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase#SINGLE_IMAGE_MODE) | It is designed for single images where the detection of each image is independent. |\n| int | [STREAM_MODE](/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase#STREAM_MODE) | It 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/objects/custom/CustomObjectDetectorOptions#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/objects/custom/CustomObjectDetectorOptions#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/objects/custom/CustomObjectDetectorOptions#toString())() |\n\n### Inherited Method Summary\n\nFrom class [com.google.mlkit.vision.objects.ObjectDetectorOptionsBase](/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase) \n\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/android/reference/com/google/mlkit/vision/objects/ObjectDetectorOptionsBase#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/objects/ObjectDetectorOptionsBase#hashCode())() Returns a hash code value for the object. |\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\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** ()"]]