go away spammer

Author Topic: Raspberry PI with webcam for video processing  (Read 7630 times)

0 Members and 1 Guest are viewing this topic.

Offline vipulan12Topic starter

  • Robot Overlord
  • ****
  • Posts: 181
  • Helpful? 0
Raspberry PI with webcam for video processing
« on: February 23, 2013, 11:05:03 AM »
Hey guys i've been wondering if i could use the raspberry pie and a webcam for video processing
obviously it should work seeing how it's a computer running linux
but is this a good option if i want to start doing video processing?
if so can anyone give me some useful tutroials for programming it?

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
"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 srayner

  • Jr. Member
  • **
  • Posts: 7
  • Helpful? 0
  • See my progress at myrobot.civray-software.com
Re: Raspberry PI with webcam for video processing
« Reply #2 on: March 07, 2013, 03:13:42 PM »
I would like to add a camera and raspberry-pi to my robot also.
I'm wondering how much power would be required, which i'm sure is not easy to calculate without trial an error.

I have seen the article that the above link refers to before, but that is using a 12volt car battery. This would be way too heavy for a small robot. Most hand-held cameras run off of very small batteries.

Does anyone else here have any experience with Raspberry-Pi, video camera running of small batteries (such as n x AA)?


Offline srayner

  • Jr. Member
  • **
  • Posts: 7
  • Helpful? 0
  • See my progress at myrobot.civray-software.com
Re: Raspberry PI with webcam for video processing
« Reply #3 on: March 07, 2013, 03:21:19 PM »
I've just seen this

http://www.wired.co.uk/news/archive/2013-03/06/raspberry-pi-camera-released

This is the camera i've been waiting for to be released. The article mentions the possibility of using 2 of these to produce 3D images. Now that would be cool.

But where would one even start with writing software to process the images???

Offline Azraels

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 1
Re: Raspberry PI with webcam for video processing
« Reply #4 on: March 07, 2013, 05:15:01 PM »
But where would one even start with writing software to process the images???
One would start by learning C programming, being good at math, and then learning to use Roborealm for basic stuff or OpenCV for more technical visual processing.
If your first post is, "I want to build a super complex robot with object recognition, etc..but I have never done programming or electronics...etc." 
Your doing it wrong. Start Simple and Work Up.

Offline jwatte

  • Supreme Robot
  • *****
  • Posts: 1,345
  • Helpful? 82
Re: Raspberry PI with webcam for video processing
« Reply #5 on: March 07, 2013, 07:57:55 PM »
You can use a webcam with the Pi already, and video4linux2 to capture data from the webcam.
I assume the new camera will also have video4linux2 drivers, although probably not USB-based like the webcams.
However, the software won't really see anything different, except perhaps the device name of the camera is different.

To write such software:
1) Learn C programming.
2) No, really, learn C programming *REALLY WELL*.
3) Read the Video4Linux2 API description.
4) Learn about computer video and image representations and formats.
5) Re-read the Video4Linux2 API description.
6) Write software to capture images and process them using the video4linux2 device API.

OpenCV, Roborealm, ROS, and other packages, can sometimes help disguise the low-level details of the camera device API, but I've found that I really actually need to understand how the devices work, or Imake faulty assumptions that lead me astray anyway.

Offline vipulan12Topic starter

  • Robot Overlord
  • ****
  • Posts: 181
  • Helpful? 0
Re: Raspberry PI with webcam for video processing
« Reply #6 on: March 10, 2013, 11:54:29 AM »
ok so if I were to become a good programmer in C what should I learn, I have eclipse that can program C, I have learned some basic functions but I dont know where to go next  exactly
I got a book from the library for C programming but it doesn't anything complicated(the book is pretty basic
so what exactly is the next step?

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Raspberry PI with webcam for video processing
« Reply #7 on: March 10, 2013, 12:57:49 PM »
The book on C that I recommend is the K&R book:
http://www.amazon.com/Programming-Language-2nd-Brian-Kernighan/dp/0131103628

And/or the online "C book":
http://publications.gbdirect.co.uk/c_book/the_c_book.pdf

The K&R book is 'the standard' for all ANSI C compilers.

Next just write C to run on your R-PI or other processor to do simple tasks for starters.
Then increase the complexity of tasks and add interfacing to the out side world; IO pins of the processor that can be single or multiple digital IO bits, serial protocols and analog devices.


Offline ethmus

  • Beginner
  • *
  • Posts: 3
  • Helpful? 0
Re: Raspberry PI with webcam for video processing
« Reply #8 on: January 22, 2014, 12:07:08 PM »
Hello,

I'm using a raspberry pi and a stereo Webcam. See tutorial -> http://jeaeletronica.blogspot.com/2013/07/how-to-run-minoru-3d-webcam-on.html

Good Lucky.

 


Get Your Ad Here

data_list