IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.6k stars 4.83k forks source link

Expose IR stream as a webRTC video stream. #12222

Closed rajrajeswaran closed 1 year ago

rajrajeswaran commented 1 year ago

Camera Model: D415 Firmware Version: 05.12.07.100 Operating System & Version: Windows 10 Enterprise 1809 | SDK Version: 2.38.1 Language: JavaScript

I am building a webRTC sample application and would like to consume IR stream when lighting conditions is low. This article illustrate how to consume the depth sensor https://github.com/intel/depth-camera-web-demo/blob/master/depth-camera.js . Is it possible to consume IR stream and any code samples?

MartyG-RealSense commented 1 year ago

Hi @rajrajeswaran There is not a previous JavaScript example of RealSense infrared being streamed to the web browser, only depth and RGB.

A WebRTC example at the link below that was recommended by an Intel RealSense team member demonstrates how to select audio and video sources.

https://github.com/webrtc/samples/blob/gh-pages/src/content/devices/input-output/js/main.js

Aside from the Intel browser demo that you highlighted above, there is also project called Depth2Web at https://github.com/js6450/depth2web

MartyG-RealSense commented 1 year ago

Hi @rajrajeswaran Do you require further assistance with this case, please? Thanks!

rajrajeswaran commented 1 year ago

@MartyG-RealSense I apologize for not closing this question. I will do it now.

MartyG-RealSense commented 1 year ago

@rajrajeswaran It's no problem at all. Thanks very much for the update!