Author |
Topic: Webcam (Read 745 times) |
|
JB91
New Member
member is offline


Gender: 
Posts: 47
|
 |
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)
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
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.
|
|
Logged
|
|
|
|
JB91
New Member
member is offline


Gender: 
Posts: 47
|
 |
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.
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
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 » |
Logged
|
|
|
|
JB91
New Member
member is offline


Gender: 
Posts: 47
|
 |
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.
|
|
Logged
|
|
|
|
JB91
New Member
member is offline


Gender: 
Posts: 47
|
 |
Re: Webcam
« Reply #6 on: Nov 5th, 2010, 3:59pm » |
|
Thanks for your help. 
Josh.
|
|
Logged
|
|
|
|
JGHarston
Junior Member
member is offline


Gender: 
Posts: 52
|
 |
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.
|
|
Logged
|
|
|
|
Ironman
New Member
member is offline


Gender: 
Posts: 15
|
 |
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.
|
|
Logged
|
|
|
|
Ironman
New Member
member is offline


Gender: 
Posts: 15
|
 |
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!!
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
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!
|
|
Logged
|
|
|
|
Ironman
New Member
member is offline


Gender: 
Posts: 15
|
 |
Re: Webcam
« Reply #12 on: Jan 14th, 2012, 10:03pm » |
|
Tried Firefox and IE7, still no result.......
|
« Last Edit: Jan 15th, 2012, 08:39am by Ironman » |
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
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....... |
|
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.
|
|
Logged
|
|
|
|
Ironman
New Member
member is offline


Gender: 
Posts: 15
|
 |
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!!!!
|
|
Logged
|
|
|
|
|