Check this: OpenCV library.
http://opencv.org/[
^]
OpenCV is free library which was designed for computational efficiency and with a strong focus on real-time applications.
Usage ranges from interactive art, to image processing, stitching maps on the web or through advanced robotics.