Assignment 1: Camera Geometric Calibration
Deadline: Sunday, 18/02/2017, at 23.00
- Setup your programming environment (pdf)
- Learn how to use OpenCV's geometric-camera calibration. For instance, read the OpenCV book (ch.7), read the OpenCV documentation or go directly to this tutorial.
- Implement the geometric-camera calibration using OpenCV functions (only for this calibration, you are allowed to use C/C++ code available in the internet). Print this image and use it for the checkerboard calibration with your webcam/camera.
- Calibrate your camera (geometrically) using the code.
- After calibration you will need the camera intrinsics (or cameraMatrix) and the camera extrinsics (or the rotation and translation values).
- Draw the world 3D axes (XYZ) with the origin at the center of the world coordinates, using the estimated camera parameters (for this problem and the problem below, you have to develop your own code). You can get bonus points for using the explicit implementation of the equation: K [R|t]. However, this can also be done by an OpenCV-function.
- Draw a cube which is located at the origin of the world coordinates. You can get bonus points for doing this real time using your webcam (we can provide webcams if necessary, ask Ronald!).
- In your code, write comments at the beginning of every function (about the purposes of the function). This is compulsory.
- Take 3 screen-snapshots (in .jpg) representing the most interesting results. The format of the screen-snapshot's name must be: name1_name2_[counter].jpg. Examples: surname1_surname2_1.jpg, surname1_surname2_2.jpg, surname1_surname2_3.jpg.
Examples of the output:
- Code (+ project files) but no libraries
- Three screen-snapshots (in a certain format mentioned in the instructions)
- Full names and student IDs
- Upload to submit: http://www.cs.uu.nl/docs/submit (max. 20MB)
- Deadline: Sunday, 18/02/2017, at 23.00
- If you found that your assignment partner did not work properly, notify Guillermo.