Intel® RealSense™ Depth Module
D400 Series Custom Calibration
Revision 1.1.0
January 2018
2
INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL
OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS AND
CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A
PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
A "Mission Critical Application" is any application in which failure of the Intel Product could result, directly or indirectly, in personal injury or death.
SHOULD YOU PURCHASE OR USE INTEL'S PRODUCTS FOR ANY SUCH MISSION CRITICAL APPLICATION, YOU SHALL INDEMNIFY AND HOLD
INTEL AND ITS SUBSIDIARIES, SUBCONTRACTORS AND AFFILIATES, AND THE DIRECTORS, OFFICERS, AND EMPLOYEES OF EACH, HARMLESS
AGAINST ALL CLAIMS COSTS, DAMAGES, AND EXPENSES AND REASONABLE ATTORNEYS' FEES ARISING OUT OF, DIRECTLY OR INDIRECTLY,
ANY CLAIM OF PRODUCT LIABILITY, PERSONAL INJURY, OR DEATH ARISING IN ANY WAY OUT OF SUCH MISSION CRITICAL APPLICATION,
WHETHER OR NOT INTEL OR ITS SUBCONTRACTOR WAS NEGLIGENT IN THE DESIGN, MANUFACTURE, OR WARNING OF THE INTEL PRODUCT
OR ANY OF ITS PARTS.
Intel may make changes to specifications and product descriptions at any time, without notice. Designers must not rely on the absence or
characteristics of any features or instructions marked "reserved" or "undefined". Intel reserves these for future definition and shall have no
responsibility whatsoever for conflicts or incompatibilities arising from future changes to them. The information here is subject to change without
notice. Do not finalize a design with this information.
The products described in this document may contain design defects or errors known as errata which may cause the product to deviate from
published specifications. Current characterized errata are available on request.
Contact your local Intel sales office or your distributor to obtain the latest specifications and before placing your product order.
Copies of documents which have an order number and are referenced in this document, or other Intel literature, may be obtained by calling 1800-548-4725, or go to: http://www.intel.com/design/literature.htm.
Code names featured are used internally within Intel to identify products that are in development and not yet publicly announced for release.
Customers, licensees and other third parties are not authorized by Intel to use code names in advertising, promotion or marketing of any product
or services and any such use of Intel's internal code names is at the sole risk of the user.
Intel and the Intel logo are trademarks of Intel Corporation in the U.S. and other countries.
*Other names and brands may be claimed as the property of others.
Figure 5-1 General Process for custom Calibration ............................................... 42
7
Document
Number
Revision
Number
Description
Revision Date
XXXXXX
1.0
Initial Release
01/2018
1.1
Update with Calibration API 2.5.2.0 release
01/2018
Revision History
8
Introduction
1 Introduction
1.1 Purpose and Scope of This Document
In order to operate Intel® RealSense™ D400 device efficiently and accurately, users need
to make sure the device is well calibrated. The Intel supplied calibration tools including
Intel® RealSense™ Dynamic Calibrator and OEM Calibration Tool for Intel® RealSense™
Technology are designed to calibrate the devices using Intel proprietary algorithms.
Some customers or developers may choose to use their own calibration algorithms and
update the device with their custom calibration data.
This document contains technical information to assist those developing custom
calibration solutions for Intel® RealSense™ D400 series modules. The primary goal is to
guide the user how to create a calibration application, using the D400 corresponding
APIs. This includes a description how to configure the device under calibration, define
the calibration parameters, and how to read/write these parameters from/into the
device. In addition, a simple sample application based on OpenCV algorithm is
provided as an example.
It is not in the scope of this document to discuss details of calibration algorithm or
accuracy. Developing custom calibration requires knowledge in computer vision as well
as good understanding of the RealSense device operating details. It is a complex topic
and intended only for those with expert level knowledge.
1.2 Organization
This document is organized into four main parts: overview, setup, calibrating a device
with custom calibration sample app, and developing custom solution:
Overview – brief overview of the Calibration API and parameters.
Setup – hardware and software setup for running the Custom Calibration
Sample App to calibrate a device and developing custom calibration solutions.
Calibrating Device with Custom Calibration Sample App – describes the
necessary hardware and software setup required running the Custom
Calibration Sample App and details steps to calibrate device.
Developing Custom Calibration Solution – uses the sample application as an
example to describe details of steps implementing a custom calibration
solution for Intel® RealSense™ D400 series modules.
9
Overview
2 Overview
2.1 Calibration API and Calibration Data
Read/Write/Restore
Intel provides a software interface in Calibration API to enable user uploading those
calibration parameters to Intel® RealSense™ D400 devices and read the parameter
back from device:
WriteCustomCalibrationParameters – write parameters to device
ReadCalibrationParameters – read parameters from device
Figure 2-1 Software Stack with Dynamic Calibration API and Calibration Apps
An example tool CustomRW is also included in Calibration API to read calibration
parameters from XML file and write them to the device.
A user custom calibration app can choose one of the two approaches to update the
results to the device:
To link to the WriteCustomCalibrationParameters and
ReadCalibrationParameters and write directly to the device through the APIs.
10
Factory
Calibration
OEM
Calibration
Technician
Calibration
User Custom
Calibration
Dynamic
Calibration
Overview
To write the results into a parameter XML file and then use CustomRW to
read/write the parameters to the device.
In case user needs to restore the calibration data on the device,
ResetDeviceCalibration in Calibration API can be called to programmatically restore
the device calibration to gold settings.
ResetDeviceCalibration – restore device calibration to gold settings
The CustomRW example tool also supports restore through command line option.
2.2 Calibration Parameters
Calibration parameters includes INTRINSICS and EXTRINSICS. Assume left camera is
the reference camera and is located at world origin. RGB parameters only apply to
modules with RGB, e.g., D415 and D435.
Intrinsic includes
Focal length - specified as [fx; fy] in pixels for left, right, and RGB cameras
Principal point - specified as [px; py] in pixels for left, right, and RGB cameras
Distortion - specified as Brown's distortion model [k1; k2; p1; p2; k3] for left,
right, and RGB cameras
Extrinsic includes
RotationLeftRight - rotation from right camera coordinate system to left camera
coordinate system, specified as a 3x3 rotation matrix
TranslationLeftRight - translation from right camera coordinate system to left
camera coordinate system, specified as a 3x1 vector in millimeters
RotationLeftRGB - rotation from RGB camera coordinate system to left camera
coordinate system, specified as a 3x3 rotation matrix
TranslationLeftRGB - translation from RGB camera coordinate system to left
camera coordinate system, specified as a 3x1 vector in millimeters
The calibration data read/write API allows user to upload both INTRINSICS and
EXTRINSICS. The user custom algorithm is free to optimize all these parameters. The
sample in this document optimizes both intrinsic and extrinsic parameters.
The following table shows how the various calibration tools would impact calibration
parameters for Intel® RealSense™ D400 series depth cameras.
11
Intrinsic
x x x
x
Extrinsic
x x x x x
Format
SKU
Used
Comment
Y16
(16-bit)
D400
Left and Right Sensors:
1920x1080 @ 15 FPS
Intel® RealSense™ Camera D400, D410, D415
D410
D420
Left and Right Sensors:
1280x800 @ 15 FPS
Intel® RealSense™ Camera D430 D420, D435
D430
YUY2
D415
RGB Sensor:
1920x1080 @ 15 FPS
Intel® RealSense™ Camera D415, D435
D435
Overview
2.3 Frame Formats Used in Custom Calibration
The following unrectified calibration frame formats are available. The Custom
Calibration Sample App uses these formats.
Table 2-1. Frame Formats Used in Custom Calibration
2.4 Frame Sync
The calibration frames are not synced. To avoid possible motion blur, calibrate the
device with images captured at static positions. In this sample, a tripod is used to keep
the camera device at fixed positions while capturing the images for calibration. This is
same if you want to develop your own custom calibration app.
2.5 Accuracy
The calibration will not be accurate if the checkerboard doesn’t sufficiently cover the
field of view or the poses are not diverse enough between captures. The calibration will
12
Overview
also not be accurate if the camera or board is handheld (or not completely still) as there
is no framesync in calibration mode.
13
Setup
3 Setup
This section describes the required hardware and software setup for running the
Custom Calibration Sample Application to calibrate a device and developing a Custom
Calibration Application.
3.1 Hardware
The hardware required including a calibration target, D400 series device to be
calibrated, USB cable, and a Windows 10 computer. To ensure the images are synced,
pictures are captured at static device positions, a tripod is used to support the device
during calibration.
Figure 3-1 Hardware Setup
14
Setup
3.1.1 Device
Intel® RealSense™ D415 device as shown below is used to show case the custom
calibration process. All D400 series devices can use the same process.
3.1.2 Target
The target used in this custom calibration example is an 8x7 checkerboard with a
60x60mm checker size. The target image pdf 540x480_60mm.pdf is included in the
software package described in 3.2.1 Custom Calibration Sample Application. The
target pdf is located under the target directory. Users must ensure that when printing
the target, the target is not scaled.
Figure 3-2 D415 Device
A developer may choose to use a different target, but will need to modify the sample
application accordingly and recompile.
15
Setup
Figure 3-3 8x7 60x60 mm Checker Calibration Target
3.1.3 Tripod
Any medium sized tripod should be sufficient. In this example setup, we used a
Manfrotto Compact Light Aluminum Tripod with ball head. The ball head makes
adjustment to device orientation easier.
Loading...
+ 34 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.