Items with no label
3335 Discussions

in python "cfg.enable_stream(RS2_STREAM_INFRARED, 1);"?

tguan
New Contributor I
1,749 Views

config rgb 960*640

import numpy as np

import cv2

import pyrealsense2 as rs

c = rs.colorizer()

# Create a context object. This object owns the handles to all connected

 

# realsense devices

 

cfg = rs.config()

# cfg.enable_stream(rs.RS2_STREAM_INFRARED, 1);?????how to wrie in python

 

pipeline = rs.pipeline()

pipeline.start(cfg)

0 Kudos
1 Solution
MartyG
Honored Contributor III
753 Views

Another user who was generating IR streams in Python did it like this:

config.enable_stream(rs.stream.infrared, 1, 1280, 720, rs.format.y8, 30)

Their full script is at the bottom of the page linked to below:

https://github.com/IntelRealSense/librealsense/issues/1297 get_infrared_frame python wrapper · Issue # 1297 · IntelRealSense/librealsense · GitHub

View solution in original post

2 Replies
MartyG
Honored Contributor III
754 Views

Another user who was generating IR streams in Python did it like this:

config.enable_stream(rs.stream.infrared, 1, 1280, 720, rs.format.y8, 30)

Their full script is at the bottom of the page linked to below:

https://github.com/IntelRealSense/librealsense/issues/1297 get_infrared_frame python wrapper · Issue # 1297 · IntelRealSense/librealsense · GitHub

tguan
New Contributor I
753 Views

thank you

that's what i am looking for

0 Kudos
Reply