title: How could I search for patterns in a image in python 3
body: <p>I'm making an image recognition program in python 3, I've got as far as getting the name of the item if it isn't recognised, the path of the image to search, and I've used <a href="https://pillow.readthedocs.org/en/3.1.x/" rel="nofollow">PIL</a> to return the RGB values of each pixel. However: now that I've actually got to the pattern recognition, I have no idea how to attempt it. It's not a problem of errors in the code, or a lack of understanding to attempt this (this is the best way for me to learn programming languages), it's that I don't know what to program (the logic behind it, if you will).</p>
  
  <p>Please note:
  I'm not looking for any code, purely just an explanation of the logic behind it. (I know that this may not be the right place to ask, but since it was sort of a programming question, I decided it was ok)</p>
  
  <p>This has been puzzling me and my programming friends for a few days now, so any help would be greatly appreciated.</p>