Realsense D435 Camera - Save-To-Disk with JPG
Hello,
I am using the intel realsense camera and using it to feed images to a jetson xavier image recognition application. The save-to-disk example provided by Intel shows how to save depth images to disk as pngs, but I need to save them as jpgs. I located the alternative to the int stbi_write_png command (int stbi_write_jpg) in the nothings/stb, but using this causes a segmentation fault when running.
I am wondering if there is an existing way to save depth images from the realsense camera to disk as a JPG without having to save as a png and then convert to jpg. If conversion is an absolute must, and example of how to do so would be greatly appreciated.
-
The ability to save to png is usually only available. It is possible to convert a recorded bag file to jpeg. If you need to save in real-time though, you could explore using ROS to do so.
https://answers.ros.org/question/283724/saving-images-with-image_saver-with-timestamp/
-
I don't think that is what I am going for. I can currently save in real-time with the existing example code. If required I could try and convert the saved pngs to jpegs, but I am also not sure how to do this without the additional of multiple libraries. My goal is to keep the code light. Really ms issue is that the stbi_write_jpg line causes segmentation faults and I am not sure why.
-
I did further research but was unable to find a solution, unfortunately. I recommend re-posting your original question at the RealSense GitHub, as the Intel RealSense developers there are likely to be better able to provide advice on this subject. Please visit the link below and click the 'New Issue' button to post the question there.
Please sign in to leave a comment.
Comments
4 comments