deep-ocr

n8n community node for Deep-OCR document processing API

Package Information

Downloads: 0 weeklyĀ /Ā 0 monthly
Latest Version: 1.1.2
Author: Heey

Documentation

n8n-nodes-deep-ocr

N8N Community Node for the Deep-OCR Service - Extract structured data from documents using AI-powered OCR.

npm version
License: MIT

šŸš€ Features

  • Structured Data Extraction: Receive a structured JSON object with the fields relevant to the document type
  • 7 Document Types: Invoice, Receipt, Contract, Delivery Note, ID Document, Handwriting, Generic
  • Multiple Format Support: PDF, PNG, JPG, JPEG, WebP (up to 10MB)
  • Secure Authentication: API key stored securely using n8n credentials

šŸ“¦ Installation

Community Nodes (Recommended)

  1. Go to Settings → Community Nodes
  2. Click Install a community node
  3. Enter n8n-nodes-deep-ocr
  4. Click Install

Manual Installation

npm install n8n-nodes-deep-ocr

šŸ”§ Configuration

Setting Up Credentials

  1. Get your API key from Deep-OCR Dashboard
  2. In n8n, go to Credentials → Add Credential
  3. Search for "Deep-OCR API"
  4. Enter your API key and save

šŸ“– Usage

  1. Add the Deep-OCR node to your workflow
  2. Connect a node that provides binary data (e.g., Read Binary File, HTTP Request)
  3. Configure:
    • Binary Property: Name of the binary property containing your document (default: data)
    • Document Type: Select the type that matches your document
  4. Execute — the node outputs a JSON object with the extracted fields

Document Types

Type Description
invoice Vendor, line items, totals, payment terms
receipt Merchant, items purchased, totals, payment method
contract Parties, dates, key clauses
delivery_note Sender, recipient, items, quantities
id_document Name, date of birth, document number, expiry
handwriting Transcription of handwritten text
generic General extraction for any document type

šŸ“‹ Example Workflow

{
  "nodes": [
    {
      "name": "Read Invoice PDF",
      "type": "n8n-nodes-base.readBinaryFile",
      "parameters": {
        "filePath": "/path/to/invoice.pdf"
      }
    },
    {
      "name": "Extract Invoice Data",
      "type": "n8n-nodes-deep-ocr.deepOcr",
      "parameters": {
        "binaryPropertyName": "data",
        "documentType": "invoice"
      }
    }
  ]
}

šŸ”’ Supported File Types

Format MIME Type Max Size
PDF application/pdf 10MB
PNG image/png 10MB
JPG/JPEG image/jpeg 10MB
WebP image/webp 10MB

šŸ› ļø Development

Prerequisites

  • Node.js 22+
  • pnpm 9.1+

Setup

# Clone the repository
git clone https://github.com/Heey-Global/deep-ocr-n8n.git
cd deep-ocr-n8n

# Install dependencies
pnpm install

# Build
pnpm build

# Run tests
pnpm test

# Run linter
pnpm lint

Project Structure

src/
ā”œā”€ā”€ credentials/
│   └── DeepOcrApi.credentials.ts    # API key credential type
ā”œā”€ā”€ nodes/
│   └── DeepOcr/
│       ā”œā”€ā”€ DeepOcr.node.ts          # Main node implementation
│       └── deepocr.svg              # Node icon
ā”œā”€ā”€ utils/
│   └── errors.ts                    # Error handling utilities
└── index.ts                         # Package entry point

šŸ“„ License

MIT

šŸ¤ Contributing

Contributions are welcome! Please submit pull requests to our repository.

šŸ“ž Support

Discussion