genicam / harvesters

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

No execution in fetching buffer block #418

Open eumel2 opened 1 year ago

eumel2 commented 1 year ago

Describe the Issue I can find and start the camera. Wireshark showes packages arriving and the timeout is not triggered either, but code inside the with block is not getting executed

Sample Code

from harvesters.core import Harvester
import numpy as np 

h = Harvester()
h.add_file('/opt/mvIMPACT_Acquire/lib/x86:64/mvGenTLProducer.cti')
h.update()
ia = h.create(0)
ia.start()

with ia.fetch(timeout=3) as buffer:
    print(buffer)
    component = buffer.payload.components[0]
    _1d = component.data
    print('1D: {0}'.format(_1d))

Configuration

Actions You Have Taken

There seems to be no hardware issue, the camera can be started and packages are arriving as can be seen in wireshark. Setting Height, Width and PixelFormat doesnt work since i got Read Only access (issue for another day) They are however set to what they should be (768, 1024, 'Mono16') Using Vimba as a GenTL producer does not find the camera at all Timeout in fetch is not triggered