title: Comparing images - one with coloured dots and one without
body: <p>I am writing a tool for a game and I am stuck on doing some image comparison.</p>
  <p>Basically, I take a snapshot of the minimap, and compare it with a saved image I have of the same area to detect the presence of that part of the map.</p>
  <p>However, when in game, various white or yellow dots appear on the minimap in random positions, which can make it hard to compare the similarity of the images.</p>
  <p>I've used the template matching feature of OpenCV but I had to set the threshold very low, but this often resulted in false positives.</p>
  <p>Is there some way to ignore the variable details, i.e. the dots?</p>
  <p>Thanks!</p>
  <p>First image is without variation, and second image is snapped in-game. I am looking for a way to compare the images and get some value that indicates high level of similarity.</p>
  <p><a href="https://i.stack.imgur.com/7z1he.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7z1he.png" alt="image without variation" /></a>
  <a href="https://i.stack.imgur.com/asUYt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/asUYt.png" alt="image with variation" /></a></p>