Jump to top

VisionCloudImageLabelerOptions

interface

Options for cloud image labeler. Confidence threshold could be provided for the label detection.

For example, if the confidence threshold is set to 0.7, only labels with confidence >= 0.7 would be returned. The default threshold is 0.5.

Note: at most 20 labels will be returned for cloud image labeler.

Properties

apiKeyOverride

</>

API key to use for Cloud Vision API. If not set, the default API key from firebase.app() will be used.

apiKeyOverride: undefined | string;

confidenceThreshold

</>

Sets confidence threshold in the range of [0.0 - 1.0] of detected labels. Only labels detected with confidence higher than this threshold are returned.

confidenceThreshold: undefined | number;

enforceCertFingerprintMatch

</>

Only allow registered application instances with matching certificate fingerprint to use Cloud Vision API.

enforceCertFingerprintMatch: undefined | false | true;