Ask Your Question

Revision history [back]

You can just take a look at the supplied C++ samples that come with openCV

OpenCV\samples\cpp\camshiftdemo.cpp
OpenCV\samples\cpp\kalman.cpp

I think this is the best starting point for a solution.

There are also plenty tutorials on the net when using google like:

  • http://imranakthar.com/android-opencv-tutorial-3-face-tracking-using-camshift-histogram/
  • http://jayrambhia.wordpress.com/2012/07/11/face-tracking-with-camshift-using-opencvsimplecv/
  • http://www.morethantechnical.com/2011/06/17/simple-kalman-filter-for-tracking-using-opencv-2-2-w-code/
  • http://dasl.mem.drexel.edu/~noahKuntz/openCVTut9.html#Step%202