473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

C/C++ and Webcams

Hi, I'm a student at a university and I'm doing a project that needs two simple functionalities to be written in C or C++.

All I need are the codes necessary to CONNECT to a USB webcam and then CAPTURE an image from the webcam and save it as a JPEG (or BMP but JPEG would be better) file.

I don't need any fancy container that would hold a the stream of images from the webcam...

Basically, the idea is once you click on the program, it connects to the camera and then captures an image. then it's done.

Can anyone help me with this? I need the code as soon as possible... thank you...
Sep 5 '07 #1
4 1657
sicarie
4,677 Expert Mod 4TB
Hi, I'm a student at a university and I'm doing a project that needs two simple functionalities to be written in C or C++.

All I need are the codes necessary to CONNECT to a USB webcam and then CAPTURE an image from the webcam and save it as a JPEG (or BMP but JPEG would be better) file.

I don't need any fancy container that would hold a the stream of images from the webcam...

Basically, the idea is once you click on the program, it connects to the camera and then captures an image. then it's done.

Can anyone help me with this? I need the code as soon as possible... thank you...
Well, if that's all you need... sure we can help.

What have you done so far? Do you know how to connect to a USB device? (This will probably be OS dependent...)
Sep 5 '07 #2
Banfa
9,065 Expert Mod 8TB
Well, if that's all you need... sure we can help.

What have you done so far? Do you know how to connect to a USB device? (This will probably be OS dependent...)
Not to mention device dependent.
Sep 5 '07 #3
Well, if that's all you need... sure we can help.

What have you done so far? Do you know how to connect to a USB device? (This will probably be OS dependent...)
I've been able to do this using linux but I want to be able to do it in windows... linux is pretty straightforward but I don't even know how to connect to a USB device in windows...
Sep 6 '07 #4
sicarie
4,677 Expert Mod 4TB
I've been able to do this using linux but I want to be able to do it in windows... linux is pretty straightforward but I don't even know how to connect to a USB device in windows...
Well then, you have the algorithm for it already, you're just missing the implementation. For USB stuff, I'd start here or here.
Sep 6 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ugly_411 | last post by:
Hey guys. I am in the process of writing a few tools for various astronomers who use quckcams and webcams for star imaging. I wish to be able to write up packages for generic linux, windows and...
0
by: Elp | last post by:
Hi, We have developped an client application in C#. Among other things, this application should display in 4 different windows (or 4 different panels in the same window), 4 webcam streams (web...
0
by: JoeDigital | last post by:
Hi does anyone know of any webcam that is compatible/have drivers for XP other then flycam? much thanks -Nathan
2
by: Andrew | last post by:
Hello all. Could somebody explain me, why the next three lines of code freeze my application ? (1.1 Framework) // --- HttpWebRequest req = (HttpWebRequest)...
3
by: Neil | last post by:
I have an aspx page which calls some javascript functions in a separate js file, is there a way to step into this js file and debug from visual studio? I have seen some examples where the js code...
5
by: Synt4x | last post by:
I'm using VideoCapture in windows to obtain images from my webcam. The thing is, if i want to show a live video from my webcam i have to make an infinite loop and request an image everytime: ...
1
by: videofilm | last post by:
Hello, I am involved in creating wildlife webcams at our site www.newyorkwild.org. This is a natural history site devoted to views of nature unobtainable by direct observation. Our webcams let us...
3
by: videofilm | last post by:
Hello, I am involved in creating wildlife webcams at our site www.newyorkwild.org. This is a natural history site devoted to views of nature unobtainable by direct observation. Our webcams let us...
5
by: frakie | last post by:
Hi there, I need a simple and stupid few line source code to access my webcam. I found lots of huge projects (c++ c and other) which are so big that they are impossible to be used. Does somebody...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.