Codes from joaofaro‘s code and openCV. No longer needs opencv, pretty fast.
Use it in computing power extremely limited devices.
Things you need to knew:
- resizeNN instead of INTER_LINEAR
- gray image instead of colored image
- fixed window instead of multiscale trackering
Now you know why it's so fast:-P Easily update it though.