I am doing an application, which requires a marker detection using a web-cam. This marker will be used to play games (instead of mouse or any other controller) So the problem is, that I should get the three (X,Y,Z) coordinates of this marker. How can I do it?
You can use vector graphics to define a rectangle, and try by shift it by pixels. If you want to apply rotation, you will need the disgusting sine, cosine, tangent and whatever these evil methods in trigonometry.