View my account

On camera digital zoom; is it possible?

Comments

4 comments

  • MartyG

    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

     

    1
    Comment actions Permalink
  • Luke Bowersox

    Hey Marty, Thanks for the background for latency and speed reasons I would like to avoid cropping higher resolution images. Is there any way I can put in a feature request for the firmware?

     

    0
    Comment actions Permalink
  • Luke Bowersox

    To reiterate, I really appreciate the post above the information is quite useful!!

    0
    Comment actions Permalink
  • MartyG

    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.

    https://github.com/IntelRealSense/librealsense/pulls

    0
    Comment actions Permalink

Please sign in to leave a comment.