This sample demonstrates gvafpscounter element used to measure overall performance of single-channel or multi-channel video analytics pipelines.
The sample outputs FPS (Frames Per Second) every second and average FPS on exit.
The sample builds GStreamer pipeline containing video decode, inference and other IO elements, or multiple (N) identical pipelines if number channels parameter set to N>1.
The gvafpscounter
inserted at the end of each channel pipeline and measures FPS across all channels.
The command-line parameters allow to select decode and inference devices (ex, CPU, GPU).
By default the sample measures performance of video analytics pipeline on person-vehicle-bike-detection-crossroad-0078
model.
Modify MODEL=
line in the script to benchmark pipeline on another model.
NOTE: Before running samples (including this one), run script
download_models.sh
once (the script located insamples
top folder) to download all models required for this and other samples.
You can download video file example by command
or use any other media/video file.
The sample takes one to four command-line parameters (last three are optional):
The sample