The OpenVINO™ Toolkit for the Raspbian* OS package does not include the demo applications found in Open Model Zoo. These demos can be downloaded separately from the Open Model Zoo GitHub repository.
|Note||Prior to installing the Open Model Zoo demos, this article assumes you performed one of the following: |
Set Environment Variables
If the pre-built package of OpenVINO™ Toolkit for Raspbian* OS is installed, run the following commands:
If you built the Open Source OpenVINO™ Toolkit for Raspbian* OS run the following commands:
|Note||The PYTHONPATH variable may differ if using a different version of Python*, please make sure this variable matches your built environment.|
How to Install
- Clone the Open Model Zoo repository to your home directory:
git clone https://github.com/opencv/open_model_zoo.git
- Navigate to the demos directory and create a build directory:
mkdir build && cd build
- Configure cmake to build the demos for Raspberry Pi*:
cmake -DCMAKE_BUILD_TYPE=Release ..
Run make help to list available options:
You can choose to build individual demos by specifying the demo name, for example:
Or use the following command to build all the demos:
After the build process is completed, you can find the demo binaries in the ~/open_model_zoo/demos/build/armv7l/Release directory.
Run a Demo Application
In order to run one of the demo applications, a model and input video is required. Follow the steps noted below to run the object_detection_demo_ssd_async.
To download a sample video run the following commands:
To download a model directly from download.01.org, use the following commands to grab a person-vehicle-bike detection model:
|Note||The Intel® NCS2 requires models that are optimized for the 16-bit floating point format known as FP16. Your model, if it differs from the example, may require conversion using the Model Optimizer to FP16.|
./object_detection_demo_ssd_async -i ~/Downloads/person-bicycle-car-detection.mp4 -m ~/Downloads/person-vehicle-bike-detection-crossroad-0078.xml -d MYRIAD
Running object_detection_demo_ssd_async for Python:
python3 object_detection_demo_ssd_async.py -i ~/files/person-bicycle-car-detection.mp4 -m ~/models/person-vehicle-bike-detection-crossroad-0078.xml -d MYRIAD
For more information on this and other demos use the -h flag, for example:
This completes the installation procedure for the Open Model Zoo Demos on Raspberry Pi* OS.