FirebaseVisionCloudDetectorOptions
Stay organized with collections
Save and categorize content based on your preferences.
Options for all cloud vision detectors (e.g. text, landmark, label).
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
LATEST_MODEL
Latest model would be used.
Constant Value: 2
public static final int
STABLE_MODEL
Stable model would be used.
Constant Value: 1
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 boolean equals (Object o)
public int getMaxResults ()
Gets maximum number of results to be detected.
public int getModelType ()
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-08 UTC.
[null,null,["Last updated 2020-08-08 UTC."],[],[],null,["# FirebaseVisionCloudDetectorOptions\n\npublic class **FirebaseVisionCloudDetectorOptions** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nOptions for all cloud vision detectors (e.g. text, landmark, label). \n\n### Nested Class Summary\n\n|------------|---|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| class | [FirebaseVisionCloudDetectorOptions.Builder](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions.Builder) || Builder of [FirebaseVisionCloudDetectorOptions](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions). |\n| @interface | [FirebaseVisionCloudDetectorOptions.ModelType](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions.ModelType) || Model types for cloud vision APIs: [STABLE_MODEL](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#STABLE_MODEL) and [LATEST_MODEL](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#LATEST_MODEL). |\n\n### Constant Summary\n\n|-----|-----------------------------------------------------------------------------------------------------------------------------|-----------------------------|\n| int | [LATEST_MODEL](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#LATEST_MODEL) | Latest model would be used. |\n| int | [STABLE_MODEL](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#STABLE_MODEL) | Stable model would be used. |\n\n### Field Summary\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|\n| public static final [FirebaseVisionCloudDetectorOptions](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions) | [DEFAULT](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#DEFAULT) | Default options for Firebase vision cloud detector. |\n\n### Public Method Summary\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FirebaseVisionCloudDetectorOptions.Builder](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions.Builder) | [builder](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#builder())() Creates a new builder for [FirebaseVisionCloudDetectorOptions](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions). |\n| boolean | [equals](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) o) |\n| int | [getMaxResults](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#getMaxResults())() Gets maximum number of results to be detected. |\n| int | [getModelType](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#getModelType())() Gets the detector model type. |\n| int | [hashCode](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#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**LATEST_MODEL**\n\nLatest model would be used. \nConstant Value: 2 \n\n#### public static final int\n**STABLE_MODEL**\n\nStable model would be used. \nConstant Value: 1\n\nFields\n------\n\n#### public static final FirebaseVisionCloudDetectorOptions **DEFAULT**\n\nDefault options for Firebase vision cloud detector. The max result size is 10, and\nthe model is [STABLE_MODEL](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#STABLE_MODEL).\n\nPublic Methods\n--------------\n\n#### public [FirebaseVisionCloudDetectorOptions.Builder](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions.Builder) **builder** ()\n\nCreates a new builder for [FirebaseVisionCloudDetectorOptions](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions). \n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) o)\n\n#### public int **getMaxResults** ()\n\nGets maximum number of results to be detected. \n\n#### public int **getModelType** ()\n\nGets the detector model type. It is either [LATEST_MODEL](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#LATEST_MODEL) or [STABLE_MODEL](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions#STABLE_MODEL). \n\n#### public int **hashCode** ()"]]