go away spammer

Author Topic: Cams for Visual processing  (Read 2638 times)

0 Members and 1 Guest are viewing this topic.

Offline vipulan12Topic starter

  • Robot Overlord
  • ****
  • Posts: 181
  • Helpful? 0
Cams for Visual processing
« on: February 16, 2013, 07:04:15 PM »
Hey guys what camera do you recommend for visual processing
I have heard about the CMU cameras but what about webcams?

How would you program a webcam for visual processing in C or C++?
Would you need libraries or something?(or OPenCV)

Offline jwatte

  • Supreme Robot
  • *****
  • Posts: 1,345
  • Helpful? 82
Re: Cams for Visual processing
« Reply #1 on: February 17, 2013, 11:05:08 PM »
Typically, you read an image stream from a camera using a platform specific API. On Windows, it's either DirectShow, or Windows Media Foundation, IIRC. On Linux, it's video4linux2, which ends up being a single header file with some ioctl() structures and control codes.
OpenCV has some classes for working with webcams and Kinect cameras and a few others. This means you don't have to learn your platform-specific video capture API, but instead the OpenCV API.

Any camera will give you pictures. The more expensive cameras typically have various features not found on the cheaper ones:
- higher-quality sensors with less noise
- better frame rates
- better optics
- spatially calibrated for specifc capture transform (for specific computer vision cameras)
- stereo capable (for specific computer vision cameras)
- more robust
- etc

Often, because of the cost advantage of the mass market, a more expensive camera may give you one particular feature (say, stereo) but actually be worse in all the other respects. However, if you need that feature, well, you're stuck between a rock and a hard place :-)


Offline vipulan12Topic starter

  • Robot Overlord
  • ****
  • Posts: 181
  • Helpful? 0
Re: Cams for Visual processing
« Reply #2 on: February 20, 2013, 02:31:55 PM »
do you know any good tutorials for the process you said

Offline jwatte

  • Supreme Robot
  • *****
  • Posts: 1,345
  • Helpful? 82

Offline vipulan12Topic starter

  • Robot Overlord
  • ****
  • Posts: 181
  • Helpful? 0
Re: Cams for Visual processing
« Reply #4 on: February 21, 2013, 06:55:19 PM »
 I know this is a dumb question but how do you import open CV
I know you have to include it in the code but  don't i need to move the file somewhere like a specific library file(similar for inputting libraries for the arduino)
I am using ecllpse as my IDE on C

and do you think I should python instead for programming?

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: Cams for Visual processing
« Reply #5 on: February 22, 2013, 01:21:02 AM »
What are You programming for, PC or microcontroller?
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline vipulan12Topic starter

  • Robot Overlord
  • ****
  • Posts: 181
  • Helpful? 0
Re: Cams for Visual processing
« Reply #6 on: February 23, 2013, 11:06:22 AM »
I want to program for the computer

Offline vipulan12Topic starter

  • Robot Overlord
  • ****
  • Posts: 181
  • Helpful? 0
Re: Cams for Visual processing
« Reply #7 on: February 25, 2013, 03:13:13 PM »
so How can I do it If i were yo do it on windows and would any webcam be good for visual processing or is their a specific feature i should for when buying a webcam
would this webcam be good?
http://www.futureshop.ca/en-CA/product/hewlett-packard-hp-webcam-hd-3310-a5f62aa-abl-hp-webcam-hd-3310/10235018.aspx?path=9fade7b06206468176a9a5da5277085een02

and jwatte what exactly is a CMake file?
« Last Edit: February 25, 2013, 03:38:55 PM by vipulan12 »

Offline jwatte

  • Supreme Robot
  • *****
  • Posts: 1,345
  • Helpful? 82
Re: Cams for Visual processing
« Reply #8 on: February 25, 2013, 09:00:10 PM »
The opencv site has tutorials. Read them!
Google has much better explanations of CMake than I do.
Cameras are a cost/benefit trade-off, where each 0 you add to the cost gives some small benefit you probably won't need when starting out.

 


Get Your Ad Here

data_list