This example demonstrates how to acquire images from an IDS camera and retrieve the system timestamp associated
with each image. It also shows how to calculate system timestamps for remote device events (e.g., ExposureStart)
based on device timestamps.
The example performs the following steps:
- Selects the first connected device that supports system timestamp functionality.
- Attempts to load the default user set to configure the device.
- Enables
ExposureStartevents on the device if supported. - Acquires images from the camera and prints the system timestamp for each buffer.
- Receives remote device events, maps their device timestamps to system time, and prints the corresponding system timestamps.
ids-peak-common >= 1.3.0ids-peak >= 1.15.0
To install all required dependencies, use the provided requirements.txt:
pip install -r requirements.txt
In addition, a suitable GenTL must be installed, for example via the IDS peak Setup.
After installing all requirements the demo can be run by executing main.py with the Python interpreter
python main.py
or, if Python files (*.py) are associated with the Python interpreter, by double-clicking the file.