Vision 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

Vision(String token, Dio dio)

Properties

accept String
read-only, inherited
contentType String
read-only, inherited
dio Dio
final
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
token String
final

Methods

annotate({required AnnotationRequests requests}) Future<AnnotatedResponses>
Run image detection and annotation for a batch of images.
buildParts(List<String> partList, String part) String
inherited
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 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