FirebaseVisionObjectDetectorOptions.Builder

public static class FirebaseVisionObjectDetectorOptions.Builder extends Object

Public Constructor Summary

Public Method Summary

FirebaseVisionObjectDetectorOptions
FirebaseVisionObjectDetectorOptions.Builder
enableClassification()
Enable on-device coarse classification.
FirebaseVisionObjectDetectorOptions.Builder
enableMultipleObjects()
Enable multiple objects for detection.
FirebaseVisionObjectDetectorOptions.Builder

Inherited Method Summary

Public Constructors

public FirebaseVisionObjectDetectorOptions.Builder ()

Public Methods

public FirebaseVisionObjectDetectorOptions.Builder enableClassification ()

Enable on-device coarse classification. The classification categories are defined in FirebaseVisionObject.

By default, the coarse classification is off.

public FirebaseVisionObjectDetectorOptions.Builder enableMultipleObjects ()

Enable multiple objects for detection. The number of objects is no more than 5.

By default, it is prominent object only.

public FirebaseVisionObjectDetectorOptions.Builder setDetectorMode (int detectorMode)

Sets the FirebaseVisionObjectDetectorOptions.DetectorMode, which contains two modes, STREAM_MODE and SINGLE_IMAGE_MODE. For more details, please see comments for STREAM_MODE and SINGLE_IMAGE_MODE.

By default, it is STREAM_MODE.