Webcam library
Webcam library
Has anyone formally requested a cross-platform PB webcam library?
I'll let the gurus at PB and here on this forum come up with the necessary API, but a PB webcam library might be handy.
I don't know much about it, but maybe the PB developers could leverage parts of OpenCV? http://en.wikipedia.org/wiki/OpenCV
I'll let the gurus at PB and here on this forum come up with the necessary API, but a PB webcam library might be handy.
I don't know much about it, but maybe the PB developers could leverage parts of OpenCV? http://en.wikipedia.org/wiki/OpenCV
-
- Addict
- Posts: 1264
- Joined: Wed Feb 28, 2007 9:13 am
- Location: London
Re: Webcam library
There was already a feature request for an OpenCV library, which I think would be much more useful than a specific webcam library.
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
-
- Enthusiast
- Posts: 157
- Joined: Tue Feb 13, 2007 6:16 pm
- Location: Romania
- Contact:
- zxtunes.com
- Enthusiast
- Posts: 375
- Joined: Wed Apr 23, 2008 7:51 am
- Location: Saint-Petersburg, Russia
- Contact:
-
- Addict
- Posts: 1264
- Joined: Wed Feb 28, 2007 9:13 am
- Location: London
Re: Webcam library
Are you guys +1 for a webcam library or an OpenCV library?
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
Re: Webcam library
+100 for OpenCV!
Some functions and filters work in PureBasic, some not.
For example, try cvMinAreaRect2 function. I could not do it.
Some functions and filters work in PureBasic, some not.
For example, try cvMinAreaRect2 function. I could not do it.
Re: Webcam library
My post about OpenCV webcam: http://www.purebasic.fr/english/viewtop ... 12&t=48212
Re: Webcam library
This is not an offense, just a question out of interest:
I don't have a webcam. Not on my Workstation and not on my notebook.
What would so many people do with such a library? I'm really interested, since I don't feel the need for using such a device.
So, mates, would you share some of your ideas with me?
Thanks!
I don't have a webcam. Not on my Workstation and not on my notebook.
What would so many people do with such a library? I'm really interested, since I don't feel the need for using such a device.
So, mates, would you share some of your ideas with me?
Thanks!
cheers,
bembulak
bembulak
-
- Addict
- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Re: Webcam library
I don't know, either. There's plenty of snippets here that show how to get a webcam snapshot or video. Beats me why they want a lib to do it.bembulak wrote:What would so many people do with such a library?
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
Re: Webcam library
Video Conferencing comes to mind.
-
- Enthusiast
- Posts: 536
- Joined: Mon Feb 16, 2009 10:42 am
- Location: sweden
- Contact:
Re: Webcam library
Pretty simple.
Working with webcams (i have a couple of years experience) is a nightmare.
I tend to get drunk before even trying.
Windows:
Three methods; AVICAP, WMI or Directshow.
Problems: Directshow only few webcams, some directshow libs seem to not like some cams.
WMI: Problems - made for taking in images form a digital USB connected camera or scanner. shit
AVICAP: Problems - max 640x480. only one webcam (have one internal and one external and you are up for serious hell) - only one image sometimes otherwise restart your program - hell because it will work differently on all computers and cams
MacOS:
Two methods:
Applescript and Camspinner - need third party program - feels like a emergency solution
There is a importc thing here in the forum - works fine but only one cam etc..
Bottom line:
One library that makes is all good would be sooooo good. all platforms, just working (as everything else in PB). Right now its a nightmare handeling webcams on multiple platforms.
OpenCV can even do amazing stuff handeling movement, analyze pictureframes..
Working with webcams (i have a couple of years experience) is a nightmare.
I tend to get drunk before even trying.
Windows:
Three methods; AVICAP, WMI or Directshow.
Problems: Directshow only few webcams, some directshow libs seem to not like some cams.
WMI: Problems - made for taking in images form a digital USB connected camera or scanner. shit
AVICAP: Problems - max 640x480. only one webcam (have one internal and one external and you are up for serious hell) - only one image sometimes otherwise restart your program - hell because it will work differently on all computers and cams
MacOS:
Two methods:
Applescript and Camspinner - need third party program - feels like a emergency solution
There is a importc thing here in the forum - works fine but only one cam etc..
Bottom line:
One library that makes is all good would be sooooo good. all platforms, just working (as everything else in PB). Right now its a nightmare handeling webcams on multiple platforms.
OpenCV can even do amazing stuff handeling movement, analyze pictureframes..