This example demonstrates how to discover and open a camera device using the IDS peak generic API for Python.
The program performs the following steps:
- Initializes the library.
- Uses the DeviceManager to detect all available GenTL-compatible devices.
- Lists all discovered devices with basic interface and system information.
- Prompts the user to select a device if multiple devices are available.
- Opens the selected device with control access.
- Retrieves the remote device's GenICam node map.
- Reads and prints basic device information such as:
- Model name
- User-defined device ID (if available)
- Sensor name (if available)
- Maximum supported image resolution
The GenICam node map represents the hierarchical feature set of the device, providing access to parameters like exposure, gain, and device metadata. Most standard parameters follow the GenICam Standard Feature Naming Convention (SFNC), while some devices may also expose vendor-specific features.
This example focuses on device discovery and information retrieval only. No image acquisition is performed.
The following IDS peak Python packages are required:
ids-peak
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.