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

**URL:** <https://forum.commonvisionblox.com/t/image-capturing-both-rgb-and-ir-with-cvb-and-gige-camera/1480>\
**Category:** Programming Questions\
**Created:** [August 25, 2021, 3:06am UTC](https://forum.commonvisionblox.com/t/image-capturing-both-rgb-and-ir-with-cvb-and-gige-camera/1480 "2021-08-25T03:06:41Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![redhat](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@redhat](https://forum.commonvisionblox.com/u/redhat)\
**Post date:** [September 9, 2021, 11:51pm UTC](https://forum.commonvisionblox.com/t/image-capturing-both-rgb-and-ir-with-cvb-and-gige-camera/1480/21 "2021-09-09T23:51:52Z")

</div>

@usernv Thank you for your reply.

```auto
# 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:

```auto
<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?

---

<div class="post-metadata">

**Author:** ![usernv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/usernv/32/637_2.png) [@usernv](https://forum.commonvisionblox.com/u/usernv)\
**Post date:** [September 10, 2021, 7:13am UTC](https://forum.commonvisionblox.com/t/image-capturing-both-rgb-and-ir-with-cvb-and-gige-camera/1480/22 "2021-09-10T07:13:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![usernv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/usernv/32/637_2.png) [@usernv](https://forum.commonvisionblox.com/u/usernv)\
**Post date:** [September 13, 2021, 5:14am UTC](https://forum.commonvisionblox.com/t/image-capturing-both-rgb-and-ir-with-cvb-and-gige-camera/1480/23 "2021-09-13T05:14:35Z")

</div>

@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! 🙂

[Previous page](https://forum.commonvisionblox.com/t/image-capturing-both-rgb-and-ir-with-cvb-and-gige-camera/1480.md?page=1)
