ANPR using Luxonis camera
- depthai==2.22.0.0
- opencv-python==4.8.0.76
- depthai-pipeline-graph==0.0.5
- depthai-sdk==1.13.1
- openvino-dev==2023.1.0
- black
- pylint
- autoimport
- isort
clone the repo
git clone git@github.com:slashdevops/anpr-luxonis-python.gitcreate a virtual environment and activate it
python3.9 -m venv venv
source venv/bin/activate
pip install --upgrade pipinstall the dependencies
pip install -r requirements.txtpip install openvino-devmkdir -p /Volumes/Projects/ANPR/project/openvino/{models,cache}
omz_downloader --all --cache_dir /Volumes/Projects/ANPR/project/openvino/cache --output_dir /Volumes/Projects/ANPR/project/openvino/modelsAll detections
python3 main.py -nn ~/ai/custom_models/frozen_inference_graph_openvino_2021.4_6shave.blob -vid ~/Videos/1.mp4License plate detections
python3 main.py -nn ~/ai/custom_models/frozen_inference_graph_openvino_2021.4_6shave.blob -vid ~/Videos/1.mp4Car detections
python3 car_detect.py -vid ~/Videos/1.mp4Luxonis zoo
- luxonis / blobconverter -> 2022_1
- Overview of OpenVINO™ Toolkit Intel’s Pre-Trained Models
- doxid-omz-demos-text-detection-demo-cpp
Using converter.py script
python3 converter.py \
-bin /home/christian/ai/openvino/intel/text-recognition-0014/FP16/text-recognition-0014.bin \
-xml /home/christian/ai/openvino/intel/text-recognition-0014/FP16/text-recognition-0014.xml \
-s 6Using blobconverter tool
blobconverter \
--openvino-bin "https://storage.openvinotoolkit.org/repositories/open_model_zoo/2021.4/models_bin/3/text-recognition-0014/FP16/text-recognition-0014.bin" \
--openvino-xml "https://storage.openvinotoolkit.org/repositories/open_model_zoo/2021.4/models_bin/3/text-recognition-0014/FP16/text-recognition-0014.xml" \
--shaves 6 \
--no-cacheblobconverter \
--zoo-name text-recognition-0014 \
--shaves 6