I want a simple PHP library that will allow me to compare two images A and B. A is the reference image of an object. If the reference object is found in image b then a natch is confirmed. Image B will be changing all the time and the focus point, size, viewing angle and such may change. If there are more than one of the same item A in photo B it will count them.
I would like this to be a very simple module so I can modify it for use in my own website code on several projects, so really I just want two pages - one to upload 2 photos and one results page. I want original code and not "frameworks" of other people. Use of an open source image library is okay as long as it is in the background.
That is all.