Untitled
By: a guest | Feb 9th, 2010 | Syntax:
None | Size: 0.55 KB | Hits: 40 | Expires: Never
opencv/samples/python$ python camshift.py
Keys:
ESC - quit the program
b - switch to/from backprojection view
To initialize tracking, drag across the object with the mouse
Traceback (most recent call last):
File "camshift.py", line 115, in <module>
demo.run()
File "camshift.py", line 105, in run
cv.ShowImage( "Histogram", self.hue_histogram_as_image(hist))
File "camshift.py", line 39, in hue_histogram_as_image
val = int(mybins[int(hdims * x / w)] * h / 255)
OverflowError: cannot convert float infinity to integer