36 lines
1.3 KiB
Markdown
36 lines
1.3 KiB
Markdown
# Product Context
|
|
|
|
## Purpose
|
|
DocuLens is a unified web application that combines Optical Character Recognition (OCR) and Artificial Intelligence (AI) to process and translate documents. It aims to provide an intuitive interface with real-time feedback for document processing tasks.
|
|
|
|
## Problems Solved
|
|
1. Complex document processing made simple through a unified interface
|
|
2. Multiple processing modes to handle different use cases:
|
|
- Basic OCR (Tesseract only)
|
|
- Enhanced OCR (Tesseract + AI correction)
|
|
- Full AI OCR processing
|
|
3. Document translation with support for multiple languages
|
|
4. Real-time progress tracking with visual feedback
|
|
|
|
## How It Works
|
|
1. File Management:
|
|
- Supports PDF and image uploads
|
|
- Automatic file naming to prevent overwrites
|
|
- Bulk file management capabilities
|
|
|
|
2. Processing Modes:
|
|
- OCR Mode: Uses Tesseract for text extraction
|
|
- OCR + AI Mode: Combines Tesseract with AI correction
|
|
- AI Mode: Full AI-powered OCR processing
|
|
|
|
3. Translation Features:
|
|
- Page-by-page translation
|
|
- Support for processed or new files
|
|
- Progress tracking
|
|
- Outputs translated text with page markers
|
|
|
|
4. Configuration System:
|
|
- AI model management
|
|
- Custom prompt configuration
|
|
- Language settings
|
|
- Import/export of configurations
|