Author: Long Qian
Date: 2017-02-01
This repository contains camera calibration file of HoloLens front-facing camera, with the 896x504 configuration. Please refer to Locatable Camera in Unity about how to obtain chessboard images from your own HoloLens.
The folder near
contains calibration images collected from HoloLens and the calibration results of it.
The calibration pattern for near range calibration is (7x5, 30cm).
The images are taken from a distance of about 0.3m to 0.5m.
The folder far
contains the calibration images and results of HoloLens, with distance of about 1m to 1.5m.
The calibration pattern configuration is (11x7, 45cm).
calibrate.py
andcommon.py
are adapted from OpenCV project. Example usage is:
python calibrate.py --square_size 0.03 --pattern_width 7 --pattern_height 5 data1/raw/*.jpg
cv2.CALIB_FIX_K3
flag is set for functioncv2.calibrateCamera
in order for consistent adpation to ARToolKit camera parameter.scripts/ARToolKitCalibrationFileGenerator.cpp
generates binary camera calibration file for ARToolKit. You need to correctly include the header files of ARToolKit and link to ARToolKit libraries.scripts/ARToolKitCalibrationFileReader.py
makes your life easier when you want to see the values of an ARToolKit calibration file, and modify them.
hololens896x504.json
andhololens896x504.yaml
are the camera calibration files of OpenCV format.hololens896x504.dat
is the calibration file of HoloLens camera, for ARToolKit.