GoogleVision class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
annotate ({required AnnotationRequests requests })
→ Future <AnnotatedResponses >
Run detection and annotation for a batch of requests.
inherited
cropHints (JsonImage jsonImage , {int maxResults = 10 })
→ Future <CropHintsAnnotation? >
Crop Hints suggests vertices for a crop region on an image.
inherited
detection (JsonImage jsonImage , AnnotationType annotationType , {int maxResults = 10 })
→ Future <AnnotateImageResponse >
Higher level method for a single detection type as specified by annotationType
,
inherited
documentTextDetection (JsonImage jsonImage , {int maxResults = 10 })
→ Future <FullTextAnnotation? >
Extracts text from an image (or file); the response is optimized for dense
text and documents. The JSON includes page, block, paragraph, word, and
break information. A specific use of documentTextDetection is to detect
handwriting in an image.
inherited
faceDetection (JsonImage jsonImage , {int maxResults = 10 })
→ Future <List <FaceAnnotation > >
Face Detection detects multiple faces within an image along with the
associated key facial attributes such as emotional state or wearing
headwear.
inherited
imageProperties (JsonImage jsonImage , {int maxResults = 10 })
→ Future <ImagePropertiesAnnotation? >
The Image Properties feature detects general attributes of the image, such
as dominant color.
inherited
labelDetection (JsonImage jsonImage , {int maxResults = 10 })
→ Future <List <EntityAnnotation > >
Labels can identify general objects, locations, activities, animal
species, products, and more. Labels are returned in English only.
inherited
landmarkDetection (JsonImage jsonImage , {int maxResults = 10 })
→ Future <List <EntityAnnotation > >
Landmark Detection detects popular natural and human-made structures
within an image.
inherited
logoDetection (JsonImage jsonImage , {int maxResults = 10 })
→ Future <List <EntityAnnotation > >
Logo Detection detects popular product logos within an image.
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
objectLocalization (JsonImage jsonImage , {int maxResults = 10 })
→ Future <List <LocalizedObjectAnnotation > >
The Vision API can detect and extract multiple objects in an image with
Object Localization.
inherited
productSearch (JsonImage jsonImage , {int maxResults = 10 })
→ Future <ProductSearchResults? >
Run Product Search.
inherited
safeSearchDetection (JsonImage jsonImage , {int maxResults = 10 })
→ Future <SafeSearchAnnotation? >
SafeSearch Detection detects explicit content such as adult content or
violent content within an image. This feature uses five categories (adult,
spoof, medical, violence, and racy) and returns the likelihood that each
is present in a given image. See the SafeSearchAnnotation page for details
on these fields.
inherited
textDetection (JsonImage jsonImage , {int maxResults = 10 })
→ Future <List <EntityAnnotation > >
Detects and extracts text from any image. For example, a photograph might
contain a street sign or traffic sign. The JSON includes the entire
extracted string, as well as individual words, and their bounding boxes.
inherited
toString ()
→ String
A string representation of this object.
inherited
webDetection (JsonImage jsonImage , {int maxResults = 10 })
→ Future <WebDetection? >
Web Detection detects Web references to an image.
inherited
Static Methods
withApiKey (String apiKey )
→ Future <GoogleVision >
Create a new instance of GoogleVision
with the given apiKey
.
withAsset (String assetFileName )
→ Future <GoogleVision >
Create a new instance of GoogleVision
with the given assetFileName
.
google_vision_flutter 1.1.0