Overview
IRIS is Scale’s OCR capability that transforms document images and PDFs into structured text through an intelligent multi-stage pipeline. When using IRIS through Dex, you get:- Unified Document Management: Upload and manage files through Dex’s file system
- Async Processing: Non-blocking parse jobs that process documents in the background
- Project Organization: Group files and parse results within Dex projects
- Credential Management: Secure handling of SGP credentials
- Parse Result Storage: Parsed content stored and accessible through Dex
Prerequisites
Before using IRIS, ensure you have:- Dex SDK installed
- SGP Account ID and API Key
- Access to a Dex instance
Basic Usage
Initialize Dex Client
Parse a Document with IRIS
Supported Document Types
IRIS supports various document formats:- PDF documents (.pdf)
- Images (.png, .jpg, .jpeg, .tiff)
- Scanned documents with printed or handwritten text
- Multi-page documents
Parsing PDFs
Basic PDF Parsing
Complete PDF Example
Parsing Images
IRIS supports various image formats including PNG, JPG, and TIFF.Basic Image Parsing
Complete Image Example
Uploading Files from Memory
You can also upload files directly from memory streams:Configuration Options
IrisParseEngineOptions
Customize IRIS behavior using parse engine options:Understanding Parse Results
Result Structure
IRIS returns parsed content organized into chunks, where each chunk represents a section of the document:Working with Different Content Types
IRIS detects and processes different content regions:- Text regions: Paragraphs, headings, and body text
- Table regions: Structured tabular data
- Image regions: Figures and diagrams
File Management
List Files in Project
Get File Download URL
Check File Details
Error Handling
Handle Upload Errors
Handle Parse Errors
Processing Multiple Documents
Batch Processing
Multi-Language Support
IRIS supports OCR in multiple languages, including:- Latin-based languages: English, Spanish, French, German, Italian, Portuguese, etc.
- Arabic: With specialized model support
- Asian languages: Chinese, Japanese, Korean
- Other languages: Russian, Hebrew, Hindi, Thai, and more
Best Practices
Use Environment Variables for Credentials
Organize Files by Project
Wait for Parse Completion
Common Use Cases
Extract All Text from Document
Process Forms and Structured Documents
Performance Considerations
Processing Time
Parse job duration depends on:- Document length (number of pages)
- Image resolution and quality
- Content complexity (tables, mixed layouts)
- Selected OCR models
Optimization Tips
- Batch processing: Process multiple documents concurrently when possible
- Pre-processing: Ensure documents are properly oriented and of good quality
- Project organization: Group related documents in the same project for better management
Next Steps
Now that you understand how to use IRIS:- Review the Introduction to IRIS to learn about the underlying OCR pipeline
- Explore the Dex documentation for additional capabilities
- Integrate IRIS into your document processing workflows
- Use parsed results with Dex’s extraction and vector store features

