FirebaseVisionCloudTextRecognizerOptions
Stay organized with collections
Save and categorize content based on your preferences.
Represents the cloud text recognizer options.
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
DENSE_MODEL
Dense model type. It is more suitable for well-formatted dense text.
Constant Value: 2
public static final int
SPARSE_MODEL
Sparse model type. It is more suitable for sparse text.
Constant Value: 1
Public Methods
public boolean equals (Object o)
public List<String>
getHintedLanguages ()
Gets the hinted language list in the options.
public int getModelType ()
Gets the cloud model type in the options.
Default is
SPARSE_MODEL
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,["# FirebaseVisionCloudTextRecognizerOptions\n\npublic class **FirebaseVisionCloudTextRecognizerOptions** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nRepresents the cloud text recognizer options. \n\n### Nested Class Summary\n\n|------------|---|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| class | [FirebaseVisionCloudTextRecognizerOptions.Builder](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionCloudTextRecognizerOptions.Builder) || Builder of [FirebaseVisionCloudTextRecognizerOptions](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionCloudTextRecognizerOptions). |\n| @interface | [FirebaseVisionCloudTextRecognizerOptions.CloudTextModelType](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionCloudTextRecognizerOptions.CloudTextModelType) || Cloud model types for text recognition. |\n\n### Constant Summary\n\n|-----|----------------------------------------------------------------------------------------------------------------------------------|--------------------|\n| int | [DENSE_MODEL](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionCloudTextRecognizerOptions#DENSE_MODEL) | Dense model type. |\n| int | [SPARSE_MODEL](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionCloudTextRecognizerOptions#SPARSE_MODEL) | Sparse model type. |\n\n### Public Method Summary\n\n|------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionCloudTextRecognizerOptions#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) o) |\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[String](//developer.android.com/reference/java/lang/String.html)\\\u003e | [getHintedLanguages](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionCloudTextRecognizerOptions#getHintedLanguages())() Gets the hinted language list in the options. |\n| int | [getModelType](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionCloudTextRecognizerOptions#getModelType())() Gets the cloud model type in the options. |\n| int | [hashCode](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionCloudTextRecognizerOptions#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**DENSE_MODEL**\n\nDense model type. It is more suitable for well-formatted dense text. \nConstant Value: 2 \n\n#### public static final int\n**SPARSE_MODEL**\n\nSparse model type. It is more suitable for sparse text. \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 [List](//developer.android.com/reference/java/util/List.html)\\\u003c[String](//developer.android.com/reference/java/lang/String.html)\\\u003e\n**getHintedLanguages** ()\n\nGets the hinted language list in the options. \n\n#### public int **getModelType** ()\n\nGets the cloud model type in the options.\n\nDefault is [SPARSE_MODEL](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionCloudTextRecognizerOptions#SPARSE_MODEL) \n\n#### public int **hashCode** ()"]]