Page 1 of 2

Webcam library

Posted: Thu Oct 13, 2011 1:55 am
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

Re: Webcam library

Posted: Thu Oct 13, 2011 3:47 pm
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.

Re: Webcam library

Posted: Thu Oct 13, 2011 4:41 pm
by Fredi
+1

Re: Webcam library

Posted: Thu Oct 27, 2011 8:13 am
by quasiperfect
+1

Re: Webcam library

Posted: Thu Oct 27, 2011 10:25 am
by sphinx
+1 for OpenCV

Re: Webcam library

Posted: Thu Oct 27, 2011 1:14 pm
by Wolf
+1

Re: Webcam library

Posted: Sun Nov 13, 2011 12:35 am
by zxtunes.com
+48

Re: Webcam library

Posted: Sun Nov 13, 2011 10:39 am
by Ulix

Re: Webcam library

Posted: Mon Nov 14, 2011 8:00 am
by Seymour Clufley
Are you guys +1 for a webcam library or an OpenCV library?

Re: Webcam library

Posted: Mon Nov 14, 2011 1:16 pm
by AAT
+100 for OpenCV!

Some functions and filters work in PureBasic, some not.
For example, try cvMinAreaRect2 function. I could not do it.

Re: Webcam library

Posted: Mon Nov 14, 2011 2:18 pm
by AAT

Re: Webcam library

Posted: Tue Nov 15, 2011 8:17 am
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!

Re: Webcam library

Posted: Thu Dec 01, 2011 11:14 am
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.

Re: Webcam library

Posted: Fri Dec 02, 2011 8:16 pm
by X
Video Conferencing comes to mind.

Re: Webcam library

Posted: Fri Dec 02, 2011 11:56 pm
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..