FirebaseVisionCloudDocumentRecognizerOptions.Builder

public static class FirebaseVisionCloudDocumentRecognizerOptions.Builder extends Object

Public Constructor Summary

Public Method Summary

FirebaseVisionCloudDocumentRecognizerOptions
FirebaseVisionCloudDocumentRecognizerOptions.Builder
enforceCertFingerprintMatch()
Only allow registered application instances with matching certificate fingerprint to use Cloud Vision API.
FirebaseVisionCloudDocumentRecognizerOptions.Builder
setLanguageHints(List<String> hintedLanguages)
Sets language hints.

Inherited Method Summary

Public Constructors

public FirebaseVisionCloudDocumentRecognizerOptions.Builder ()

Public Methods

public FirebaseVisionCloudDocumentRecognizerOptions.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 FirebaseVisionCloudDocumentRecognizerOptions.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.