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

AnnotateFileRequest

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

A request to annotate one single file, e.g. a PDF, TIFF or GIF file.

interface AnnotateFileRequest {
features?: Feature[];
imageContext?: ImageContext;
inputConfig?: InputConfig;
pages?: number[];
}

§Properties

§
features?: Feature[]
[src]

Required. Requested features.

§
imageContext?: ImageContext
[src]

Additional context that may accompany the image(s) in the file.

§
inputConfig?: InputConfig
[src]

Required. Information about the input file.

§
pages?: number[]
[src]

Pages of the file to perform image annotation. Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative. Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. Page -2 means the second to the last page. If the file is GIF instead of PDF or TIFF, page refers to GIF frames. If this field is empty, by default the service performs image annotation for the first 5 pages of the file.