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

TextDetectionParams

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

Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features.

interface TextDetectionParams {
advancedOcrOptions?: string[];
enableTextDetectionConfidenceScore?: boolean;
}

§Properties

§
advancedOcrOptions?: string[]
[src]

A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - legacy_layout: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.

§
enableTextDetectionConfidenceScore?: boolean
[src]

By default, Cloud Vision API only includes confidence score for DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence score for TEXT_DETECTION as well.