Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AnnotateImageResponse

import type { AnnotateImageResponse } from "https://googleapis.deno.dev/v1/vision:v1.ts";

Response to an image annotation request.

interface AnnotateImageResponse {
cropHintsAnnotation?: CropHintsAnnotation;
error?: Status;
faceAnnotations?: FaceAnnotation[];
fullTextAnnotation?: TextAnnotation;
imagePropertiesAnnotation?: ImageProperties;
labelAnnotations?: EntityAnnotation[];
landmarkAnnotations?: EntityAnnotation[];
localizedObjectAnnotations?: LocalizedObjectAnnotation[];
logoAnnotations?: EntityAnnotation[];
productSearchResults?: ProductSearchResults;
safeSearchAnnotation?: SafeSearchAnnotation;
textAnnotations?: EntityAnnotation[];
webDetection?: WebDetection;
}

§Properties

§

If present, contextual information is needed to understand where this image comes from.

§
cropHintsAnnotation?: CropHintsAnnotation
[src]

If present, crop hints have completed successfully.

§
error?: Status
[src]

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.

§
faceAnnotations?: FaceAnnotation[]
[src]

If present, face detection has completed successfully.

§
fullTextAnnotation?: TextAnnotation
[src]

If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.

§
imagePropertiesAnnotation?: ImageProperties
[src]

If present, image properties were extracted successfully.

§
labelAnnotations?: EntityAnnotation[]
[src]

If present, label detection has completed successfully.

§
landmarkAnnotations?: EntityAnnotation[]
[src]

If present, landmark detection has completed successfully.

§
localizedObjectAnnotations?: LocalizedObjectAnnotation[]
[src]

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

§
logoAnnotations?: EntityAnnotation[]
[src]

If present, logo detection has completed successfully.

§
productSearchResults?: ProductSearchResults
[src]

If present, product search has completed successfully.

§
safeSearchAnnotation?: SafeSearchAnnotation
[src]

If present, safe-search annotation has completed successfully.

§
textAnnotations?: EntityAnnotation[]
[src]

If present, text (OCR) detection has completed successfully.

§
webDetection?: WebDetection
[src]

If present, web detection has completed successfully.