I have been recently working on projects that use the Microsoft Kinect, and also had the chance to use OpenCV to calibrate the color camera in the Kinect. This is because one of the projects use Aruco AR markers and to obtain the orientation of the Aruco markers, we need the camera's internal parameters and therefore, calibration! The Kinect's camera is just like any other webcam, so there is nothing special about it. But I thought the calibration process can help others who are just starting to use OpenCV and need to get camera internal parameters.
The code can be found here.
You need to prepare a calibration board with checker patterns with known length. The pattern image is also included in the repository but you'll need to find a sturdy planar object such as a wooden board.
Currently there is not any UI so it's probably good to share here that after you position your checker board you need to manually press 'c' to capture an image. Repeat this 10 times and a file named "camera_parameters.yml" will be generated in the same folder as the exe file.
Credit : The Kinect capture code is based on samples from this repository.
Comments
Post a Comment