Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Nov 2017, 07:24
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
python opencv webcam "Window system doesn't support OpenGL"
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
ocpaul20

Joined: 31 Jan 2008
Posts: 241
Location: PRC

PostPosted: 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
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 3121
Location: wales

PostPosted: 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
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
Back to top
View user's profile Send private message 
mcewanw

Joined: 16 Aug 2007
Posts: 3194
Location: New Zealand

PostPosted: 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

_________________
SomeOfMyWork with links:
dCoreDog
weX, scrox, Precord, Premote, fokSyfEyeR, xhippo-mod, flite_hts_pet
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

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.0423s ][ Queries: 11 (0.0109s) ][ GZIP on ]