Harvesters is an image acquisition library for GenICam-based machine vision cameras. It provides a Pythonic interface to GenICam GenTL producers, supporting multiple transport layers (USB3 Vision, GigE Vision, etc.). Current version 1.4.3, released December 2022. Maintained by the GenICam community.
pip install harvestersNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize harvester, connect to first camera, acquire one buffer.
Set GENICAM_GENTL64_PATH to the directory containing your .cti file, or use h.add_file('/path/to/producer.cti').Always use 'with ia.fetch_buffer() as buffer:' to ensure buffer is valid.
Always call h.update_device_info_list() after adding files and before accessing device_info_list.
Check if GENICAM_GENTL64_PATH is set correctly and contains a .cti file. Verify camera is connected and powered. Call h.update_device_info_list() after adding file.
Install latest version: pip install --upgrade harvesters. Then import from harvesters.core import Harvester.
Ensure ia.start_image_acquisition() is called before fetch_buffer, and the camera is configured to trigger or stream continuously.