{"id":24818261,"url":"https://github.com/metaory/tess-pdfseq","last_synced_at":"2025-08-02T02:36:09.927Z","repository":{"id":274980187,"uuid":"924663607","full_name":"metaory/tess-pdfseq","owner":"metaory","description":"Configurable OCR for documents in any language. Built with Tesseract and optimized for sequential PDF processing.","archived":false,"fork":false,"pushed_at":"2025-01-30T14:22:13.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T14:32:36.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metaory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-30T12:31:37.000Z","updated_at":"2025-01-30T14:24:36.000Z","dependencies_parsed_at":"2025-01-30T14:43:26.378Z","dependency_job_id":null,"html_url":"https://github.com/metaory/tess-pdfseq","commit_stats":null,"previous_names":["metaory/tess-pdfseq"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Ftess-pdfseq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Ftess-pdfseq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Ftess-pdfseq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Ftess-pdfseq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metaory","download_url":"https://codeload.github.com/metaory/tess-pdfseq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245529314,"owners_count":20630344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-30T17:07:05.273Z","updated_at":"2025-03-25T19:28:18.185Z","avatar_url":"https://github.com/metaory.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\".github/logo.svg\" title=\"tess-pdfseq\" width=\"128\" /\u003e\n  \u003ch1\u003etess-pdfseq\u003c/h1\u003e\n\u003c/div\u003e\n\nConfigurable OCR for documents in any language. Built with Tesseract and optimized for PDF processing.\n\n## Features\n- Process PDFs with high accuracy\n- Support for any language Tesseract supports \n- Memory efficient processing\n- Optional GPU acceleration via OpenCV\n- Graceful fallback to CPU processing\n- Docker-based deployment\n- 7z archive support for batch processing\n\n## Quick Start\n\n```bash\n# Build with default language (English)\ndocker build -t tess-pdfseq .\n\n# Process a 7z archive (CPU mode)\n./bin/pdfseq input.7z\n\n# Process with GPU acceleration\nGPU=1 ./bin/pdfseq input.7z\n\n# Process with custom settings\nLANGS=\"eng+ara\" DPI=300 WIDTH=2400 GPU=1 ./bin/pdfseq docs.7z\n```\n\n## Configuration\n\n### Shell Script Options\nEnvironment variables for `bin/pdfseq`:\n- `LANGS`: OCR languages (default: eng)\n- `DPI`: PDF scan resolution (default: 500)\n- `WIDTH`: Target width in pixels (default: 1800)\n- `MAX_PAGES`: Max pages per PDF (default: 3)\n- `WORKDIR`: Working directory (default: current directory)\n- `GPU`: Enable GPU acceleration (default: 0)\n- `TAG`: Docker image tag (default: latest)\n\n### Languages\n\nFirst, install languages during Docker build (plus-separated):\n```bash\n# Build with multiple languages available\ndocker build -t tess-pdfseq --build-arg TESS_LANGS=\"eng+fas+ara\" .\n```\n\nThen use any of the installed languages at runtime:\n```bash\n# Use English (default)\n./bin/pdfseq docs.7z\n\n# Use Persian/Farsi\nLANGS=fas ./bin/pdfseq docs.7z\n\n# Use multiple languages together\nLANGS=\"eng+fas\" ./bin/pdfseq docs.7z\n```\n\nNote: You can only use languages at runtime that were installed during build.\n\nList available languages:\n```bash\n# On Arch Linux\npacman -Ss tesseract-data | grep -Po 'tesseract-data-\\K[^/\\s]*(?=\\s)'\n\n# Using Docker\ndocker run --rm python:3.12-alpine sh -c \\\n  \"apk add --no-cache tesseract-ocr \u0026\u0026 tesseract --list-langs\"\n```\n\nCommon languages:\n- `eng` - English\n- `heb` - Hebrew\n- `jpn` - Japanese\n- `kor` - Korean\n- `rus` - Russian\n- `fas` - Persian/Farsi\n- `chi_sim` - Chinese Simplified\n\n### Processing\n- Optimizes images for OCR (1800px width)\n- GPU acceleration with OpenCV UMat when enabled\n- Automatic fallback to CPU if GPU fails\n- Outputs plain text files\n\n## Requirements\n- Docker (GPU support optional)\n- NVIDIA Container Toolkit for GPU support\n- ~1GB disk space for Docker image\n- p7zip for archive handling\n\n## Development\n\n```bash\ngit clone https://github.com/metaory/tess-pdfseq\ncd tess-pdfseq\n\n# Build with custom languages\ndocker build -t tess-pdfseq --build-arg TESS_LANGS=\"eng+ara\" .\n```\n\n## License\n\n[MIT](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Ftess-pdfseq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetaory%2Ftess-pdfseq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Ftess-pdfseq/lists"}