FireArrow/MultiDuckhunt

Calibration

Closed this issue · 1 comments

Currently calibration is kind of bad, and the javascript transformation is kind of slow.
I suggest moving most of the math-heavy stuff, such as compensating for camera not in line with screen, to the dot detector. The dot detector would then always send dots representing an actual rectangle, not as not when it is allowed to be a shifted/rotated rectangle. See the following link for a suggestion on how to do this.

http://stackoverflow.com/questions/12985718/convert-points-from-one-image-plane-to-another-plane-using-opencv

Calibration is now solved. It was solved according to relevant extracts in the following example
http://opencv-code.com/tutorials/automatic-perspective-correction-for-quadrilateral-objects/