Chapter 6: Problem 5
Track a Rubik's cube to implement a 3D joystick/mouse control. 1\. Get out an old Rubik's cube (or get one from your parents). 2\. Write a program to detect the center of each colored square. 3\. Group these centers into lines and then find the vanishing points for each face. 4\. Estimate the rotation angle and focal length from the vanishing points. 5\. Estimate the full 3D pose (including translation) by finding one or more \(3 \times 3\) grids and recovering the plane's full equation from this known homography using the technique developed by Zhang (2000). 6\. Alternatively, since you already know the rotation, simply estimate the unknown translation from the known 3D corner points on the cube and their measured 2D locations using either linear or non-linear least squares. 7\. Use the 3D rotation and position to control a VRML or 3D game viewer.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.