genicam / harvesters

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

_gentl.Buffer.raw_buffer non access #457

Closed JYLEE2017 closed 1 month ago

JYLEE2017 commented 1 month ago

Describe the Issue my env: python 3.11.7 genicam 1.3.0 harvesters 1.4.2 the monitor.buffer all can access and read value except context and raw_buffer place in harvesters.core.py image In ImageAcquirer,I use monitor(EventManagerNewBuffer) buffer access raw_buffer,my python program will crash(no error)just crash dump,program exit .

If yes, please provide a sample code:

from harvesters.core import Harvester
harvester = Harvester()
harvester.add_file(CTI_FILE,check_existence=True,check_validity=True)
harvester.update()
device = harvester.create()
device.start()
buffer = device.fetch_buffer(timeout=10)  # this will be crash when access raw_buffer

use _gentl.EventManagerNewBuffer__get_buffer(self) return Buffer can't access raw_buffer property place in genicam.gentl.py 1307lines image

I can't know how to accomplish this interface(_gentl.EventManagerNewBuffer__get_buffer) in cpp place in genicam.gentl.py Buffer -> raw_buffer When I try to get raw_buffer, the program will exit inexplicably image May I ask which part of the CTI implementation this interface corresponds to?

pelease help ,thank you very much.