View my account

Calibration of D401

Comments

16 comments

  • MartyX Grover

    Hi Sabin-Tiberius Strat  RealSense cameras are calibrated in the factory and so ae usually well-calibrated when taken out of the box by the customer.  They may develop miscalibration and need a recalibration though if they receive a physical shock such as a hard knock or a drop on the floor, or experience severe vibration.

     

    The OEM calibration target board is aimed at customers such as engineering departments and manufacturing facilities and will not be needed by most RealSense users.

     

    RealSense was spun off from Intel on July 11 2025 to become a separate company.  Whilst most assets transferred to the new company (RealSense, Inc), the Intel Dynamic Calibration tool went offline last year.  The calibration tools now available are the self-calibration toolset such as On-Chip, Tare and Focal Length calibration.

     

    Does your custom housing have a clear window in front of the camera?  If so, have you tested the camera outside of the housing to check whether the material being used for the window might be slightly distorting the image?  Page 160 of the 400 Series datasheet document provides guidance about choosing a 'cover material' to act as the front glass.  For example, it recommends that the thickness of the glass be around 0.55 mm and not exceed 1 mm.

    https://dev.realsenseai.com/docs/intel-realsense-d400-series-product-family-datasheet

     

    If the custom housing is being used underwater then the calibration needs to take place underwater (for example, with a waterproofed calibration image immersed in the water) and not in the air.

    0
    Comment actions Permalink
  • Sabin-Tiberius Strat

    Hi Marty,

    Thanks for your reply. We're not buying a factory-calibrated camera, but something closer to this

    we are then integrating the whole thing into our own housing. Depending on our housing and assembling tolerances, the frame holding the 2 cameras could get a little warped => the need to calibrate.

    My question now is whether we need to spend $1500 on the OEM calibration target or if we could still achieve intrinsics AND extrinsics calibration via the self-calibration workflow.

    0
    Comment actions Permalink
  • MartyX Grover

    The metal casing of the RealSense depth module acts as a stiffener for the sensors, so they should not easily become miscalibrated when the module is being handled during assembly and fit into the custom housing.  It is a good idea though to perform a calibration once the D401 module and D4 V4 have been connected together.

     

    When an image bends inwards, that is known as a concave or pincushion distortion (an outward bend is a convex or 'barrel' distortion).  In a past case of pincushion distortion, a focal length calibration resolved it, though you have already performed one of those.

     

    Use of the $1500 USD OEM board should not be necessary to correct this issue.

     

    I note that your pointcloud is very "wavy".  This phenomenon can occur when the camera is close to a surface and reduce in intensity when the camera is moved further away.  That method would not be practical for a D401 though, which is designed to be used at close range.

     

    Does the image improve if you change the RealSense Viewer's Depth Units setting in Stereo Module > Controls from the default of 0.01 to 0.1

     

     

    0
    Comment actions Permalink
  • Sabin-Tiberius Strat

    I tried changing the depth units but it just scales the whole point cloud, keeping the overall shape.

    Here are some more details of my setup: I have a self-calibration target attached to a flat surface ~20cm away. I adjust the camera holder so it looks head-on => in theory I should see a uniform depth map. Here's what I observe in practice (distance measurements made by hovering the mouse over the depth map):

    Between the FOV center and the edges there's about 4-5mm difference, even though it should have been the same depth. If I play with the Calibration data in the RealSense viewer and modify the extrinsics rotation matrices, I can make the point cloud a bit flatter, but to me it looks like I need to do a proper extrinsic calibration.

    0
    Comment actions Permalink
  • Sabin-Tiberius Strat

    I would like to add that I also have a factory-calibrated (by RealSense) D405. I tested it in the same setup and it shows a perfectly flat point cloud, unlike the D401 that we self-calibrated (on-chip + tare + focal length) ourselves which shows depth errors towards the FoV edges.

    0
    Comment actions Permalink
  • MartyX Grover

    Yes, I would expect a flat surface at the same distance from the camera to show as uniformly blue instead of that blue to red color range.

     

    On-Chip calibration improves depth quality only.  It is Tare calibration that improves depth measurement accuracy.

     

    When you performed the Tare calibration, did you click the Get button on the Tare interface to generate a custom ground truth value for your particular camera and its distance from the target to replace the default '1200' value before starting the Tare calibration process running?

    0
    Comment actions Permalink
  • Sabin-Tiberius Strat

    Yes, I clicked the Get button, followed the procedure as described in the manual, I also did a sanity check measurement of the groundtruth distance with the ruler.

    0
    Comment actions Permalink
  • MartyX Grover

    I checked RealSense's website download link for the Dynamic Calibration tool and the Windows version is now hosted on our RealSense Inc system instead of Intel's and is downloadable. 

     

    If you visit the link below and scroll to the bottom of the user agreement and accept the terms, the download of CalibrationTool-2.13.1.0-Setup.zip should begin in your browser.

    https://dev.realsenseai.com/firmware-download/?file=42115

     

    Extracting the zip will give you an .exe setup program file to run to launch the installation of the Windows version of the Dynamic Calibration tool.

     

    This free public version of Dynamic Calibration is the one that calibrates the camera extrinsics.

    0
    Comment actions Permalink
  • Sabin-Tiberius Strat

    Is there also an Ubuntu x64 version?

    0
    Comment actions Permalink
  • MartyX Grover

    There was an Ubuntu version but the user guide (which has Ubuntu instructions on page 14 onwards) has not been updated since 2021 and so only has installation instructions for Ubuntu 16.04 and 18.04 and Intel server addresses for Debian packages that may not work any more.

     

    Alternatively, there was also a local Debian package download command for an earlier version of the tool but it was released before D401 / D405 was introduced.

    sudo dpkg -i librscalibrationtool_2.11.0.0_amd64.deb
    0
    Comment actions Permalink
  • Sabin-Tiberius Strat

    Thanks, I tried running the tool in Ubuntu with Wine but it doesn't detect the camera. I'll try tomorrow from a Windows PC and let you know.

    0
    Comment actions Permalink
  • MartyX Grover

    I look forward to your next report after testing on a Windows PC.  Good luck!

    0
    Comment actions Permalink
  • Sabin-Tiberius Strat

    Hi Marty, I went through the procedure with the Dynamic Calibration Tool, it said that calibration was successful and that it was saved to the device, but in the end I still observe the same behavior with the depth map.

    0
    Comment actions Permalink
  • MartyX Grover

    Thanks very much for the update.  If neither the Dynamic Calibration tool or the self-calibration toolset make a difference then the issue may not be directly related to the camera's calibration (it is possible that the point cloud's slight flattening by manually changing the rotation extrinsics was a beneficial side-effect of changing those values).

     

    In the Viewer, does the image and accuracy improve if you change the Visual Preset to Default ?  This preset can provide a better point cloud.

     

    Also, have you tested the D401 with a range of different surfaces?  Because D401 and D405 does not have an IR laser emitter component, it can have difficulty obtaining depth information from smooth plain surfaces with low detail or no detail due to the lack of a projected IR dot pattern.  Increasing the level of lighting illumination in the area the camera is in can help to compensate for this though.

    0
    Comment actions Permalink
  • MartyX Grover

    Hi Sabin-Tiberius Strat  Do you require further assistance with this case, please?  Thanks!

    0
    Comment actions Permalink
  • Sabin-Tiberius Strat

    Hi Marty, we ended up buying the OEM calibration board and it looks like we can calibrate better now, thanks.

    0
    Comment actions Permalink

Please sign in to leave a comment.