Package | com.tuarua.firebase.ml.vision.label |
Class | public class CloudImageLabelerOptions |
Inheritance | CloudImageLabelerOptions ![]() |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
CloudImageLabelerOptions(confidenceThreshold:Number = 0.5, enforceCertFingerprintMatch:Boolean = false)
Creates a new instance with the given detector options. | CloudImageLabelerOptions |
apiKeyOverride | property |
public var apiKeyOverride:String
API key to use for Cloud Vision API. If null
, the default API key from FirebaseApp will be
used.
confidenceThreshold | property |
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.
public function get confidenceThreshold():Number
enforceCertFingerprintMatch | property |
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.
public function get enforceCertFingerprintMatch():Boolean
CloudImageLabelerOptions | () | Constructor |
public function CloudImageLabelerOptions(confidenceThreshold:Number = 0.5, enforceCertFingerprintMatch:Boolean = false)
Creates a new instance with the given detector options.
ParametersconfidenceThreshold: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. |