Camera USB
This function block connects to USB cameras attached to your computer and provides live frames for processing or visualization. Use it to select a camera, change resolution, and control when the camera is active or released.
π₯ Inputs (sockets)
Activate Signal β Boolean input to enable frame retrieval. When not active, the block will hold and return the last captured frame.
Release Signal β Boolean input to stop and release the camera resource.
π€ Outputs (sockets)
Camera Frame β Live frame image from the selected USB camera.
πΉοΈ Controls
Scan Connected USB Cameras β Button to discover and list USB cameras attached to the system.
Select USB Camera β Dropdown to pick which connected camera to use.
Camera Resolution β Dropdown to choose a target capture resolution supported by the camera.
Current Resolution β Read-only label that shows the resolution currently used by the camera.
Open Advanced Setting β Button that opens the camera vendor settings window (when available on the platform).
π― Key features
Easy discovery and selection of multiple USB cameras.
On-the-fly resolution selection with visible current resolution.
Activate/release control to free camera for other apps.
Protection against corrupted or blank frames with automatic retries.
Works well as a live image source for downstream processing or saving workflows.
π How to use
Click the
Scan Connected USB Camerasbutton to populate the camera list.Choose the desired camera from
Select USB Camera.Optionally change
Camera Resolutionand verify theCurrent Resolutionlabel.Send
Activate Signal(true) to start receiving frames onCamera Frame.When finished, send
Release Signal(true) to free the camera resource.
βοΈ What happens when it runs
When activated, the block captures the latest frame from the selected USB camera and outputs it through Camera Frame. If the camera fails or frames appear blank, the block will attempt to recover and will inform you via the message area and status indicators.
π‘ Tips and Tricks
Preview live output by connecting
Camera Frameto theShow Imageblock to inspect frames and open the image viewer.Reduce workload before heavy AI blocks by adding an
Image ResizerorImage Resizeblock to downscale frames.Improve visual quality for detection tasks by inserting
Adjust Colors,Auto Contrast, orDenoisingbefore AI detectors.Combine with
Image ROI Selectto crop a specific region and speed up downstream detectors likeObject DetectionorMask Detection.Save important frames using
Image Loggeror record continuous footage withRecord Video.For text extraction workflows, feed frames into
OCRorOCR (EasyOCR)after ensuring clear focus and contrast.Use
BlurorImage Thresholdto preprocess noisy scenes beforeFind Objector other template-based detectors.If you plan to run cloud or remote logging, pair the camera source with
Image LoggerorCSV Exportto store metadata along with frames.
π οΈ Troubleshooting
No cameras listed: Ensure the camera is connected and powered. Try reconnecting the USB cable or switching ports, then press
Scan Connected USB Camerasagain.Camera busy or cannot start: Close other applications that may be using the camera and try releasing then re-scanning.
Blank or corrupted frames: Try selecting a different resolution via
Camera Resolutionor press the scan button to restart the camera. If the problem persists, unplug and replug the camera.Advanced settings not available: Platform limitations may prevent showing vendor settings; check platform-specific notes or use the camera's external utility.
If problems persist, try combining the camera with a simple preview using Show Image to isolate whether the issue is hardware or a downstream processing block.
Last updated
Was this helpful?