Options for all cloud vision detectors (e.g. text, landmark, label).
Nested Class Summary
class | FirebaseVisionCloudDetectorOptions.Builder | Builder of
FirebaseVisionCloudDetectorOptions . |
|
@interface | FirebaseVisionCloudDetectorOptions.ModelType | Model types for cloud vision APIs:
STABLE_MODEL and
LATEST_MODEL . |
Constant Summary
int | LATEST_MODEL | Latest model would be used. |
int | STABLE_MODEL | Stable model would be used. |
Field Summary
public static final FirebaseVisionCloudDetectorOptions | DEFAULT | Default options for Firebase vision cloud detector. |
Public Method Summary
FirebaseVisionCloudDetectorOptions.Builder |
builder()
Creates a new builder for
FirebaseVisionCloudDetectorOptions .
|
boolean | |
int |
getMaxResults()
Gets maximum number of results to be detected.
|
int |
getModelType()
Gets the detector model type.
|
int |
hashCode()
|
Inherited Method Summary
Constants
public static final int LATEST_MODEL
Latest model would be used.
public static final int STABLE_MODEL
Stable model would be used.
Fields
public static final FirebaseVisionCloudDetectorOptions DEFAULT
Default options for Firebase vision cloud detector. The max result size is 10, and
the model is
STABLE_MODEL
.
Public Methods
public FirebaseVisionCloudDetectorOptions.Builder builder ()
Creates a new builder for
FirebaseVisionCloudDetectorOptions
.
public boolean equals (Object o)
public int getMaxResults ()
Gets maximum number of results to be detected.
public int getModelType ()
Gets the detector model type. It is either
LATEST_MODEL
or
STABLE_MODEL
.