How to capture and store images using a web cam in C?

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: May 2008
Posts: 6
Reputation: charkac is an unknown quantity at this point 
Solved Threads: 0
charkac charkac is offline Offline
Newbie Poster

How to capture and store images using a web cam in C?

 
0
  #1
May 23rd, 2008
Hi,

I want to know how to capture and store images using a webcam in C? I searched this many places I did not get it.If somebody knows it please tell me.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 376
Reputation: Clockowl is on a distinguished road 
Solved Threads: 27
Clockowl's Avatar
Clockowl Clockowl is offline Offline
Posting Whiz

Re: How to capture and store images using a web cam in C?

 
0
  #2
May 23rd, 2008
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx

I think you should start there, but it's gonna be quite a lot of work I'm afraid. I've never done it myself, but that link seems to be good. If you are on Windows, that is.

If you like examples and hadn't found it yet: http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
Last edited by Clockowl; May 23rd, 2008 at 6:22 pm. Reason: Added tutorial link
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 1,669
Reputation: jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of 
Solved Threads: 123
jephthah's Avatar
jephthah jephthah is offline Offline
Posting Virtuoso

Re: How to capture and store images using a web cam in C?

 
0
  #3
May 23rd, 2008
what are you trying to do exactly?

start and stop a webcam, or engage some of its other functions, just in an automated fashion?

or will this also involve interpreting the image files in some manner?


.
Last edited by jephthah; May 23rd, 2008 at 6:30 pm.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 376
Reputation: Clockowl is on a distinguished road 
Solved Threads: 27
Clockowl's Avatar
Clockowl Clockowl is offline Offline
Posting Whiz

Re: How to capture and store images using a web cam in C?

 
1
  #4
May 23rd, 2008
Not to be an ******* but poster says he wants to capture and store image data from a webcam. That's pretty specific, not?
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 1,669
Reputation: jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of 
Solved Threads: 123
jephthah's Avatar
jephthah jephthah is offline Offline
Posting Virtuoso

Re: How to capture and store images using a web cam in C?

 
0
  #5
May 23rd, 2008
if you're just trying to send commands to blindly operate it, then the easiest (as in "hackiest" and least-portable) way to do this is to send the camera system() commands

this requires that you know the command line interface to the webcam... and that it even has one.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 6
Reputation: charkac is an unknown quantity at this point 
Solved Threads: 0
charkac charkac is offline Offline
Newbie Poster

Re: How to capture and store images using a web cam in C?

 
0
  #6
May 23rd, 2008
I actually have a robort on which a camera mounted.I need to write a C code in that robort's embeded system so that it will be able to capture an image autonomously when a condition is satisfied.And then I will store the image , compress it and transmit.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 1,669
Reputation: jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of 
Solved Threads: 123
jephthah's Avatar
jephthah jephthah is offline Offline
Posting Virtuoso

Re: How to capture and store images using a web cam in C?

 
0
  #7
May 23rd, 2008
Originally Posted by Clockowl View Post
Not to be an ******* but poster says he wants to capture and store image data from a webcam. That's pretty specific, not?
the surest way to know when someones going to be an ass, is that they preface their statement, "not to be an ass, but ...."

Okay, here's the deal, ass: I've learned in my short time here that new posters tend to trickle out details of their requirements, little by little.

Y'see, ass, im trying to shorten the process a bit. Does he really just want to blindly snap pictures, ass? Or is there going to be some sort of dynamic feedback control?

Either way is fine, ass, but before i go too far in looking for a solution, I want to understand the full problem.



.
Last edited by jephthah; May 23rd, 2008 at 6:43 pm.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 1,669
Reputation: jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of 
Solved Threads: 123
jephthah's Avatar
jephthah jephthah is offline Offline
Posting Virtuoso

Re: How to capture and store images using a web cam in C?

 
0
  #8
May 23rd, 2008
Originally Posted by charkac View Post
I actually have a robort on which a camera mounted.I need to write a C code in that robort's embeded system so that it will be able to capture an image autonomously when a condition is satisfied.And then I will store the image , compress it and transmit.
that sounds pretty cool

i'm going to first admit, i have never done anything involving this, so i'm making some semi-informed guesses.

what is the make and model of the web cam? is it a COTS device? do you have latitude in choosing which device to use, or are there a few devices that have been spec'd?
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 6
Reputation: charkac is an unknown quantity at this point 
Solved Threads: 0
charkac charkac is offline Offline
Newbie Poster

Re: How to capture and store images using a web cam in C?

 
0
  #9
May 23rd, 2008
I can actually choose any device I want. but I already got a logitech quick cam
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 1,669
Reputation: jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of 
Solved Threads: 123
jephthah's Avatar
jephthah jephthah is offline Offline
Posting Virtuoso

Re: How to capture and store images using a web cam in C?

 
0
  #10
May 23rd, 2008
okay, first thing you should do is look for "command line interface" in the documentation for your cam. once you find that, then look into the C command, "system()" ... if your cam has no command line interface you may want to consider getting your money back and finding one that does.

i am leaving soon and will not be able to follow up with this until later tonight.

im sure there will be a solution. just keep plugging at it.
Last edited by jephthah; May 23rd, 2008 at 7:31 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC