Share Pastebin
Guest
Public paste!

Untitled

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