Closed bx5974 closed 9 years ago
Looks like you need to start another docker container to do the actual stroke width transform.
See https://github.com/tleyden/open-ocr/wiki/Stroke-Width-Transform#start-an-additional-worker
$ export AMQP_URI=amqp://admin:${RABBITMQ_PASS}@${DOCKER_HOST}/
$ docker run -d tleyden5iwx/open-ocr-preprocessor open-ocr-preprocessor -amqp_uri "${AMQP_URI}" -preprocessor "stroke-width-transform"
Open-OCR with preprocessor doesnt work - i tried the below CURL
curl -X POST -H "Content-Type: application/json" -d '{"img_url":"http://bit.ly/ocrimage","engine":"tesseract", "preprocessors":["stroke-width-transform"]}' http://172.16.0.20:8080/ocr
There is no result, but running indefinitely - resulting in TImeout, , but without pre-procesor it works
I followed the following steps, on our local docker Host
docker run -d -p 5672:5672 -p 15672:15672 -e RABBITMQ_PASS=mypass tutum/rabbitmq
docker run -d -p 8080:8080 tleyden5iwx/open-ocr open-ocr-httpd -amqp_uri "amqp://admin:mypass@172.16.0.20/" -http_port 8080
docker run -d tleyden5iwx/open-ocr open-ocr-worker -amqp_uri "amqp://admin:mypass@172.16.0.20/"
curl -X POST -H "Content-Type: application/json" -d '{"img_url":"http://bit.ly/ocrimage","engine":"tesseract"}' http://172.16.0.20:8080/ocr
But This Works
curl -X POST -H "Content-Type: application/json" -d '{"img_url":"http://bit.ly/ocrimage","engine":"tesseract"}' http://172.16.0.20:8080/ocr