I'm looking for how capturing left and right IR camera at Intel realsense D435
I'm using D435 model. I want to save left and right IR frame image, but I cannot found how to save them. I can find just stream left and right IR image using C++. How to save each IR cam's frame?
-
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.
-
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?
-
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
Please sign in to leave a comment.
Comments
4 comments