View Full Version : How to implement a (web) camera using openGL
05-19-2008, 09:18 AM
I want to create an application (C++) that contains a live stream to my webcam that is connected to the same computer.
I know that there is a way to realize this using DirectX, but my application needs to be platform-independent, so I think OpenGL would be better.
Can anyone help me, please.
05-19-2008, 10:07 AM
OpenGL is a library for drawing graphics, it has no means to read images from a webcam. I suggest you look for some open-source webcam libraries (there should be some, I imagine).
05-19-2008, 06:55 PM
You could have a look at http://www.khronos.org/openml/, but this is a very new API and compatible webcam drivers may not be available yet.
05-25-2008, 02:40 PM
Openml probably would be hart to use.
I was looking for open-source webcam libraries, but i did not really find anything that could help me.
There must be anyone out there who has had the same problem and who does not want to use DirectX...
05-25-2008, 02:59 PM
Apart from OpenML i don't know any cross-platform video capture API...
06-04-2008, 08:43 AM
you should check out openframeworks. i am sure you can rip out a lot concering framegrabbing. it uses directshow or quicktime on windows, quicktime for mac, video4linux on linux (via compile-time-switches)
06-04-2008, 09:45 AM
openframeworks looks pretty useful. i will try.
thank you very much!
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.