Template matching with video input

do you think the errors you got are useful to know?