title: Using R for simple image/pattern-recognition task?
body: <p>I have an image with many dots, and I would like to extract from it what is the x-y location of each dot.</p>
  
  <p>I already know how to do this manually (there is a package for doing it).</p>
  
  <p>However, is there some way of doing it automatically ?</p>
  
  <p>(My next question will be - is there a a way, when having an image of many lines, to detect where the lines intersect/"touch each other")</p>
  
  <p>Due to requests in the comments, here is an example for an image to "solve" (i.e: extract the data point locations for it)</p>
  
  <pre><code>#riddle 1 (find dots):
  plot(cars, pch = 19)
  #riddle 2 (find empty center circles):
  plot(cars, pch = 1)
  #riddle 2 (fine intersection points):
  plot(cars, pch = 3)
  #riddle 3 (find intersections between lines):
  plot(cars, pch = 1, col = "white")
  lines(stats::lowess(cars))
  abline(v = c(5,10,15,20,25))
  </code></pre>
  
  <p>Thanks, Tal</p>
  
  <p>(p.s: since I am unfamiliar with this field, I am sorry if I am using the wrong terminology or asking something too simple or complex.  Is this <a href="http://en.wikipedia.org/wiki/Optical_mark_recognition" rel="nofollow noreferrer">OMR</a>?)</p>