private boolean readVersionRegion0 ( QrCode qr ) { // set the coordinate system to the closest pp to reduce position errors gridReader . setSquare ( qr . ppRight , ( float ) qr . threshRight ) ; bits . resize ( 18 ) ; bits . zero ( ) ; for ( int i = 0 ; i < 18 ; i ++ ) { int row = i / 3 ; int col = i % 3 ; read ( i , row , col - 4 ) ; } // System.out.println(" decoder version region 0 = "+Integer.toBinaryString(bits.data[0])); return true ; }
Reads the version bits near the right position pattern