cubr
cubr copied to clipboard
Fails on Ubuntu 16.04
Tried this out on 16.04 with OpenCV 2.4.91
There were two issues :
- The window that was opened was too small to show the button bar, but that was solved by resizing the window.
- When clicking the From Camera button - the console immediately reports :
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1540, in __call__
return self.func(*args)
File "/home/tony/Development/python/Cubr/cubr/cube.py", line 1040, in fromCamera
self.app.fromCamera()
File "qbr.py", line 64, in fromCamera
screenGrabber.cubeFromCam(app=self, callback=self.received)
File "/home/tony/Development/python/Cubr/cubr/screenGrabber.py", line 368, in cubeFromCam
while timer(data): pass
File "/home/tony/Development/python/Cubr/cubr/screenGrabber.py", line 423, in timer
avgrgb = averageRGB(rgb_inRegion)
File "/home/tony/Development/python/Cubr/cubr/screenGrabber.py", line 185, in averageRGB
red /= num
ZeroDivisionError: integer division or modulo by zero
I assume for some reason that the code failed to find the webcam, but I know that the OpenCV video sample python app works, as does the application Cheese (which I don't think uses OpenCV).
I also get the same error on Ubuntu 16.04. I'm not familiar with Python so any pointers on how I can help debug this issue would be helpful.
Ubuntu 14.04 + opencv 2.4.8 get the same error.
What OS do you use? I get some error on Ubuntu 16.04. I want to deploy it on your environment. Thanks very much