Itseez/opencv — pull request #2414 by yashdv (2014-02-25 11:33:10+00:00)
Title: corrected the tutorial code for meanshift and camshift

Bug #3474

"hsv_roi" should probably include only that part from the frame which is going to be tracked. This means instead of taking the whole frame, we should calculate histogram of roi only.

cv2.rectangle returns "None" so we cant use "img2". The rectangle is in "frame". Thus we display "frame" instead of "img2".