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

SafeSearchAnnotation

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

Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).

interface SafeSearchAnnotation {
adult?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
medical?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
racy?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
spoof?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
violence?:
| "UNKNOWN"
| "VERY_UNLIKELY"
| "UNLIKELY"
| "POSSIBLE"
| "LIKELY"
| "VERY_LIKELY";
}

§Properties

§
adult?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.

§
medical?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Likelihood that this is a medical image.

§
racy?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas.

§
spoof?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.

§
violence?: "UNKNOWN" | "VERY_UNLIKELY" | "UNLIKELY" | "POSSIBLE" | "LIKELY" | "VERY_LIKELY"
[src]

Likelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals.