Reference documentation and code samples for the Cloud Vision V1 Client class AnnotateImageResponse.
Response to an image annotation request.
Generated from protobuf message google.cloud.vision.v1.AnnotateImageResponse
Namespace
Google \ Cloud \ Vision \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ face_annotations
↳ landmark_annotations
↳ logo_annotations
↳ label_annotations
↳ localized_object_annotations
array< LocalizedObjectAnnotation
>
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
↳ text_annotations
↳ full_text_annotation
TextAnnotation
If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.
↳ safe_search_annotation
↳ image_properties_annotation
↳ crop_hints_annotation
↳ web_detection
↳ product_search_results
↳ error
Google\Rpc\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.
↳ context
ImageAnnotationContext
If present, contextual information is needed to understand where this image comes from.
getFaceAnnotations
If present, face detection has completed successfully.
setFaceAnnotations
If present, face detection has completed successfully.
$this
getLandmarkAnnotations
If present, landmark detection has completed successfully.
setLandmarkAnnotations
If present, landmark detection has completed successfully.
$this
getLogoAnnotations
If present, logo detection has completed successfully.
setLogoAnnotations
If present, logo detection has completed successfully.
$this
getLabelAnnotations
If present, label detection has completed successfully.
setLabelAnnotations
If present, label detection has completed successfully.
$this
getLocalizedObjectAnnotations
If present, localized object detection has completed successfully.
This will be sorted descending by confidence score.
setLocalizedObjectAnnotations
If present, localized object detection has completed successfully.
This will be sorted descending by confidence score.
$this
getTextAnnotations
If present, text (OCR) detection has completed successfully.
setTextAnnotations
If present, text (OCR) detection has completed successfully.
$this
getFullTextAnnotation
If present, text (OCR) detection or document (OCR) text detection has completed successfully.
This annotation provides the structural hierarchy for the OCR detected text.
hasFullTextAnnotation
clearFullTextAnnotation
setFullTextAnnotation
If present, text (OCR) detection or document (OCR) text detection has completed successfully.
This annotation provides the structural hierarchy for the OCR detected text.
$this
getSafeSearchAnnotation
If present, safe-search annotation has completed successfully.
hasSafeSearchAnnotation
clearSafeSearchAnnotation
setSafeSearchAnnotation
If present, safe-search annotation has completed successfully.
$this
getImagePropertiesAnnotation
If present, image properties were extracted successfully.
hasImagePropertiesAnnotation
clearImagePropertiesAnnotation
setImagePropertiesAnnotation
If present, image properties were extracted successfully.
$this
getCropHintsAnnotation
If present, crop hints have completed successfully.
hasCropHintsAnnotation
clearCropHintsAnnotation
setCropHintsAnnotation
If present, crop hints have completed successfully.
$this
getWebDetection
If present, web detection has completed successfully.
hasWebDetection
clearWebDetection
setWebDetection
If present, web detection has completed successfully.
$this
getProductSearchResults
If present, product search has completed successfully.
hasProductSearchResults
clearProductSearchResults
setProductSearchResults
If present, product search has completed successfully.
$this
getError
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.
hasError
clearError
setError
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.
$this
getContext
If present, contextual information is needed to understand where this image comes from.
hasContext
clearContext
setContext
If present, contextual information is needed to understand where this image comes from.
$this

