robokudo.descriptors.analysis_engines.demo_usb_camera

Analysis engine for demonstrating USB camera integration.

This module provides an analysis engine that demonstrates how to read and process video data from various sources using OpenCV, including: - USB webcams - Video files - Image files - Network video streams

The pipeline implements basic video capture and visualization functionality, serving as a starting point for more complex video processing applications.

Note

The default configuration uses a USB webcam (device 0), but can be easily modified to use other video sources by changing the device parameter.

Classes

AnalysisEngine

Analysis engine for basic video capture and visualization.

Module Contents

class robokudo.descriptors.analysis_engines.demo_usb_camera.AnalysisEngine

Bases: robokudo.analysis_engine.AnalysisEngineInterface

Analysis engine for basic video capture and visualization.

This class implements a simple pipeline for reading video data from various sources and visualizing it. It supports multiple input sources through OpenCV’s video capture interface.

Supported input sources: - USB webcams (default) - Local video files (e.g., .webm, .mp4) - Image files (e.g., .jpg, .png) - Network video streams (via URL)

Note

The pipeline is configured to loop once through the input source by default. This can be modified using the loop_mode parameter in the camera config.

name()

Get the name of the analysis engine.

Returns:

The name identifier of this analysis engine

Return type:

str

implementation()

Basic demo to read video data from a local usb webcam.

This method constructs a simple processing pipeline that reads video data from a configured source and visualizes it. The source can be configured by modifying the device parameter in the camera configuration.

Example device configurations: - USB webcam: device = 0 - Video file: device = “/path/to/video.webm” - Image file: device = “/path/to/image.jpg” - Network stream: device = “https://example.com/video.gif

Returns:

The configured pipeline for video processing

Return type:

robokudo.pipeline.Pipeline