GoogleVision class Null safety

Integrates Google Vision features, including image 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 image detection and annotation for a batch of images.
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(Image image, List<Vertex> vertices, {String color = 'red', int thickness = 3}) → void
draw a box on the supplied Image around the detected object using Vertex values
drawAnnotationsNormalized(Image image, List<NormalizedVertex> vertices, {String color = 'red', int thickness = 3}) → void
draw a box on the supplied Image around detected object using NormalizedVertex values
drawText(Image image, int x, int y, String text) → void
draw text on the Image 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