FirebaseVisionObjectDetectorOptions

public class FirebaseVisionObjectDetectorOptions extends Object

This class is deprecated.
The standalone ML Kit SDK replaces this API. For more information, refer to the migration guide.

Options for FirebaseVisionObjectDetector.

Nested Class Summary

class FirebaseVisionObjectDetectorOptions.Builder Builder of FirebaseVisionObjectDetectorOptions
@interface FirebaseVisionObjectDetectorOptions.DetectorMode The detector mode which indicates whether detection is for single image or for streaming. 

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.

Public Method Summary

boolean
int

Inherited Method Summary

Object
clone()
boolean
equals(Object arg0)
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)

public int hashCode ()

Explore how Firebase Crashlytics provides real time app crash & stability reporting for iOS, Android, Flutter, and Unity apps so you can fix crashes faster.

Updated Oct 3, 2024

Get help quickly with Firebase support. Read our FAQs, Release notes, and guides, ask the community, then get direct support from the Firebase team.

Updated Oct 3, 2024

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Aug 14, 2020