Captures the live stream from camera.
Uses tee to split the stream into two for inferencing and composing.
Captures the video stream using filesrc, followed by qtdemux, which demultiplexes the stream.
Uses tee to split the stream into two for inferencing and composing.
Captures the RTSP stream using rtspsrc, followed by rtph264depay for video extraction.
Uses tee to split the stream into two for inferencing and composing.
Receives the video stream on its sink pad.
Performs the following preprocessing on the stream data. This preprocessing is done when the model expects floating-point values as input.
Color conversion
Scaling (up or down)
Normalization
Converts the preprocessed video stream to a tensor stream on its source pad.
After the inference runtime receives the tensor stream on its sink pad, it runs the inference.
Produces a tensor stream with the inference results on its source pad.
Applies a threshold to the chosen number of results.
Loads the YOLOv8 module.
Produces video frames with only bounding boxes that can be overlaid on objects.
Sends these processed frames to the sink pad of qtivcomposer.
Produces the output in a text format (bounding box coordinates and labels).
This output is connected to appsink plugin where the metadata is read, parsed, and logged.
The bounding box information is used to count number of humans in each frame.
Composes frames with contents from its sink pads.
Pushes the GStreamer buffers containing these composed frames to its source pad.
Waylandsink submits the video stream received on its sink pad to Weston.
Weston renders the video stream on a local display.
cpu
gpu
dsp
camera–Primary (0) or secondary (1).
file-path–The directory path to the video file.
rtsp-ip-port–The address of the RTSP stream: rtsp://<ip>:<port>/<stream>