GoogleVision class
Integrates Google Vision features, including painter labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.
- Mixed-in types
-
- UiLoggy
Constructors
- GoogleVision.new([LogLevel logLevel = LogLevel.off])
-
factory
Properties
- apiKey ← String
-
no getter
- dio → Dio
-
final
- file → GoogleVisionFile
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → GoogleVisionImage
-
no setter
-
loggy
→ Loggy<
UiLoggy> -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokenExpiry → DateTime
-
final
- tokenGenerator ↔ TokenGenerator?
-
getter/setter pair
Methods
-
confirmToken(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAuthHeader(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
withApiKey(
String apiKey, {Map< String, String> ? additionalHeaders}) → GoogleVision - Authenticate using an API key.
-
withGenerator(
TokenGenerator generator) → Future< GoogleVision> - Authenticate using the supplied token generator
-
withJwt(
String credentials, [String scope = 'https://www.googleapis.com/auth/cloud-platform']) → Future< GoogleVision> - Authenticated with JWT.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- accept → const String
- contentType → const String