genicam / harvesters

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

ia.fetch return empty array but return valid array when setting breakpoint #416

Closed licongchao closed 1 year ago

licongchao commented 1 year ago

Describe the Issue ia.fetch return empty array but return valid array when setting breakpoint

To Reproduce Steps to reproduce the behavior: i followed the sample code to try to get single image from Baslter Camera, When i trigger with ia.fetch(timeout=-1) as buffer it returns empty array. but if i set breakpoint in this line, wait the buffer ready, it can return valid image array

Not sure how to fix this, or Did i miss some message?

licongchao commented 1 year ago

it's my code issue, after queue image, the memory will be cleared, and we should copy the memory if we need to do further process.