morefigs / pymba

Python wrapper for Allied Vision's Vimba C API
MIT License
105 stars 84 forks source link

opencv_liveview_example error handling #59

Closed antoniosimunovic closed 5 years ago

antoniosimunovic commented 7 years ago

Hi, I'm having problems with an example in tests/opencv_liveview_example.py:

After first caught exception in block:

try:
    frame.queueFrameCapture()
    success = True
except:
    droppedframes.append(framecount)
    success = False

every other call in the while loop to that code block ends with same exception.

What is a correct way to recover from queueFrameCapture error?

morefigs commented 5 years ago

Please try to repeat the error with v0.2 if it's still a problem.