Skip to content

Commit

Permalink
remove legacy build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
abrichr committed Apr 12, 2023
1 parent 03c0964 commit c097825
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions puterbot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,55 +65,3 @@ following information:
```
alembic revision --autogenerate -m "<msg>"
```


## Building (Windows only)

install ms c++ build tools
https://visualstudio.microsoft.com/visual-cpp-build-tools/

install python 3.9.6
https://www.python.org/ftp/python/3.9.6/python-3.9.6-amd64.exe

trust pip hosts on proxy restricted windows machine:
```
pip config set global.trusted-host "pypi.org files.pythonhosted.org pypi.python.org" --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org
```

install tesseract
```
https://github.om/UB-Mannheim/tesseract/wiki/
```

add to path in the current shell
```
set PATH=%PATH%;%USERPROFILE%\AppData\Local\Tesseract-OCR
```

do it permanently
```
setx PATH "%PATH%;%USERPROFILE%\AppData\Local\Tesseract-OCR"
```

build
```
pyinstaller --noconfirm --add-data "resources\*.png;resources" audit.py
```

## Script dependencies

install easyocr
```
pip install --user easyocr -i https://pypi.python.org/simple/
```

install kerasocr
```
pip install --user keras-ocr -i https://pypi.python.org/simple
python -m pip install --user tensorflow -i https://pypi.python.org/simple --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org
```

install paddleocr
```
python -m pip install --user paddlepaddle
````

0 comments on commit c097825

Please sign in to comment.