FirebaseVisionObjectDetectorOptions
Stay organized with collections
Save and categorize content based on your preferences.
Constant Summary
int |
SINGLE_IMAGE_MODE
|
It is designed for single images where the
detection of each image is independent. |
int |
STREAM_MODE
|
It is designed for streaming frames from video
or camera. |
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
SINGLE_IMAGE_MODE
It is designed for single images where the detection of each image is independent.
In this mode, the detector would return detection results slower than
STREAM_MODE
.
Constant Value: 2
public static final int
STREAM_MODE
It is designed for streaming frames from video or camera. In this mode, the detector
would return the detection results faster than
SINGLE_IMAGE_MODE
, since it leverages the detection results from previous
images. Therefore, it may not return results for a new object in the first few frames
after a new object appears in the images, since there is no previous result about this
object to help.
Note that if the time-interval between two consecutive frames is too large, say
several hundred milliseconds, the previous detected objects would be lost and all
objects would be treated as new objects.
Constant Value: 1
Public Methods
public boolean equals (Object o)
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 2020-08-14 UTC.
[null,null,["Last updated 2020-08-14 UTC."],[],[],null,["public class **FirebaseVisionObjectDetectorOptions** extends [Object](//developer.android.com/reference/java/lang/Object.html) \n**This class is deprecated.** \n\nThe standalone ML Kit SDK replaces this API. For more information, refer to the [migration guide](//developers.google.com/ml-kit/migration).\n\nOptions for [FirebaseVisionObjectDetector](/docs/reference/android/com/google/firebase/ml/vision/objects/FirebaseVisionObjectDetector). \n\nNested Class Summary\n\nConstant Summary\n\nPublic Method Summary\n\nInherited Method Summary \nFrom class java.lang.Object \n\nConstants \n\npublic static final int\n**SINGLE_IMAGE_MODE** \nIt is designed for single images where the detection of each image is independent.\nIn this mode, the detector would return detection results slower than [STREAM_MODE](/docs/reference/android/com/google/firebase/ml/vision/objects/FirebaseVisionObjectDetectorOptions#STREAM_MODE). \nConstant Value: 2 \n\npublic static final int\n**STREAM_MODE** \nIt is designed for streaming frames from video or camera. In this mode, the detector\nwould return the detection results faster than [SINGLE_IMAGE_MODE](/docs/reference/android/com/google/firebase/ml/vision/objects/FirebaseVisionObjectDetectorOptions#SINGLE_IMAGE_MODE), since it leverages the detection results from previous\nimages. Therefore, it may not return results for a new object in the first few frames\nafter a new object appears in the images, since there is no previous result about this\nobject to help.\n\nNote that if the time-interval between two consecutive frames is too large, say\nseveral hundred milliseconds, the previous detected objects would be lost and all\nobjects would be treated as new objects. \nConstant Value: 1\n\nPublic Methods \n\npublic boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) o) \n\npublic int **hashCode** ()"]]