0

Is there an example of motion tracking with cv2?

The document to cv2 is almost not there (well there is, but...). Especially a cv2 version of the code in Stack Overflow question How do I track motion using OpenCV in Python?.

Community
  • 1
  • 1
aar cee
  • 239
  • 3
  • 10

2 Answers2

1

Try the lk_demo in the samples/python2 directory in the OpenCV download.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
wrdeman
  • 810
  • 10
  • 23
  • I am looking for cv2 version, since many function calls are changed and not back compatible. Poor documentation makes it harder. – aar cee Apr 13 '13 at 18:06
  • 1
    In the latest version the python2 folder the example of the tracking is now called lk_track.py. See [link](https://github.ugent.be/divhaere/opencv/blob/master/samples/python2/lk_track.py) – wrdeman Apr 13 '13 at 22:35
  • Thanks wrdeman, I had a look at the lk_track, there is a new module called video ("import video"), which is not there with opencv (version 2.4.4a) installation I have on my mac os x. – aar cee Apr 15 '13 at 06:18
0

Check out this example link, as it might help.

http://www.calebmadrigal.com/facial-detection-opencv-python/#comment-19420

madman2890
  • 1,882
  • 2
  • 16
  • 16