Basler Camera
This function block connects to a Basler camera and provides live frames for your scenario. It is designed for industrial cameras and offers network configuration and timeout controls suitable for reliable frame grabbing.
π₯ Inputs
This block does not require any input sockets.
π€ Outputs
Image
Latest camera frame. If the camera is unavailable the output will be empty (None) until a frame can be retrieved.
πΉοΈ Controls
IP Address
Enter the camera IP address. Leave empty to try the first detected Basler camera on the network.
NAT Address
Optional. Use when the camera is reachable via a NAT address different from the camera IP.
Destination Address
Optional. Use when the camera should send multicast or is routed to a specific computer address.
Trigger Ready Timeout (ms)
Maximum wait time (milliseconds) before sending a software trigger to the camera.
Retrieve Result Timeout (ms)
Maximum wait time (milliseconds) to receive the frame after the trigger is sent.
Note: The block will attempt to (re)connect automatically when parameters change. Use the controls above to configure connectivity and timing.
π¨ Features
Reliable connection to Basler cameras with IP and NAT support.
Timeout controls to tune responsiveness for network or camera delays.
Automatic reconnect on parameter changes or temporary failures.
Outputs the latest frame in real time for downstream processing.
π Usage Instructions
Fill
IP Addressif you know the camera address. Otherwise leave empty to use the first available Basler camera.Optionally set
NAT AddressorDestination Addressif your network requires it.Adjust
Trigger Ready Timeout (ms)andRetrieve Result Timeout (ms)if you encounter delays.Add downstream blocks that consume the
Imageoutput to build your pipeline.
π Evaluation
When running, this block will provide the most recent frame from the configured Basler camera on the Image output. If the camera cannot be reached or a frame cannot be retrieved, the output will be empty until the connection is restored.
π‘ Tips and Tricks
Preview frames quickly by connecting the
Imageoutput toShow Image.Save captured frames or sequences with
Image LoggerorRecord Videofor offline review.If your AI blocks struggle with very large frames, insert
Image Resizerbefore heavy processing to reduce image size and improve throughput.For detection or inspection tasks, pair with
Object Detection,Object Detection - Custom, orMask Detectionto analyze live frames.Use
Super Resolutionafter capture when you need improved visual detail for downstream analysis.Crop or focus on areas of interest using
Image ROI SelectorImage ROIbefore applying detectors to reduce false positives and speed up processing.
π οΈ Troubleshooting
If no frames appear, check network connectivity and that the camera is powered and reachable at the configured address.
If frames are delayed or time out, increase
Trigger Ready Timeout (ms)and/orRetrieve Result Timeout (ms).If connection keeps failing after parameter changes, verify the addresses and try restarting the camera hardware or network equipment.
Last updated