So you don’t know which one is right, and you want to choose the right one? Or do you have an image of truth on earth with which you can compare the entrance? Because, if you know what the correct image looks like, you can just do a simple subtraction between the images and find the wrong one. Therefore, I do not think the question.
So, in case you have two images, and you have to determine which one is correct, do you know the type of error? Is there always a patch in the picture? Is it always a rectangle or can it also be mixed with a background image?
One idea would be to cut the image in parts and analyze the histogram for each of them, but it will work only if the original image is quite constant and the corrected object is very different from the background.
Perhaps you can do an edge detection in the image, and then try to detect straight lines (this could be a Hough line detection) so you can look for a rectangular shape. (If you have lines as a result, then the rectangle search algorithm does not depend on the shape and size of the rectangle. You only check the direction of the line)
If you can describe in more detail what the limitations of your error objects are, perhaps we can think of a better idea.
source share