Giter VIP home page Giter VIP logo

Comments (6)

MartyG-RealSense avatar MartyG-RealSense commented on June 12, 2024

Hi @adamhippoharvest Yes, the D455 model does not have an IR filter on its left and right infrared sensors, so they can see the full visible and near-IR frequency range.

On RealSense 400 Series camera models that support the feature (which includes D455) you can access the 'RGB color from left infrared sensor' image by defining a custom 'cfg' stream configuration for the left infrared stream in your script and setting it to use UYVY, RGB8 or BGR8 format instead of the Y8 infrared format. UYVY will be monochrome RGB rather than color though.

I could not find a past case of using the UYVY format for IR RGB, but the format is supported for it. The cfg code for doing so would likely be like the one below.

cfg.enable_stream(rs.stream.infrared, 848, 480, rs.format.uyvy, 30)

Below is a UYVY monochrome color image from the left IR sensor streamed in the RealSense Viewer tool on a D455 camera.

image

from librealsense.

adamhippoharvest avatar adamhippoharvest commented on June 12, 2024

That makes sense, thanks. I just want to confirm then that this is a monochrome image, and there's no way to get a three channel image, such as doing something like this:

    cfg.enable_stream(rs.stream.infrared, 848, 480, rs.format.uyvy, 30)
    pipeline.start(config)
    frames = pipeline.wait_for_frames()
    uyvy_frame = frames....[not sure what to put here]...
    uyvy_image = np.asanyarray(uyvy_frame.get_data())
    bgr_image = cv2.cvtColor(uyvy_image, cv2.COLOR_YUV2BGR_UYVY)

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 12, 2024

You can retrieve a raw unprocessed RAW16 RGB image directly from the RGB sensor and convert it to an OpenCV format to make it displayable, as described in the Python cases at #7275 and #11451

from librealsense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.