Software trigger / single image D405
Is it possible to capture a single image on a D405 via a software command? I mean, not grab an image from the stream, but rather trigger the capture of a single frame programmatically? Preferably in Python.... I would be grateful for any ideas, if there is no such an option to do that directly.
-
Hi Dmitrii Sokolov At the link below a RealSense user created an adaptation of the RealSense SDK's align_depth2color.py that exports depth and RGB frames to png image and also removes from the script a check for the presence of an RGB sensor that causes an error on the D405 camera model.
https://github.com/IntelRealSense/librealsense/issues/3658
If you are interested in a Python script that saves a single frame to a bag file instead of a PNG, the SDK's save_single_frameset Python instruction can accomplish this. More information can be found here:
https://github.com/IntelRealSense/librealsense/issues/9778#issuecomment-921598488
Alternatively, in C++ language the SDK's rs-save-to-disk example program saves a single depth and color frame to PNG.
https://github.com/IntelRealSense/librealsense/tree/master/examples/save-to-disk
Please sign in to leave a comment.
Comments
1 comment