Camera USB Vidgear
This function block allows you to interact with USB cameras using the Vidgear library, facilitating live video capture for your projects. It provides options for scanning for available cameras, selecting a specific one, adjusting its resolution, and retrieving frames in real time.
๐ฅ Inputs
Activate Signal
This signal activates the camera to start capturing frames.
Release Signal
This signal releases the camera resources, stopping the capture when no longer needed.
๐ค Outputs
Image Any
The output provides the current frame captured from the selected USB camera.
๐น๏ธ Controls
Scan Connected USB Cameras
A button that initiates a scan for all USB cameras currently connected to your system.
Select USB Camera
A dropdown menu to select from the available USB cameras detected by the scan.
Select Camera Resolution
A dropdown menu that allows you to select the resolution for the selected camera.
Current Resolution
A label showing the currently set resolution of the selected camera.
Open Advanced Setting
A button that opens a window for advanced camera settings, if available.
๐จ Features
Automatic Camera Detection
The block can automatically detect and list all connected USB cameras.
Dynamic Resolution Setting
Users can change the camera resolution on the fly, which is reflected in the UI.
Error Handling
The function block provides clear messages in case of errors, such as failure to connect to the camera.
๐ Usage Instructions
Scan for Cameras: Click on the
Scan Connected USB Cameras
button to list all available USB cameras.Select Camera: Choose a camera from the dropdown menu that appears after the scan completes.
Set Resolution: Optionally, select the desired camera resolution from the provided options.
Activate Camera: The camera will be activated when the
Activate Signal
is sent, allowing you to begin receiving frames.Release Camera: If you no longer need the camera, send the
Release Signal
to free up resources.
๐ Evaluation
When run, this function block initializes the selected USB camera and captures the latest frame to output.
๐ ๏ธ Troubleshooting
๐ก Tips and Tricks
Last updated