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

TextAnnotation

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

TextAnnotation contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol Each structural component, starting from Page, may further have their own properties. Properties describe detected languages, breaks etc.. Please refer to the TextAnnotation.TextProperty message definition below for more detail.

interface TextAnnotation {
pages?: Page[];
text?: string;
}

§Properties

§
pages?: Page[]
[src]

List of pages detected by OCR.

§
text?: string
[src]

UTF-8 text detected on the pages.