rabi3elbeji / Price-Recognition

Price detection based on object detection with a deep learning model and OCR extraction with tesseract

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Price Recognition

This is an example of a server client application that helps for price recognition from an image captured by the phone.

Server side

  • Install Docker.

  • Build the Docker image using the configurations inside the Dockerfile. The name of the image is object-detect.

docker build -t object-detect ./tf-serve
  • Run the Docker image.
docker run --name object-detect -h 0.0.0.0 --network="host" --rm -d object-detect:latest
# --name        For easy referencing this container
# --network     Setup network as host
# --rm          Removes container when it is stopped
# -d            Daemonize the docker container
# -h            Setup hostname, so we can access it using localhost

Client side

  • Install requirement (python version > 3.x)
pip3 install -r requirement.txt
  • Run server
python api/predict.py

sample of price bbox detection and price compute results

OCR Price

Licence

MIT

About

Price detection based on object detection with a deep learning model and OCR extraction with tesseract


Languages

Language:Python 92.0%Language:Dockerfile 8.0%