Scan image for a certain shape, then check the difference of just those parts of the images

pleasetake a look at the tutorials, try some things, and refine yor problem ?