Basler Camera
This function block connects to Basler industrial cameras and provides live frames for processing or visualization. Use it when you have a Basler GigE camera on the network and want a reliable, low-delay image source.
π₯ Inputs
This function block has no inputs.
π€ Outputs
Image This output provides the latest frame captured from the connected Basler camera.
πΉοΈ Controls
IP Address Enter the camera IP address. Leave empty to let the block try to use the first available Basler camera on the network.
NAT Address Optional NAT address to use when the camera is behind a network address translation setup.
Destination Address Optional destination address for multicast or network stream configuration (use only if required by your setup).
Connect / Disconnect The block will attempt to connect automatically when parameters are set and the scenario runs. Use the control area to change addresses and let the block reconnect automatically.
π― Key features
Low-latency frame acquisition suitable for industrial inspection and real-time processing.
Handles network camera discovery: use an IP to target a specific camera or leave the IP empty to use the first detected camera.
Automatic reconnect when connection parameters change or when the camera becomes temporarily unavailable.
Simple controls for NAT and destination settings to support more complex network setups.
βοΈ How it runs
When the scenario runs, the block tries to connect to the camera using the given addresses.
If connection parameters are changed, the block will attempt to reconnect automatically.
While connected, the block outputs the most recent frame on the
Imageoutput for other blocks to consume.If the camera becomes unavailable, the block will report an error and try to recover; frames may be temporarily unavailable until reconnection succeeds.
π Usage
Provide the camera network information using the
IP Addressand optionallyNAT AddressorDestination Address.Run the scenario. The block will connect and start outputting frames on
Image.Use the
Imageoutput as input to visualization, detection, analysis, or logging blocks.If you need to change the camera or settings, update the fields; the block will reconnect automatically.
π‘ Tips and Tricks
For visual feedback and quick inspection, connect
Imageto theShow Imageblock.If you plan to record frames, route
ImagetoRecord Videoor useImage Loggerfor saving stills.For object analysis or detection workflows, combine
Imagewith AI blocks such asObject Detection,Object Detection - Custom,Mask Detection,Pose Estimation, orSkeleton Estimation.To focus processing on a region, connect
ImagetoImage ROI SelectorImage ROIand feed the cropped result to detectors (for exampleFind ObjectorTemplate Match).Use preprocessing blocks such as
Blur,Image Threshold, orAdjust Colorsto improve detection robustness under noisy or variable lighting.
π οΈ Troubleshooting
No frames received: Check that the camera is powered and reachable from the computer network. Verify the correct
IP Addressor try leaving it empty to auto-detect.Intermittent frames or disconnects: Ensure network stability, and confirm any NAT or firewall settings. If using
NAT AddressorDestination Address, make sure they match your network routing.Wrong resolution or scaling: Some Basler settings are configured in the camera vendor software. If resolution adjustments are required, open the camera's configuration tool provided by the manufacturer.
High latency: Reduce image size with
Image Resizeror lower camera frame rate via the camera's settings to improve responsiveness.
If issues persist, try restarting the camera hardware and re-running the scenario, then check connections again.
Last updated
Was this helpful?