On camera digital zoom; is it possible?
Hello,
I am reaching out to ask about if performing digital zoom on a D400 camera is possible. Reviewing other posts it seems that I should do it in post processing but without the benefits of lower latency. I am reaching out to determine if I can run the camera at the same fps, increase the resolution, and then crop the frame to maintain the current resolution. I understand that the firmware likely does not support this COTs. Could it be possible to develop this feature on my own and modify the camera FW?
Thanks!
-
Hi Luke Bowersox RealSense camera hardware or the RealSense SDK software do not have a zoom function. RealSense firmware drivers are also not open-source and so do not have publicly available code that could be modified to create a custom firmware.
If your project is zooming RGB images rather than depth and is able to use OpenCV then using the OpenCV instruction cv2.INTER_LINEAR to zoom the RGB image may be a solution.
https://www.geeksforgeeks.org/image-resizing-using-opencv-python/
If you are aiming to crop the depth image's horizontal and vertical (XY) then it is possible to do so with a bounding box but is a complicated procedure, as described at the link below.
https://github.com/IntelRealSense/librealsense/issues/2016#issuecomment-403804157
RealSense camera models with fast global camera shutters such as D435 and D455 support a high-speed capture resolution of 848x100 where the horizontal width of the image is uncropped and the vertical is cropped to a 100-high strip at the center of the image.
https://dev.intelrealsense.com/docs/high-speed-capture-mode-of-intel-realsense-depth-camera-d435
-
There is an official Pull Request site for the RealSense SDK at the link below. It is usually used for submitting features and fixes that RealSense users have developed themselves and want to be added to the SDK, though occasionally there are requests posted for the creation of features.
Please sign in to leave a comment.
Comments
4 comments