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

ImageContext

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

Image context and/or feature-specific parameters.

interface ImageContext {
cropHintsParams?: CropHintsParams;
languageHints?: string[];
latLongRect?: LatLongRect;
productSearchParams?: ProductSearchParams;
textDetectionParams?: TextDetectionParams;
webDetectionParams?: WebDetectionParams;
}

§Properties

§
cropHintsParams?: CropHintsParams
[src]

Parameters for crop hints annotation request.

§
languageHints?: string[]
[src]

List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting language_hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the supported languages.

§
latLongRect?: LatLongRect
[src]

Not used.

§
productSearchParams?: ProductSearchParams
[src]

Parameters for product search.

§
textDetectionParams?: TextDetectionParams
[src]

Parameters for text detection and document text detection.

§
webDetectionParams?: WebDetectionParams
[src]

Parameters for web detection.