Builder of
FirebaseVisionCloudTextRecognizerOptions
.
Public Constructor Summary
Public Method Summary
FirebaseVisionCloudTextRecognizerOptions |
build()
Builds the
FirebaseVisionCloudTextRecognizerOptions .
|
FirebaseVisionCloudTextRecognizerOptions.Builder |
enforceCertFingerprintMatch()
Only allow registered application instances with matching certificate
fingerprint to use Cloud Vision API.
|
FirebaseVisionCloudTextRecognizerOptions.Builder | |
FirebaseVisionCloudTextRecognizerOptions.Builder |
setModelType(int modelType)
Sets model type for cloud text recognition.
|
Inherited Method Summary
Public Constructors
public FirebaseVisionCloudTextRecognizerOptions.Builder ()
Public Methods
public FirebaseVisionCloudTextRecognizerOptions build ()
Builds the
FirebaseVisionCloudTextRecognizerOptions
.
public FirebaseVisionCloudTextRecognizerOptions.Builder enforceCertFingerprintMatch ()
Only allow registered application instances with matching certificate fingerprint to use Cloud Vision API.
Do not set this for debug build if you use simulators to test.
public FirebaseVisionCloudTextRecognizerOptions.Builder setLanguageHints (List<String> hintedLanguages)
Sets language hints. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting language hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).
Each language code parameter typically consists of a BCP-47 identifier. See //cloud.google.com/vision/docs/languages for more details.
public FirebaseVisionCloudTextRecognizerOptions.Builder setModelType (int modelType)
Sets model type for cloud text recognition. The two model
SPARSE_MODEL
and
DENSE_MODEL
are different models, which could handle different text
densities in an image.