-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathENVIRONMENT.txt
More file actions
43 lines (32 loc) · 1.27 KB
/
Copy pathENVIRONMENT.txt
File metadata and controls
43 lines (32 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# doc-textify environment
Project path after migration:
D:\python\tu_xiang_wenben_publish
Python:
Python 3.10 or newer is supported.
The project was developed and tested locally with Python 3.13.5.
Core Python dependencies:
pypdf>=4
Pillow>=10
pytesseract>=0.3.10
pypdfium2>=4
Development and packaging dependencies:
pytest>=8
pyinstaller>=6
opencv-python-headless>=4.8
Optional external OCR dependency:
Tesseract OCR
Tesseract is not bundled by pip. Install it separately and add tesseract.exe to PATH.
For Chinese + English OCR, install the chi_sim and eng language data, then run:
python -m doc_textify input.png --out outputs --format both --lang chi_sim+eng
Install for development:
python -m pip install -r requirements-dev.txt
python -m pip install -e .
Run tests:
python -m pytest -q
Run CLI:
python -m doc_textify input.pdf --out outputs --format all
python -m doc_textify input.png --out outputs --format all --lang chi_sim+eng
Build executable:
python -m PyInstaller --onefile --name doc-textify doc_textify_cli.py --exclude-module PyQt5 --exclude-module PySide6 --exclude-module matplotlib --exclude-module IPython --exclude-module torch --exclude-module pytest --exclude-module pandas --exclude-module scipy --exclude-module sklearn
Executable output:
dist\doc-textify.exe