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 intSTREAM_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.
[[["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 2020-08-14 UTC."],[],[],null,["# FirebaseVisionObjectDetectorOptions\n\npublic 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\n### Nested Class Summary\n\n|------------|---|---|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| class | [FirebaseVisionObjectDetectorOptions.Builder](/docs/reference/android/com/google/firebase/ml/vision/objects/FirebaseVisionObjectDetectorOptions.Builder) || Builder of [FirebaseVisionObjectDetectorOptions](/docs/reference/android/com/google/firebase/ml/vision/objects/FirebaseVisionObjectDetectorOptions). |\n| @interface | [FirebaseVisionObjectDetectorOptions.DetectorMode](/docs/reference/android/com/google/firebase/ml/vision/objects/FirebaseVisionObjectDetectorOptions.DetectorMode) || The detector mode which indicates whether detection is for single image or for streaming. |\n\n### Constant Summary\n\n|-----|------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| int | [SINGLE_IMAGE_MODE](/docs/reference/android/com/google/firebase/ml/vision/objects/FirebaseVisionObjectDetectorOptions#SINGLE_IMAGE_MODE) | It is designed for single images where the detection of each image is independent. |\n| int | [STREAM_MODE](/docs/reference/android/com/google/firebase/ml/vision/objects/FirebaseVisionObjectDetectorOptions#STREAM_MODE) | It is designed for streaming frames from video or camera. |\n\n### Public Method Summary\n\n|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/docs/reference/android/com/google/firebase/ml/vision/objects/FirebaseVisionObjectDetectorOptions#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) o) |\n| int | [hashCode](/docs/reference/android/com/google/firebase/ml/vision/objects/FirebaseVisionObjectDetectorOptions#hashCode())() |\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**SINGLE_IMAGE_MODE**\n\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\n#### public static final int\n**STREAM_MODE**\n\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--------------\n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) o)\n\n#### public int **hashCode** ()"]]