Having a webcam connected to your system provides all kinds of additional capabilities. One of the absolute neatest devices out there is Kinect for the Xbox. This device provides not only video, but depth using an infrared device. There are individuals working to make Kinect work with the BeagleBone Black. Several good libraries enable Kinect on Ubuntu. If you'd like to try, buy a used Kinect and then go to http://speculatrix.tumblr.com/post/23043561344/kinect-on-the-beagleboard-and-ubuntu or http://kinepeutics.blogspot.com/2012/04/ethernet-working-installing-kinect.html and give it a try. Just a word of warning, this task is not for beginners. Later we will talk about the Robot Operating System, which may make it easier.
Also, you can get 3D vision with OpenCV using two cameras. There are several good places for example code, for example in the
samples/cpp directory that came with OpenCV there is an example
stereo_match.cpp. Also, for more code examples, you can visit http:/...