This demo runs 'person-detection-0200' and 'person-reidentification-0277' model with OpenVINO model server using OVMS wrapper library.
The demo detects person in the input frame and track them.
- Copy OVMS wrapper library
- Ubuntu
cp -r ../../ovms_wrapper .
- Windows 10/11
xcopy /E ..\..\ovms_wrapper\ ovms_wrapper\
- (Optional) Copy gRPC handler codes
If you have installed TF and TF-serving-api, you can skip this operation.
You can use gRPC handler codes instead of TF and TF-serving-api. This is useful when you want to run this demo on a small devices such as Raspberry Pi.
- Ubuntu
cp -r ../../_tensorflow ./tensorflow
cp -r ../../_tensorflow_serving ./tensorflow_serving
- Windows 10/11
xcopy /E ..\..\_tensorflow\ tensorflow\
xcopy /E ..\..\_tensorflow_serving\ tensorflow_serving\
- Install prerequisites for the demo
- Ubuntu
python3 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade pip setuptools
python3 -m pip install numpy opencv-python scipy munkres grpcio_tools
- Windows 10/11
python -m venv venv
venv\Scripts\activate
python -m pip install --upgrade pip setuptools
python -m pip install numpy opencv-python scipy munkres grpcio_tools
-
Setup and start OVMS
Please refer toHow to setup and start OpenVINO Model Server fot the demos
page to start OVMS. -
Run the demo program
- Ubuntu
python3 object-detection-and-line-cross.py
- Windows 10/11
python object-detection-and-line-cross.py