The time now is Mon 18 Feb 2019, 01:46
All times are UTC - 4 |
Author |
Message |
ocpaul20
Joined: 31 Jan 2008 Posts: 255 Location: PRC
|
Posted: Sun 21 Jun 2015, 08:47 Post subject:
python opencv webcam "Window system doesn't support OpenGL" Subject description: No window opens to show webcam images |
|
I was just writing a few little test programs to try out some opencv stuff, so I copied a program from the web and I get a strange error on imshow() line.
Code: |
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
while(True):
# Capture frame-by-frame
ret, frame = cap.read()
# Our operations on the frame come here
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
# Display the resulting frame
cv2.imshow('frame',gray)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
# When everything done, release the capture
cap.release()
cv2.destroyAllWindows()
|
The message I get on the imshow() statement is this:
Code: | GdkGLExt-WARNING **: Window system doesn't support OpenGL. |
I must have looked at at least 25 different web pages about this error message and it seems like it is something to do with /etc/X11/xorg.conf - which I dont have anywhere on my system.
Does anyone have a clue what I can do next please? I am using DebianDog Jessie
Dont know if this is relevant except that other people have been asked for it.
Code: |
# lspci |grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
|
/dev/video0 is this old Vimicro webcam
Code: |
# lsusb
Bus 003 Device 004: ID 0ac8:303b Z-Star Microelectronics Corp. ZC0303 Webcam
|
Thanks.
_________________ ==================
Running DebianDog Jessie Frugal with /live and maybe with changes or savefile or.., who knows?
|
Back to top
|
|
 |
666philb

Joined: 07 Feb 2010 Posts: 3290 Location: wales
|
Posted: Mon 22 Jun 2015, 09:42 Post subject:
|
|
works here in tahrpup.... try glxgears in a terminal although not sure if glxgears is in debiandog
you might get more of an answer in the debian dog thread
_________________ Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=96178
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
|
Back to top
|
|
 |
mcewanw
Joined: 16 Aug 2007 Posts: 3200
|
Posted: Tue 23 Jun 2015, 03:23 Post subject:
Re: python opencv webcam "Window system doesn't support OpenGL" Subject description: No window opens to show webcam images |
|
ocpaul20 wrote: |
The message I get on the imshow() statement is this:
Code: | GdkGLExt-WARNING **: Window system doesn't support OpenGL. |
...
Does anyone have a clue what I can do next please? I am using DebianDog Jessie
Thanks. |
Hi ocpaul20
DebianDog doesn't come with OpenGL support by default, but it is a simple installation. I believe you will just need to install libgl1-mesa-dri. You can do that at the commandline using:
Code: |
apt-get update
apt-get install libgl1-mesa-dri
|
If your webcam is non-standard or very old it is possible you might also need a driver for it. But most webcams just work out of the box. If it turns out you have driver problems just let us know, but yes, it is best to post on DebianDog Jessie thread for support rather than in separate thread like this - though only in this case because the needed info was DebianDog Jessie specific (i.e. the requirement to install mesa).
As for glxgears, if you want that, it is in the Debian package mesa-utils, which you can just download with:
Code: | apt-get install mesa-utils |
Great thing about DebianDog is that it is a Debian system so any of the thousands of Debian packages are all available for use in it.
Cheers, William
|
Back to top
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
[ Time: 0.0388s ][ Queries: 11 (0.0137s) ][ GZIP on ] |