GoogleVision class Null safety

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-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

annotate({required AnnotationRequests requests}) Future<AnnotatedResponses>
Run painter detection and annotation for a batch of painters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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) → void
Draw text on the Painter at the x and y position.
withGenerator(TokenGenerator generator) Future<GoogleVision>
withJwt(String credentialsFile, [String scope = 'https://www.googleapis.com/auth/cloud-vision']) Future<GoogleVision>
Authenticated with JWT.