943,717 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 2290
  • C RSS
You are currently viewing page 1 of this multi-page discussion thread
May 23rd, 2008
0

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

Expand Post »
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
charkac is offline Offline
6 posts
since May 2008
May 23rd, 2008
0

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

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
Reputation Points: 69
Solved Threads: 28
Posting Whiz
Clockowl is offline Offline
376 posts
since May 2008
May 23rd, 2008
0

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

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.
Reputation Points: 2143
Solved Threads: 178
Posting Maven
jephthah is offline Offline
2,567 posts
since Feb 2008
May 23rd, 2008
1

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

Not to be an ******* but poster says he wants to capture and store image data from a webcam. That's pretty specific, not?
Reputation Points: 69
Solved Threads: 28
Posting Whiz
Clockowl is offline Offline
376 posts
since May 2008
May 23rd, 2008
0

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

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.
Reputation Points: 2143
Solved Threads: 178
Posting Maven
jephthah is offline Offline
2,567 posts
since Feb 2008
May 23rd, 2008
0

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

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
charkac is offline Offline
6 posts
since May 2008
May 23rd, 2008
0

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

Click to Expand / Collapse  Quote originally posted by Clockowl ...
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.
Reputation Points: 2143
Solved Threads: 178
Posting Maven
jephthah is offline Offline
2,567 posts
since Feb 2008
May 23rd, 2008
0

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

Click to Expand / Collapse  Quote originally posted by charkac ...
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?
Reputation Points: 2143
Solved Threads: 178
Posting Maven
jephthah is offline Offline
2,567 posts
since Feb 2008
May 23rd, 2008
0

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

I can actually choose any device I want. but I already got a logitech quick cam
Reputation Points: 10
Solved Threads: 0
Newbie Poster
charkac is offline Offline
6 posts
since May 2008
May 23rd, 2008
0

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

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.
Reputation Points: 2143
Solved Threads: 178
Posting Maven
jephthah is offline Offline
2,567 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Small coding (XOX) human vs computer (to be paid)
Next Thread in C Forum Timeline: find and replace string in a text file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC