# 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:** 1\
**Showing post:** 2

<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:** [August 25, 2021, 6:13am UTC](https://forum.commonvisionblox.com/t/image-capturing-both-rgb-and-ir-with-cvb-and-gige-camera/1480/2 "2021-08-25T06:13:10Z")

</div>

I would propose to use the GenTL acquisition stack which is quite new and supports a lot more functionality. This can be done by switching the device open command with this flag instead: **cvb.AcquisitionStack.GenTL**

```auto
with cvb.DeviceFactory.open(
         mock_info.access_token, cvb.AcquisitionStack.GenTL) as device:
    device = cvb.DeviceFactory.open(device_info.access_token, cvb.AcquisitionStack.GenTL)
    stream0 = device.stream(cvb.ImageStream, 0)
    stream1 = device.stream(cvb.ImageStream, 1)
    stream0.start()
    stream1.start()
    img_stream0, status_stream0, node_map_stream0 = stream0.wait()
    img_stream1, status_stream1, node_map_stream1 = stream1.wait()
    ...

```

---

_[View the full topic](https://forum.commonvisionblox.com/t/image-capturing-both-rgb-and-ir-with-cvb-and-gige-camera/1480)._
