Skip to main content

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 to tesseract.exe (optional)
  • GS_PATH - path to gswin64c.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocr_to_excel-0.1.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocr_to_excel-0.1.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file ocr_to_excel-0.1.1.tar.gz.

File metadata

  • Download URL: ocr_to_excel-0.1.1.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

Hashes for ocr_to_excel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e0e340c3377387c1c4a9a5efe0ff827a4c834a33a43a10f223dbdc29a28dbdb3
MD5 4ecb10fef6b416a09e6f2ac5ee73a21c
BLAKE2b-256 05fac50b2c1ae91617b319bac8dac97fc405388164f1dee173a83e6207c34e5c

See more details on using hashes here.

File details

Details for the file ocr_to_excel-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ocr_to_excel-0.1.1-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

Hashes for ocr_to_excel-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c7ae5cd02fff32456c2895dac564801a45b08c5cc3c00bfc32c250a2a8edc79
MD5 c181f25146383eb99586d32731ff4db2
BLAKE2b-256 91431f471fb4c736f394182a4f50c57e4277d769da79817332aca5b75fc5a49b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page