I'm trying to track an object and I wrote a program for it but it doesn't work perfectly and loses object. It is possible to change scale, angle, location and shape of my object and due to these,I usually lose it.
I attached the program. Please help me.
Thank you in advance.