Vision

public final class Vision

Provides machine learning and computer vision capabilities for document processing. Enables AI-powered document description and content extraction.

Functions

Link copied to clipboard
public final String describe()
Generates an AI-powered description of the document content.
Link copied to clipboard
public final String detectForms()
Detects form fields on the document and exports the result.
Link copied to clipboard
public final void detectFormsToFile(String outputPath)
Detects form fields on the document and writes the exported result to a file.
Link copied to clipboard
public final String extractContent()
Extracts structured content from the document using machine vision processing.
Extracts structured content from the document using machine vision processing with custom export settings.
Link copied to clipboard
public final void extractContentToFile(String outputPath)
Extracts structured content from the document and writes it to a file.
public final void extractContentToFile(String outputPath, DocumentLayoutJsonExportSettings settings)
Extracts structured content from the document and saves it to a JSON file with custom settings.
Link copied to clipboard
Extracts structured data from the document, shaped to the JSON Schema carried by the 's {"schema": ...} envelope.
Link copied to clipboard
public final void extractStructuredToFile(StructuredExtractionRequest request, String outputPath)
Extracts structured data from the document, shaped to the JSON Schema carried by the 's {"schema": ...} envelope, and writes the JSON result to a file.
Link copied to clipboard
public final static Vision set(Document document)
Creates a Vision instance for the specified document.
Link copied to clipboard
public final void warmup()
Preloads (warms up) all resources needed for vision processing.