MLCloudTextRecognizerOptions
Options for cloud text recognizer.
Properties
apiKeyOverride
</>API key to use for Cloud ML API. If not set, the default API key from firebase.app()
will be used.
apiKeyOverride: undefined | string;
enforceCertFingerprintMatch
</>Only allow registered application instances with matching certificate fingerprint to use ML API.
enforceCertFingerprintMatch: undefined | false | true;
languageHints
</>Sets language hints. In most cases, not setting this 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).
languageHints: string[];
modelType
</>Sets model type for cloud text recognition. The two models SPARSE_MODEL and DENSE_MODEL handle different text densities in an image.
modelType: SPARSE_MODEL | DENSE_MODEL;