Image capturing (Both RGB and IR) with CVB and GiGE camera

@usernv Thank you for your reply.

# CVBpy Example Script
#
# 1. Discover all devices.
# 2. Load the first device found.
# 3. Acquire images.
#
 
 
import cvb
 
 
discover = cvb.DeviceFactory.discover_from_root(cvb.DiscoverFlags.IgnoreVins)
device = cvb.DeviceFactory.open(discover[0].access_token, cvb.AcquisitionStack.GenTL)
 
stream_RGB = device.stream(cvb.ImageStream, 0)
stream_IR = device.stream(cvb.ImageStream, 1)

print(stream_RGB)
print(stream_IR)

stream_RGB.start()
stream_IR.start()
 
for i in range(10):
    image, status, node = stream_RGB.wait()
    image1, status1, node1 = stream_IR.wait()
    if status == cvb.WaitStatus.Ok:
        print("Acquired image: " + str(i))
 
stream_RGB.abort()
stream_IR.abort()

I am getting the error:

<cvb.ImageStream object at 0x7f77faa21120>
<cvb.ImageStream object at 0x7f77faa21120>
Traceback (most recent call last):
  File "test_2_streams.py", line 22, in <module>
    stream_IR.start()
RuntimeError: Acquisition is already started.

It seems that stream_RGB and stream_IR both are the same streams. Is it?

2 Likes

@redhat thank you for the test! We are currently looking into the issue and get back to you when the problem is resolved.

@redhat, I sent you the updated Python bindings which should work now. They will also be part of CVB 13.04.001. Many thanks for reporting the bug! :slight_smile: