Packagecom.tuarua.firebase.ml.vision.label
Classpublic class CloudImageLabelerOptions
InheritanceCloudImageLabelerOptions Inheritance Object

Options for an image label detector.



Public Properties
 PropertyDefined By
  apiKeyOverride : String
API key to use for Cloud Vision API.
CloudImageLabelerOptions
  confidenceThreshold : Number
[read-only] The confidence threshold for labels returned by the label detector.
CloudImageLabelerOptions
  enforceCertFingerprintMatch : Boolean
[read-only] Only allow registered application instances with matching certificate fingerprint to use Cloud Vision API.
CloudImageLabelerOptions
Public Methods
 MethodDefined By
  
CloudImageLabelerOptions(confidenceThreshold:Number = 0.5, enforceCertFingerprintMatch:Boolean = false)
Creates a new instance with the given detector options.
CloudImageLabelerOptions
Property Detail
apiKeyOverrideproperty
public var apiKeyOverride:String

API key to use for Cloud Vision API. If null, the default API key from FirebaseApp will be used.

confidenceThresholdproperty 
confidenceThreshold:Number  [read-only]

The confidence threshold for labels returned by the label detector. Features returned by the label detector will have a confidence higher or equal to the confidence threshold. Default value is 0.5.


Implementation
    public function get confidenceThreshold():Number
enforceCertFingerprintMatchproperty 
enforceCertFingerprintMatch:Boolean  [read-only]

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.

Applies to Android only.


Implementation
    public function get enforceCertFingerprintMatch():Boolean
Constructor Detail
CloudImageLabelerOptions()Constructor
public function CloudImageLabelerOptions(confidenceThreshold:Number = 0.5, enforceCertFingerprintMatch:Boolean = false)

Creates a new instance with the given detector options.

Parameters
confidenceThreshold:Number (default = 0.5) — The confidence threshold for labels returned by the label detector. Features returned by the label detector will have a confidence higher or equal to the given threshold. Values must be in range [0, 1]. If an invalid value is provided, the default threshold of 0.5 is used.
 
enforceCertFingerprintMatch:Boolean (default = false) — 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.

Applies to Android only.