1 | initial version |
This blog-post may help you by detecting your boxes: http://opencv-code.com/tutorials/automatic-perspective-correction-for-quadrilateral-objects/ . Alternatively a Harris-Corner Detection should also give you your points of interest.