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.
š 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)
- Go to Settings ā Community Nodes
- Click Install a community node
- Enter
n8n-nodes-deep-ocr - Click Install
Manual Installation
npm install n8n-nodes-deep-ocr
š§ Configuration
Setting Up Credentials
- Get your API key from Deep-OCR Dashboard
- In n8n, go to Credentials ā Add Credential
- Search for "Deep-OCR API"
- Enter your API key and save
š Usage
- Add the Deep-OCR node to your workflow
- Connect a node that provides binary data (e.g., Read Binary File, HTTP Request)
- Configure:
- Binary Property: Name of the binary property containing your document (default:
data) - Document Type: Select the type that matches your document
- Binary Property: Name of the binary property containing your document (default:
- 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 |
|---|---|---|
| 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.