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.

Constructors

GoogleVision()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

annotate({required AnnotationRequests requests}) Future<AnnotatedResponses>
Run detection and annotation for a batch of requests.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

accept String
final
contentType String
final
dio Dio
final
tokenExpiry DateTime
final
tokenGenerator TokenGenerator?
read / write

Static Methods

drawAnnotations(Painter painter, List<Vertex> vertices, {String color = 'red', int thickness = 3}) → void
Draw a box on the supplied Painter around the detected object using Vertex values.
drawAnnotationsNormalized(Painter painter, List<NormalizedVertex> vertices, {String color = 'red', int thickness = 3}) → void
Draw a box on the supplied Painter around detected object using NormalizedVertex values.
drawText(Painter painter, int x, int y, String text, {String color = 'red'}) → void
Draw text on the Painter at the x and y position.
withGenerator(TokenGenerator generator) Future<GoogleVision>
withJwt(String credentials, [String scope = 'https://www.googleapis.com/auth/cloud-platform']) Future<GoogleVision>
Authenticated with JWT.
withJwtFile(String credentialsFile, [String scope = 'https://www.googleapis.com/auth/cloud-platform']) Future<GoogleVision>
Authenticated with JWT.