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

Feature

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

The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple Feature objects can be specified in the features list.

interface Feature {
maxResults?: number;
model?: string;
type?:
| "TYPE_UNSPECIFIED"
| "FACE_DETECTION"
| "LANDMARK_DETECTION"
| "LOGO_DETECTION"
| "LABEL_DETECTION"
| "TEXT_DETECTION"
| "DOCUMENT_TEXT_DETECTION"
| "SAFE_SEARCH_DETECTION"
| "IMAGE_PROPERTIES"
| "CROP_HINTS"
| "WEB_DETECTION"
| "PRODUCT_SEARCH"
| "OBJECT_LOCALIZATION";
}

§Properties

§
maxResults?: number
[src]

Maximum number of results of this type. Does not apply to TEXT_DETECTION, DOCUMENT_TEXT_DETECTION, or CROP_HINTS.

§
model?: string
[src]

Model to use for the feature. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". DOCUMENT_TEXT_DETECTION and TEXT_DETECTION also support "builtin/weekly" for the bleeding edge release updated weekly.

§
type?: "TYPE_UNSPECIFIED" | "FACE_DETECTION" | "LANDMARK_DETECTION" | "LOGO_DETECTION" | "LABEL_DETECTION" | "TEXT_DETECTION" | "DOCUMENT_TEXT_DETECTION" | "SAFE_SEARCH_DETECTION" | "IMAGE_PROPERTIES" | "CROP_HINTS" | "WEB_DETECTION" | "PRODUCT_SEARCH" | "OBJECT_LOCALIZATION"
[src]

The feature type.