n8n node for document scanning using OpenCV.js (pure JavaScript, no native dependencies)
This is an n8n community node. It lets you use professional document scanning capabilities in your n8n workflows using OpenCV.js - with zero native dependencies!
This node can detect, highlight, and extract paper documents from images with automatic distortion correction, all using pure JavaScript/WebAssembly.
n8n is a fair-code licensed workflow automation platform.
- š Pure JavaScript/WebAssembly - No native compilation required!
- š¦ Easy Installation - Installs in seconds on any platform
- š Cross-Platform - Works on Linux, macOS, Windows, ARM, Docker
- šÆ Professional Document Detection - Accurate paper boundary detection using OpenCV
- š Perspective Correction - Undistorts skewed and angled documents
- ā” Fast Performance - WebAssembly-optimized processing (~350-500ms per image)
- ā
Production Ready - Uses official OpenCV.js library
Table of Contents
- Installation
- Operations
- Credentials
- Compatibility
- Usage
- Resources
- Version history
Follow the installation guide in the n8n community nodes documentation.
1. Go to Settings > Community Nodes
2. Select Install
3. Enter n8n-nodes-jscanify in Enter npm package name
4. Agree to the risks of using community nodes
5. Select Install
After installing the node, you can use it like any other node in your workflows.
This node supports the following operations:
This node does not require any credentials as it processes images locally using pure JavaScript.
- Minimum n8n version: 0.200.0
- Tested with: n8n 1.0.0+
- Node.js version: 14.x or higher
- Platform: Any (Linux, macOS, Windows, ARM, Docker, etc.)
ā
No system dependencies required!
ā
No build tools needed!
ā
No native compilation!
This node uses pure JavaScript/WebAssembly libraries:
- OpenCV.js - Official OpenCV port (pure JS/WASM)
- Jimp - Pure JavaScript image processing
Just install and go:
``bash``
npm install n8n-nodes-jscanify
1. Read/Download Image: Use the HTTP Request node or Read Binary File node to get an image
2. Add JScanify Node: Add the JScanify node to your workflow
3. Configure Operation:
- Select "Extract Paper" to scan and extract the document
- Or select "Highlight Paper" to preview the detection
4. Set Binary Field: Specify the binary property name (default is "data")
5. Configure Output (for Extract Paper):
- Set Paper Width (e.g., 500 pixels)
- Set Paper Height (e.g., 1000 pixels)
6. Process Result: The scanned document will be available in the output binary data
- Good Lighting: Ensure the document is well-lit with minimal shadows
- Solid Background: Place the document on a solid, contrasting background
- Flat Surface: Keep the document as flat as possible
- Clear Edges: Make sure all four corners of the document are visible
- Image Quality: Use high-resolution images for better detection accuracy
- Receipt Scanning: Extract receipts from photos for expense tracking
- Document Digitization: Convert physical documents to digital format
- Business Card Scanning: Extract business cards from photos
- Form Processing: Scan and extract forms for data entry
- ID/Passport Scanning: Extract ID documents from photos
* n8n community nodes documentation
* OpenCV.js Documentation
* Jimp Documentation
This node uses pure JavaScript/WebAssembly libraries:
- OpenCV.js (v1.2.1) - Official OpenCV port for JavaScript
- Canny edge detection
- Contour detection
- Polygon approximation
- Perspective transformation
- Jimp (v1.6.0) - Pure JavaScript image processing
- Image I/O
- Format conversion
- Pixel manipulation
Total dependencies: ~60 packages (all pure JavaScript)
Native modules: 0
Installation time: ~5-10 seconds