The camera stops streaming images after a while (apprx. 10 seconds). The code stream.wait() function waits forever and the stream.wait_for() function returns a timeout.
The code to reproduce this error is below (it was provided by Stemmer Imaging support):
import cvb
vin_device = cvb.DeviceFactory.open(cvb.install_path() + "/drivers/GenICam.vin")
stream = vin_device.stream
stream.start()
count = 0
try:
while(True):
image, status = stream.wait_for(1000)
if status == cvb.WaitStatus.Ok:
count = count +1
print("Acquired image " + str(count) + " into buffer " +
str(image.buffer_index) + ".")
else:
raise RuntimeError("timeout during wait"
if status == cvb.WaitStatus.Timeout else
"acquisition aborted")
except:
pass
finally:
stream.try_abort()
The same error also occurs with the Genicam browser. The camera stops after a while and the image freezes. The logger says: “WARNING CVUSB:DEV14FB00B7A742|CVUSBTL:STM14FB00B7A742: Acquisition timeout occured (counter= 0). A reason might be no or bad trigger signal. The AcquisitionTimeout is 60000 msec.”
I tested my code on 2 different computers and 3 different cameras. The same error occurs there, too.
I am using Common Vision Box Version 13.02.002 64Bit on Ubuntu 18 with jAi GO-5000C-USB cameras.