AnnotateImageResponse class

Individual responses to image annotation requests within the batch.

Annotations

Constructors

AnnotateImageResponse({List<FaceAnnotation>? faceAnnotationList, List<EntityAnnotation>? landmarkAnnotationList, List<EntityAnnotation>? labelAnnotationList, List<LocalizedObjectAnnotation>? localizedObjectAnnotationList, List<EntityAnnotation>? logoAnnotationList, List<EntityAnnotation>? textAnnotationsList, FullTextAnnotation? fullTextAnnotation, SafeSearchAnnotation? safeSearchAnnotation, ImagePropertiesAnnotation? imagePropertiesAnnotation, CropHintsAnnotation? cropHintsAnnotation, WebDetection? webDetection, Status? error, ImageAnnotationContext? context})
AnnotateImageResponse.fromJson(Map<String, dynamic> json)
factory

Properties

context ImageAnnotationContext?
If present, contextual information is needed to understand where this image comes from.
final
cropHintsAnnotation CropHintsAnnotation?
If present, crop hints have completed successfully.
final
error Status?
If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.
final
faceAnnotationList List<FaceAnnotation>?
If present, face detection has completed successfully.
final
faceAnnotations List<FaceAnnotation>
If present, face detection has completed successfully.
read-only
fullTextAnnotation FullTextAnnotation?
If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.
final
hashCode int
The hash code for this object.
read-onlyinherited
imagePropertiesAnnotation ImagePropertiesAnnotation?
If present, image properties were extracted successfully.
final
labelAnnotationList List<EntityAnnotation>?
If present, label detection has completed successfully.
final
labelAnnotations List<EntityAnnotation>
If present, label detection has completed successfully.
read-only
landmarkAnnotationList List<EntityAnnotation>?
If present, landmark detection has completed successfully.
final
landmarkAnnotations List<EntityAnnotation>
If present, face detection has completed successfully.
read-only
localizedObjectAnnotationList List<LocalizedObjectAnnotation>?
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
final
localizedObjectAnnotations List<LocalizedObjectAnnotation>
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
read-only
logoAnnotationList List<EntityAnnotation>?
If present, logo detection has completed successfully.
final
logoAnnotations List<EntityAnnotation>
If present, logo detection has completed successfully.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
safeSearchAnnotation SafeSearchAnnotation?
If present, safe-search annotation has completed successfully.
final
textAnnotations List<EntityAnnotation>
If present, full text detection has completed successfully.
read-only
textAnnotationsList List<EntityAnnotation>?
If present, text (OCR) detection has completed successfully.
final
webDetection → WebDetection?
Relevant information for the image from the Internet.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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