# Using OpenCV with a dual infrared and normal camera

**URL:** <https://forum.opencv.org/t/using-opencv-with-a-dual-infrared-and-normal-camera/17960>\
**Category:** C++\
**Tags:** programming\
**Created:** [June 17, 2024, 9:00am UTC](https://forum.opencv.org/t/using-opencv-with-a-dual-infrared-and-normal-camera/17960 "2024-06-17T09:00:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vizier87](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vizier87](https://forum.opencv.org/u/vizier87)\
**Post date:** [June 17, 2024, 9:00am UTC](https://forum.opencv.org/t/using-opencv-with-a-dual-infrared-and-normal-camera/17960/1 "2024-06-17T09:00:09Z")

</div>

Hi everyone,

Is it possible to access both the IR (night vision) and VIS (normal mode) from this camera: [https://my.shp.ee/p5d7g93](https://my.shp.ee/p5d7g93) via OpenCV?

My concern is basically due to the fact that OpenCV chooses the feed from code which looks something like this:  
cv::VideoCapture cap = cv::VideoCapture(0);

However, I don’t know if the code will be able to differentiate if the feed is the night vision or normal feed?

I just need to know if it’s likely to be accessible because I haven’t bought it yet, so even if it’s just hightly likely accessible, that’ll be good enough for me.

Thanks!  
Vizier87

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [June 17, 2024, 10:48am UTC](https://forum.opencv.org/t/using-opencv-with-a-dual-infrared-and-normal-camera/17960/2 "2024-06-17T10:48:53Z")

</div>

where does it say that the device provides multiple different feeds?

to me this looks like one sensor. likely its optical filter allows IR through, but that’s all.

---

<div class="post-metadata">

**Author:** ![vizier87](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vizier87](https://forum.opencv.org/u/vizier87)\
**Post date:** [June 17, 2024, 1:29pm UTC](https://forum.opencv.org/t/using-opencv-with-a-dual-infrared-and-normal-camera/17960/3 "2024-06-17T13:29:15Z")

</div>

Hi Crackwitz,

Here’s a demo video: [https://www.youtube.com/watch?v=EH4DzH5SaZI](https://www.youtube.com/watch?v=EH4DzH5SaZI)

The thing is, it’s WiFi-accessed. I’ve yet to find if there is an SDK to work with it to make it easier to interface with OpenCV.

I could try, but I would also be quite happy to get some alternatives which I’m quite likely to be able to settle down with.

The important thing is: it has both normal and night vision, and hopefully easily interfaced with OpenCV without being too hacky-wacky about it.

Thanks.  
Vizier87

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [June 17, 2024, 3:42pm UTC](https://forum.opencv.org/t/using-opencv-with-a-dual-infrared-and-normal-camera/17960/4 "2024-06-17T15:42:48Z")

</div>

that is just IR lighting + turning the picture into grayscale

---

<div class="post-metadata">

**Author:** ![vizier87](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vizier87](https://forum.opencv.org/u/vizier87)\
**Post date:** [June 18, 2024, 3:12am UTC](https://forum.opencv.org/t/using-opencv-with-a-dual-infrared-and-normal-camera/17960/5 "2024-06-18T03:12:51Z")

</div>

Oh snap.

Thanks. I’m gonna have to look for other types then.

Vizier87
