Sample applications and jupyter notebooks using the official python wrapper for the Basler pylon Camera Software Suite.
This is a companion repository to pypylon
Please Note: This project is offered with no technical support by Basler AG. You are welcome to post any questions or issues on GitHub or on ImagingHub.
- Some of the content was part of the Basler webinar about pypylon. You can watch this to get more in depth information about pylon SDK and pypylon. Please check for the recording at Basler PyPylon Webinar
- As the feature names of basler cameras differ slightly between e.g. Basler ace USB and Basler ace GEV, it is noted at the samples or notebooks for which camera family the sample applies.
- The python requirements to run the jupyter notebooks and samples are listed in requirements.txt
These examples use only the basic pypylon library and can be run without additional dependencies.
-
Device enumeration and configuration basics deviceenumeration_and_configuration
-
Demonstration of different grab strategies grabstrategies
-
How to handle multicamera setups in pypylon multicamera
-
Using hardware trigger and access image chunks ( USB ) hw_trigger_and_chunks
-
Low overhead image capturing in a virtual line scan setup and display in notebook ( USB ) USB_linescan_performance_demo_opencv_notebook
-
Exposure bracketing using the sequencer feature of ace devices ( USB) USB_HDR_exposure_sequencer
-
Exposure bracketing using the sequencer feature of ace2/boost-R devices ( USB) USB_Ace2_BoostR_HDR_exposure_sequencer
-
Full HDR multi-exposure example full_HDR_multiexposure_example
These examples require the pypylon-contrib library which provides additional utilities and helper functions. Install it using:
pip install pypylon-contrib
-
Sequencer utilities - Simplified interface for camera sequencer configuration sequencer
Demonstrates how to use the SequencerUtils from pypylon-contrib to easily configure camera sequences with the CameraSequence, SinglePathSet, and SequencerTransition classes.
-
Serial communication - Communication with serial devices connected to Basler cameras serial_communication
Shows how to use the BaslerSerial class to communicate with serial devices connected to a Basler camera, enabling control of external hardware through the camera's serial interface.
Pull requests to pypylon-samples are very welcome. e.g. generic samples that demonstrate interaction with GUI toolkits, as we typically only use Qt.
- info table missing that clearly identifies which samples work for which camera model