This repository has been archived on 2020-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2020-09-28 07:15:13 +00:00
darknet new aiparking engine deploy 2020-09-09 10:53:56 +07:00
keras_src new aiparking engine deploy 2020-09-09 10:53:56 +07:00
models new aiparking engine deploy 2020-09-09 10:53:56 +07:00
app.py new log, no plate still ocr 2020-09-28 07:15:13 +00:00
app.pyc new log, no plate still ocr 2020-09-28 07:15:13 +00:00
config.json new aiparking engine deploy 2020-09-09 10:53:56 +07:00
crypt.pyc new aiparking engine deploy 2020-09-09 10:53:56 +07:00
func.pyc new aiparking engine deploy 2020-09-09 10:53:56 +07:00
install.sh new aiparking engine deploy 2020-09-09 10:53:56 +07:00
plate_detect.pyc new log, no plate still ocr 2020-09-28 07:15:13 +00:00
plate_ocr.pyc new log, no plate still ocr 2020-09-28 07:15:13 +00:00
README.md new aiparking engine deploy 2020-09-09 10:53:56 +07:00
requirements.txt new aiparking engine deploy 2020-09-09 10:53:56 +07:00
server.py new aiparking engine deploy 2020-09-09 10:53:56 +07:00
server.pyc new aiparking engine deploy 2020-09-09 10:53:56 +07:00
test_request.py new aiparking engine deploy 2020-09-09 10:53:56 +07:00
test_request.pyc new aiparking engine deploy 2020-09-09 10:53:56 +07:00

Init

For dev

sudo apt install python2.7 python-pip
git clone http://gitea.beetai.com/sonnhh/engine-plate-v2-dev
cd engine-plate-v2-dev

sudo apt install -y libsm6 libxext6
pip install -r requirements.txt
python server.py

For deployment

sudo apt install python2.7 python-pip libsm6 libxext6 git libxrender-dev
git clone http://gitea.beetai.com/sonnhh/engine-plate-v2-deploy
cd engine-plate-v2-deploy
pip install -r requirements.txt
python server.py

API

POST: http://localhost:8080/get-from-plate

Body (json):

{
    "img64": "img-base64-string...",
    "mode": "long" or "square"
    "display": "full" or "row2"
}

Result (json):

{
    "ocr": "51A-23445"
}

POST: http://localhost:8080/get-from-frame

Body (json):

{
    "img64": "img-base64-string...",
    "mode": "long" or "square"
    "display": "full" or "row2"
}

Result (json):

{
    "ocr": "51A-23445",
    "plate": "img-base64-string..."
}

Config server

Config address and port in file server.py