Introduction
Veryfi Lens Browser SDK is a powerful solution for integrating document scanning and processing capabilities directly into web applications. The SDK provides a complete document capture workflow, from camera access to document detection, processing, and data extraction.
Key Features
- Real-time document detection
- Automatic edge detection and cropping
- Blur detection
- Multiple document type support
- Built-in UI components
- Local credit card processing
- Document stitching for long receipts
Supported Lens Flavors
- Receipts & Invoices
- Long Documents
- Credit Cards
- Checks
- File Upload
Regular Documents (receipts, invoices)
Features:
- Real-time document edge detection
- Automatic cropping
- Blur detection
- Document validation
Long Documents (lengthy receipts requiring stitching)
Features:
- Live stitching preview
- Progressive capture
- Automatic image composition
- Manual capture control
The stitching process:
- User initiates stitching by pressing the capture button
- Moves the camera slowly from top to bottom of the document
- Preview shows the current stitched result
- User stops stitching by pressing the button again
info
Stitching requires document to be closer to the camera compared to usual receipt capture
On device credit card scanning
Features:
- Real-time card detection
- Local card data processing
- Secure handling of sensitive data
- Card validation
The scanning process:
- Front side capture (card number, name, expiry)
- Automatic prompt to flip card
- Back side capture (CVV)
- Complete card data returned via callback
Checks (both sides capture supported)
Features:
- Two-sided check capture
- Quality validation for both sides
The check capture flow:
- Front side capture
- Quality validation
- Prompt for back side (if enabled)
- Back side capture and validation
- Both images available in result
File Upload (process documents from device storage)
Features:
- File system access
- Drag-and-drop support
- Document processing without camera