answered 2012-10-18 15:14:00 -0600
Are complicated steps, but nothing impossible.
This tutorial will help you:
http://www.laganiere.name/opencvCookbook/chap1s1_2.shtml
and that video:
http://www.youtube.com/watch?v=dgcXYQijV6c