BBC BASIC for Windows
« Webcam »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:23pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1 2  Notify Send Topic Print
 veryhotthread  Author  Topic: Webcam  (Read 742 times)
JB91
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 47
xx Webcam
« Thread started on: Sep 15th, 2010, 6:42pm »

Is it possible to show what the webcam is seeing? (mine is built in to my laptop)
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Webcam
« Reply #1 on: Sep 15th, 2010, 9:31pm »

on Sep 15th, 2010, 6:42pm, JB91 wrote:
Is it possible to show what the webcam is seeing?

Yes, you can use the AVICAP32 DLL to grab images from the webcam and display them, or do what you like with them. I thought there was a demo program for that on the group, but I can't find it. Either it has been deleted by its author, or it's called something obscure!

Unfortunately, although I've grabbed video from a TV tuner card (the code is basically identical), none of my PCs has a webcam so I can't do any tests here.

If nobody else pops up with some code maybe I should invest in a cheap USB webcam.

Richard.
User IP Logged

JB91
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 47
xx Re: Webcam
« Reply #2 on: Nov 3rd, 2010, 7:05pm »

I don't think anyone knows. I've checked through lots of files on the BBC BASIC Yahoo Group, and I can't find anything at all.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Webcam
« Reply #3 on: Nov 3rd, 2010, 10:27pm »

on Nov 3rd, 2010, 7:05pm, JB91 wrote:
I don't think anyone knows. I've checked through lots of files on the BBC BASIC Yahoo Group, and I can't find anything at all.

I have found the program which I was remembering: it's called webcam16.bbc by David Dade and dated August 9th 2006. It contains all the code needed for grabbing pictures from a webcam.

Unfortunately I don't know how to contact the author for permission, so I can't upload the program or let you have it. However the actual process of capturing images is quite straightforward.

Firstly you have to create a capture window which you do by calling the function capCreateCaptureWindowA exported by AVICAP32.DLL. Once you've created that window you grab a frame by sending it a WM_CAP_GRAB_FRAME_NOSTOP message, and then you can save it as a BMP file by sending it a WM_CAP_FILE_SAVEDIBA message.

That's basically all there is to it. You can find documentation for the DLL and the functions on MSDN. Hopefully with that information you can do what you want to do quite easily.

Later: I've bought myself a cheap webcam so I should be able to give assistance if required.

Richard.
« Last Edit: Nov 4th, 2010, 5:06pm by admin » User IP Logged

JB91
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 47
xx Re: Webcam
« Reply #4 on: Nov 4th, 2010, 8:28pm »

I've managed to create the window, but I can't seem to be able to show the images.

Josh.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Webcam
« Reply #5 on: Nov 4th, 2010, 11:38pm »

on Nov 4th, 2010, 8:28pm, JB91 wrote:
I've managed to create the window, but I can't seem to be able to show the images.

I've put a simple webcam program here:

http://groups.yahoo.com/group/bb4w/files/Multimedia/webcam.bbc

Richard.
User IP Logged

JB91
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 47
xx Re: Webcam
« Reply #6 on: Nov 5th, 2010, 3:59pm »

Thanks for your help. wink

Josh.
User IP Logged

JGHarston
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 52
xx Re: Webcam
« Reply #7 on: Nov 6th, 2010, 3:13pm »

on Nov 3rd, 2010, 10:27pm, Richard Russell wrote:
I have found the program which I was remembering: it's called webcam16.bbc by David Dade ...

Unfortunately I don't know how to contact the author for permission
Sysop of ArcadeBBS http://arcade.demon.co.uk/who.html. Was chatting with him about BBF$ and webcams a couple of months ago.

User IP Logged

Ironman
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 15
xx Re: Webcam
« Reply #8 on: Jan 14th, 2012, 1:21pm »

Richard, although I'm a yahoo groups member I can't seem to get into the site to download the webcam.bbc file that you have provided.
Would you be kind enough to send me an alternate download link for the program or post a code listing, as I am very keen on developing a time lapse capture application using a webcam.
Thank you in anticipation.



smiley
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Webcam
« Reply #9 on: Jan 14th, 2012, 3:40pm »

on Jan 14th, 2012, 1:21pm, Ironman wrote:
I can't seem to get into the site to download the webcam.bbc file

Strange. Try these direct links to the various versions of the program:

http://tech.groups.yahoo.com/group/bb4w/files/Multimedia/webcam.bbc
http://tech.groups.yahoo.com/group/bb4w/files/Multimedia/webcam_ESC.bbc
http://tech.groups.yahoo.com/group/bb4w/files/Multimedia/webcam_WIA.bbc

You need to be a member of the BB4W group, not just of Yahoo, to download these files.

Richard.
User IP Logged

Ironman
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 15
xx Re: Webcam
« Reply #10 on: Jan 14th, 2012, 5:49pm »

Thanks Richard, but when I click 'join this group now' my browser window clears and nothing happens.
Most frustrating!!
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Webcam
« Reply #11 on: Jan 14th, 2012, 9:06pm »

on Jan 14th, 2012, 5:49pm, Ironman wrote:
Thanks Richard, but when I click 'join this group now' my browser window clears and nothing happens. Most frustrating!!

Try it with a different browser perhaps? Although I generally use IE, I've got Firefox, Opera, Safari and Chrome installed for recalcitrant sites!
User IP Logged

Ironman
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 15
xx Re: Webcam
« Reply #12 on: Jan 14th, 2012, 10:03pm »

Tried Firefox and IE7, still no result....... sad
« Last Edit: Jan 15th, 2012, 08:39am by Ironman » User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Webcam
« Reply #13 on: Jan 15th, 2012, 09:43am »

on Jan 14th, 2012, 10:03pm, Ironman wrote:
Tried Firefox and IE7, still no result....... sad

Sorry, in that case I have no idea. 794 people are currently members of the group, and nobody else has previously reported any problem joining it.

Richard.
User IP Logged

Ironman
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 15
xx Re: Webcam
« Reply #14 on: Jan 15th, 2012, 2:00pm »

Maybe they're having problems with their website. I've just tried again with Firefox and the same thing occurs. White screen and no web page, although the address bar shows that the page is loaded. Totally miffed!!!!
User IP Logged

Pages: 1 2  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls