Skip to content

taskprovision/docpro

Repository files navigation

Document Processing System

A comprehensive document processing system with AI-powered analysis, storage, and retrieval capabilities.


🚀 Quick Start

  1. Clone the repository:
    git clone https://github.com/yourusername/document-processing-system.git
    cd document-processing-system
  2. Copy and edit the environment file:
    cp .env.example .env
    # Edit .env with your settings
  3. Start all services:
    make dev

🖥️ Service URLs


📝 How OCR Automation Works in This System

1. Upload & Trigger

2. Node-RED Orchestration

3. OCR API Service

4. Bash Test Script

  • Test the OCR API from the command line with a sample PDF.
  • Test script

5. Configuration & Compose


🚦 Step-by-Step Example

  1. Start all services:
    make dev
  2. Upload a PDF for OCR via Node-RED:
  3. Directly test OCR API:

🔗 Key Files and Links


📁 Directory Structure

.
├── config/                  # Service configurations
│   ├── elasticsearch/       # Elasticsearch config
│   ├── grafana/             # Grafana dashboards and config
│   ├── node-red/            # Node-RED flows and settings
│   └── prometheus/          # Prometheus config
├── data/                    # Persistent data
│   ├── elasticsearch/       # ES data
│   ├── grafana/             # Grafana data
│   ├── minio/               # MinIO data
│   └── redis/               # Redis data
├── docker/ocr-api/          # OCR API implementation
├── scripts/                 # Utility scripts
├── docker-compose.yml       # Main compose file
├── Makefile                 # Project commands
└── .env                     # Environment variables

🛠️ Configuration

Create a .env file with the following variables (see .env.example for more):

OCR_HOST=ocr
OCR_PORT=8081
# ... other variables ...

🧑‍💻 Contributing & Maintenance

  • Use make help to see all available commands.
  • To update services:
    git pull origin main
    make dev
  • To view logs:
    docker-compose logs -f

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🆘 Support

For support, open an issue in the GitHub repository or contact the maintainers.

About

Document Processing Center

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published