title: Understanding Template Matching in openCV
body: <p>Just want to clear out my confusion. I've tested openCV template matching method to match some numbers. First I have this sequence of number 0 1 2 3 4 5 1 2 3 4 5 (after binarization probably the character width is different). How does template matching works to match number '1'? Does it;</p>
  <ol>
  <li>slides through all the window until it found 2 matches (2 output), or</li>
  <li>stop after it match the first '1', or</li>
  <li>find the highest correlation between the two number '1' and choose either one.</li>
  </ol>
  <p><img src="https://i.stack.imgur.com/2qrgN.png" alt="Matching Number '1'" /></p>
  <p>Edited: As attached is the output. It only match one number '1' and not two '1'.</p>
  <p>[Q] How can I detect two numbers '1' simultaneously?</p>