cubr icon indicating copy to clipboard operation
cubr copied to clipboard

Fails on Ubuntu 16.04

Open TonyFlury opened this issue 8 years ago • 3 comments

Tried this out on 16.04 with OpenCV 2.4.91

There were two issues :

  1. The window that was opened was too small to show the button bar, but that was solved by resizing the window.
  2. 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).

TonyFlury avatar Sep 24 '16 23:09 TonyFlury

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.

rohitarondekar avatar Sep 25 '16 16:09 rohitarondekar

Ubuntu 14.04 + opencv 2.4.8 get the same error.

longwoo avatar Oct 13 '17 08:10 longwoo

What OS do you use? I get some error on Ubuntu 16.04. I want to deploy it on your environment. Thanks very much

lihao2333 avatar Apr 22 '18 07:04 lihao2333