OCR de facturas y análisis de datos
- Image preprocessing and OCR
python App.py $(imagePath) $(resultDirPath) $(resultFilename)
-imagePath includes the whole directory route, filename and extension -resultDirPath must be just the directory path to which the resulting image and text file are written -resultFilename must be an identifying filename for the result files, without directory path or extension. In both cases the final filenames will include the 'binarized' and 'OCR' prefixes as well as the extensions '.jpg' and '.txt'
- Build the docker image:
docker build -t myapp-dev .
- Run the container:
docker run -it --name myapp --rm \
--volume $(pwd):/usr/src/app \
--net=host myapp-dev:latest \
sh
- Run flake8 linter:
flake8
- Run pytest:
pytest Code/tests/