AnnotateImageResponse class

Individual responses to image annotation requests within the batch.

Annotations
  • @JsonSerializable()

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, ProductSearchResults? productSearchResults, Status? error, ImageAnnotationContext? context})
AnnotateImageResponse.fromJson(Map<String, dynamic> json)
factory

Properties

annotations List<Annotation>
no setter
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.
no setter
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.
no setterinherited
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.
no setter
landmarkAnnotationList List<EntityAnnotation>?
If present, landmark detection has completed successfully.
final
landmarkAnnotations List<EntityAnnotation>
If present, face detection has completed successfully.
no setter
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.
no setter
logoAnnotationList List<EntityAnnotation>?
If present, logo detection has completed successfully.
final
logoAnnotations List<EntityAnnotation>
If present, logo detection has completed successfully.
no setter
productSearchResults ProductSearchResults?
If present, product search has completed successfully.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeSearchAnnotation SafeSearchAnnotation?
If present, safe-search annotation has completed successfully.
final
textAnnotations List<EntityAnnotation>
If present, full text detection has completed successfully.
no setter
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