The end goal would be to see if
contains
You should probably take a look at OpenCV and VLfeat.
How about ImageMagick? Its not a library per se however if you can provide shell access to your environment its pretty easy to use.
You would most probably be interested in the compare command.
EDIT: ImageMagick does contain tools for sub-image search like subimage-search.
Object detection can be performed for example using
Look at this - http://gallery.azureml.net/MachineLearningAPI/02ce55bbc0ab4fea9422fe019995c02f - it supports OCR. This also supports multiple languages and distortion - http://www.projectoxford.ai/doc/vision/OCR