Other demo objectives are:
On startup, the application reads command line parameters and loads the specified networks. The Yolo v3 Object Detection network is required.
NOTE: By default, Open Model Zoo demos expect input with BGR channels order. If you trained your model to work with RGB order, you need to manually rearrange the default channels order in the demo application or reconvert your model using the Model Optimizer tool with the
--reverse_input_channelsargument specified. For more information about the argument, refer to When to Reverse Input Channels section of Converting a Model Using General Conversion Parameters.
For demo input image or video files, refer to the section Media Files Available for Demos in the Open Model Zoo Demos Overview. The list of models supported by the demo is in
<omz_dir>/demos/multi_channel_object_detection_demo_yolov3/cpp/models.lst file. This file can be used as a parameter for Model Downloader and Converter to download and, if necessary, convert models to OpenVINO Inference Engine format (*.xml + *.bin). You can also review OpenVINO article to see how to convert the YOLO V3 and tiny YOLO V3 into IR model and execute this demo with converted IR model.
An example of using the Model Downloader:
An example of using the Model Converter:
Running the application with the
-h option yields the following usage message:
Running the application with an empty list of options yields the usage message given above and an error message.
For example, to run the demo on CPU, with one single camera, use the following command:
To run the demo on HDDL, using two recorded video files, use the following command:
Video files will be processed simultaneously.
To achieve 100% utilization of one Myriad X, the rule of thumb is to run 4 infer requests on each Myriad X. Option
-nireq 32 can be added to above command to use 100% of HDDL-R card. The 32 here is 8 (Myriad X on HDDL-R card) x 4 (infer requests), such as following command:
General parameter for input source is
-i. You can run the demo on web cameras and video files simultaneously by specifying:
-i <webcam_id0>,<webcam_id1>,<video_file1>,<video_file2> with paths to webcams and video files separated by a comma. To run the demo with a single input source (a web camera or a video file), but several channels, specify an additional parameter,
duplicate_num, for example:
-duplicate_num 4. You will see four channels. With several input sources, the
-duplicate_num parameter will duplicate each of them.
Below are some examples of demo input specification:
To see all available web cameras, run the
ls /dev/video* command. You will get output similar to the following:
You can use
-i option to connect all the three web cameras:
To connect to IP cameras, use RTSP URIs:
The demo uses OpenCV to display the resulting frames with detections rendered as bounding boxes. On the top of the screen, the demo reports throughput in frames per second. You can also enable more detailed statistics in the output using the
-show_stats option while running the demos.