First time here? Check out the FAQ!
answered 2013-05-22 09:55:27 -0600
You can get idea from "squares.cpp" in samples folder of OpenCV.