Webcam library

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Webcam library

Post by USCode »

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
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: Webcam library

Post by Seymour Clufley »

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."
Fredi
Enthusiast
Enthusiast
Posts: 143
Joined: Wed Jul 23, 2008 10:45 pm

Re: Webcam library

Post by Fredi »

+1
quasiperfect
Enthusiast
Enthusiast
Posts: 157
Joined: Tue Feb 13, 2007 6:16 pm
Location: Romania
Contact:

Re: Webcam library

Post by quasiperfect »

+1
Registered user of PureBasic
sphinx
Enthusiast
Enthusiast
Posts: 120
Joined: Thu Oct 26, 2006 6:34 pm
Contact:

Re: Webcam library

Post by sphinx »

+1 for OpenCV
Wolf
Enthusiast
Enthusiast
Posts: 232
Joined: Sat Apr 03, 2004 12:00 pm
Location: S.T

Re: Webcam library

Post by Wolf »

+1
User avatar
zxtunes.com
Enthusiast
Enthusiast
Posts: 375
Joined: Wed Apr 23, 2008 7:51 am
Location: Saint-Petersburg, Russia
Contact:

Re: Webcam library

Post by zxtunes.com »

+48
Ulix
User
User
Posts: 48
Joined: Wed Jan 23, 2008 12:45 pm
Location: France, Montpellier

Re: Webcam library

Post by Ulix »

Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: Webcam library

Post by Seymour Clufley »

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."
AAT
Enthusiast
Enthusiast
Posts: 259
Joined: Sun Jun 15, 2008 3:13 am
Location: Russia

Re: Webcam library

Post by AAT »

+100 for OpenCV!

Some functions and filters work in PureBasic, some not.
For example, try cvMinAreaRect2 function. I could not do it.
AAT
Enthusiast
Enthusiast
Posts: 259
Joined: Sun Jun 15, 2008 3:13 am
Location: Russia

Re: Webcam library

Post by AAT »

User avatar
bembulak
Enthusiast
Enthusiast
Posts: 575
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Re: Webcam library

Post by bembulak »

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!
cheers,

bembulak
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Webcam library

Post by MachineCode »

bembulak wrote:What would so many people do with such a 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.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Re: Webcam library

Post by X »

Video Conferencing comes to mind.
jesperbrannmark
Enthusiast
Enthusiast
Posts: 536
Joined: Mon Feb 16, 2009 10:42 am
Location: sweden
Contact:

Re: Webcam library

Post by jesperbrannmark »

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..
Post Reply