Convert DepEd OCR PDFs to Excel.
Project description
DepEdPDFtoExcel
Convert DepEd OCR PDFs to Excel using Ghostscript + Tesseract OCR.
Requirements
- Python 3.9+
- Ghostscript (for PDF to image conversion)
- Tesseract OCR
Quick start
python -m pip install -r requirements.txt
python ocr_to_excel.py
Automated dependency install (Windows)
This script installs Ghostscript and Tesseract using winget.
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
./scripts/install_dependencies.ps1
Optional: set user env vars after install (paths may vary by version):
./scripts/install_dependencies.ps1 -SetEnv
If winget is missing, install App Installer from Microsoft Store and retry.
Environment variables
TESSERACT_CMD- path totesseract.exe(optional)GS_PATH- path togswin64c.exe(optional)OCR_DPI- image DPI (default 300)CROP_TOP_RATIO- top crop ratio (default 0.2)CROP_BOTTOM_RATIO- bottom crop ratio (default 0.9)
Output
Generated Excel files are placed in outputs/excel/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ocr_to_excel-0.1.0.tar.gz.
File metadata
- Download URL: ocr_to_excel-0.1.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
205153171a18bf3a81bd4dbf1ac9e34b1d3e7b3457104e63d09c8758d2999a4e
|
|
| MD5 |
1134dbd55ba278e43fe7ca9e7f346f82
|
|
| BLAKE2b-256 |
df49a77ccdc65d0ed03fb65e3178141666f07496b079c021aecc1948f2c51604
|
File details
Details for the file ocr_to_excel-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ocr_to_excel-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2473374feba7bd0b4aae76ec59ba4ca6936cacf54e391668d8c86a3eff422c26
|
|
| MD5 |
55882a317744d6144427af4a825c13cf
|
|
| BLAKE2b-256 |
9c78afbea352119521fcd38f24d98f941f4cdf3742dc9ac5f54ecf1a0ba2aed5
|