title: Pattern Matching in Augmented Reality
body: <p>I'm planning to build an Android App. based on <em>Augmented Reality</em>. I googled it and also searched on SO, but have not found anything very much helpful.</p>
  <p>What I want to do is when application is launched, it will start it's camera and initiate the scanning of the pattern. If at any instance the pattern matches with the predefined pattern present in local database, it should perform a specific action.</p>
  <p>For eg. On app launch, camera is started. While scanning, it came across <code>stackoverflow</code> logo(<strong>image 1 as shown below</strong>) and assuming that <code>stackoverflow</code> logo is already present in database(<strong>image 2 as shown below</strong>) in binary pattern format, both pattern should be matched and some specific task is performed, for instance <code>stackoverflow.com</code> should be loaded.</p>
  <p>I referred [this tutorial]:<a href="http://code.google.com/p/andar/wiki/HowToBuildApplicationsBasedOnAndAR" rel="nofollow noreferrer">1</a> it and when I implemented the same, camera gets started with a <strong>green cube</strong> frequently appearing and disappearing. What functionality that <strong>green cube</strong> provides?</p>
  <p>How do I capture the pattern from camera's focused area and how do I match it with another pattern?</p>
  <p>I know I'm bit unclear in this question but as I'm new to android development, any suggestion would be of great help.</p>
  <hr />
  <p><strong>image 1(currently focused by camera)</strong></p>
  <p><img src="https://i.imgur.com/4TRaa.png" alt="screen" /></p>
  <hr />
  <p><strong>image 2(present in database in binary pattern format)</strong></p>
  <p><img src="https://i.imgur.com/lISWn.png" alt="screen" /></p>
  <hr />