View my account

Improving Accuracy of Single-Camera Box Dimensioner Based on Multi-Camera Implementation

Comments

1 comment

  • MartyG

    Hi Onkar  It should not be necessary to adapt the box_dimensioner_multicam project for use with a single camera as, despite the project's name, it can work fine with a single camera placed at the corner of the checkerboard in an elevated position pointing diagonally downwards towards the box top and sides.  That camera position, rather than placing it directly overhead the box and pointing straight down, is the orientation that I would strongly recommend using,

     

    If your project needs to measure the box from directly above then it will be necessary to take account of the possibility of inaccuracy being introduced by the box casting a shadow on the floor, as described here:

    https://github.com/IntelRealSense/librealsense/issues/12605#issuecomment-1904381650

     

    The ideal 'sweet spot' mounting distance of the camera from the checkerboard is 1 meter.  Placing it nearer or further (e.g 0.5 m or 1.5 m) can result in problems, such as inaccurate values or the green bounding-box overlay not aligning correctly with the box that is being measured.

     

    Making settings adjustments such as laser power or using a Visual Preset camera configuration does not have a significant effect on the success of measurement.  Distance from the checkerboard, positioning the camera diagonally-down-from-above are the most important factors.

     

    I am not aware of a previous attempt at using a plane fitting algorithm with this tool, so there is not an existing precedent to refer to regarding such an adaptation, unfortunately.

     

    If you use a custom checkerboard instead of the official checkerboard image supplied by the box_dimensioner_multicam project where the squares are a different size then you will need to adjust a few parameters in the box_dimensioner_multicam.py script relating to square size values. 

     

    If you would ideally prefer not to have to use a checkerboard then there is a discussion about modifying the box_dimensioner_multicam.py project to use the intrinsic parameters of a single camera instead of using a checkerboard to calculate this information.

    https://github.com/IntelRealSense/librealsense/issues/10054

    0
    Comment actions Permalink

Please sign in to leave a comment.