View my account

I'm looking for how capturing left and right IR camera at Intel realsense D435

Comments

4 comments

  • MartyG

    Hi Jaehyeong96  The link below has a C++ script that makes use of OpenCV to export the left and right IR images as PNG image files.

    https://github.com/IntelRealSense/librealsense/issues/1480 

    1
    Comment actions Permalink
  • Jaehyeong96

     Thank you! And I have another question. I need save frame not just one. I trying to using loop, but it makes 

    OpenCV(4.4.0) Error: Unspecified error (could not find a writer for the specified extension) in cv::imwrite_, file C:\build\master_winpack-build-win64-vc15\opencv\modules\imgcodecs\src\loadsave.cpp, line 667

    this error. How can I solve this problem?

    0
    Comment actions Permalink
  • MartyG

    The most stable way to capture a complete series of frames would be to record them into a bag file, which is like a video recording that contains camera data.  You can then extract the frames of the bag into PNGs.  One way to do the PNG extraction from a bag is to use the SDK's rs-convert tool.

    https://github.com/IntelRealSense/librealsense/tree/master/tools/convert 

    1
    Comment actions Permalink
  • Jaehyeong96

    Thank you for answer!

    0
    Comment actions Permalink

Please sign in to leave a comment.