A: 

You probably should take a look for

However, you can use a library for that and save time:

  • OpenCV (Open Computer Vision) is the most popular library, and it has been wrapped for C#:
Betamoo