: quickly and easily. Not sure how easy it is to use webcams under linux : these days with C or some scripting language perhaps. I know sockets
Conceptually it would be something like: system "getpic -format jpeg -size 640x180 filename.jpg"
ie -- there will be a program that gets an image from the cam and puts it in a file. Then you manipulate the file.
If you wanted to talk to the hardware directly, then you would most likely open /dev/cam0 or whatever the name is and read it directly.
The Unix (and by extension linux) paradigm is to have small single-purpose programs that you can link together to get complex results.