avsys openCV homework

from week 8 avsys2013