0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

AI → AI Advanced OCR

AI-generated

Overview

This node performs advanced OCR (Optical Character Recognition) and document extraction tasks using AI workflows. It processes documents provided via URL or buffer and supports multiple workflows such as invoice extraction, receipt extraction, OCR with handwriting, and more. Users can specify the language and document type to tailor the OCR process. The node is useful for automating data extraction from various document types, enabling workflows like invoice processing, receipt management, and document digitization.

Use Case Examples

  1. Extract text and structured data from invoices by providing the invoice document URL and selecting the 'Invoice Extraction' workflow.
  2. Perform OCR on handwritten notes by uploading a document buffer and choosing the 'OCR with Handwriting' workflow.
  3. Extract delivery note details from a scanned document by specifying the document type and language.

Properties

Name Meaning
URL The URL to the document to be processed.
Buffer The document content as a buffer to be processed instead of a URL.
Result Type Specifies the output type, either raw OCR text or extracted structured data.
Workflow The AI workflow to use for processing the document, defining the type of analysis and extraction to perform.
Language Language of the document to improve OCR accuracy.
Document Type The specific type of document being uploaded to guide the OCR and extraction process.
Code Variables User-defined code variables to customize processing, specified as name-value pairs.

Output

JSON

  • text - Extracted OCR text from the document.
  • extractions - Structured data extracted from the document based on the selected workflow.

Dependencies

  • An API key credential for authentication with the AI service providing OCR and extraction capabilities.

Troubleshooting

  • Ensure the document URL or buffer is correctly provided and accessible to avoid processing errors.
  • Select the appropriate workflow and result type to match the document content and desired output.
  • Verify the language setting matches the document language to improve OCR accuracy.
  • Common errors may include network issues accessing the document URL or invalid document formats; check inputs and retry.

Discussion