Hello,
This sounds relatively easy to accomplish using IMAQ Vision software if I understood your application correct. You'd have to do a pattern match on your picture which can be shift and rotation invariant. This function will return a match score (btw. 0 and 1000) depending on how close the match is.
In order to verify that the function will work for you, I suggest you download the evaluation version of Vision Builder for Automated Inspection, which uses the same pattern matching algorithm and try it on your pictures (http://sine.ni.com/apps/we/nioc.vp?pc=res&cid=1308〈=US&p_0=manual).
I hope this helps!
Regards,
Yusuf C.
Applications Engineering
National Instruments