This is a very complicated task, but in general, you'll do something like this:

Step 1: Write a (probably kernel-mode) driver to interface with your camera
Step 2: Write/find a library to parse...