title: opencv my own 2D bar code reader
body: <p>Didn't find answer in Google, so ask for your help: I need to make C++ program for recognizing 2D own!!! (cipher) bar code (hand made code). It consists of 20-100 lines. Each line - one word.</p>
  
  <p>Desided to use OpenCV. Need find on image group of bars, crop and scan picture from left top corner.</p>
  
  <p>No problem with crop and code searching. Don't understand, how correct recognize line of black and white pixels to get unique combination for each line.</p>
  
  <p>As I anderstand, good way - go by line and see white pixel or black, if black - write 1, if white = 0.... and than write sequence like this:</p>
  
  <p>11111111 000000 111111 00000000000 111111111111111 0000000 1111 = 8 6 6 11 15 7 4 (count 1 and 0 quantity) = get 866111574  than use coefficient depend of crop width and height to find accordance.</p>
  
  <p>How to write this in C++ code using Opencv? Don't understand. Tried to use cvInitLineIterator... What can you advise? Thank you.</p>