genicam / harvesters

Image Acquisition Library for GenICam-based Machine Vision System
Apache License 2.0
501 stars 86 forks source link

Image acquisition from IRC900 through GigE with Harvesters #378

Open oermannr opened 1 year ago

oermannr commented 1 year ago

Having a problem extracting an image stream from an IRC900 camera through the GigE interface. I'm using python version 3.9.12 The code segment below describes how I have endeavored to extract the image stream:

from harvesters.core import Harvester from genicam.genapi import NodeMap node_map = NodeMap( ) xml_filename = r"path\IRCameras_Stream_rev0.xml" node_map.load_xml_from_file(xml_filename) h = Harvester( ) cti_filename = r"path\irctransport.cti" h.add_file(cti_filename)

No error messages result from this code and printing h.files indicates correct path and filename of .cti file loaded However, when I execute the h.update( ) command I get messages as below:

GenTL producer does not implement IFGetParentTL GenTL producer does not implement DSGetBufferCheck GenTL producer does not implement DevGetParentIF etc ... (6 listed in total)

Then executing the command print(h.device_info_list) prints [ ]

Any suggestions as to where I might be going wrong would be appreciated.

MathijsNL commented 1 year ago

Can you connect to the camera and start acquisition without loading the XML file, or does that also give errors? If so, there might be something wrong with the GenTL producer, if not there might be a mismatch between the XML file and the GenTL producer.

And you can add code blocks like this:

``` print("Code block") ```

Which will result in:

print("Code block")