Searching text in a image, an opencv based text area detect tool.
- Python 3.6
- OpenCV 3.2
- Tesseract 4.0 Alpha
$ pip3 install opencv-python
$ pip3 install opencv-contrib-python
$ python3 text_detect_wrap.py /path/to/image.jpg [out-put-folder]
$ open result.jpg # or out-put-folder/result.jpg
$ bash text-detect.sh /path/to/image.jpg [out-put-folder]
$ cat /path/to/image/result.trim.txt # or out-put-folder/result.trim.txt
$ docker build -t t4-pkg -f docker/Dockerfile.pkg docker
$ docker run --rm -it -v $(pwd)/docker:/pkg t4-pkg
$ docker build -t t4-base -f docker/Dockerfile.base docker
$ docker build -t t4 .
$ docker run -dt --name t4 -p 5000:5000 t4
URL: http://<IP>:5000/detect/<url-of-an-image-to-detect>