private boolean readFormatRegion1 ( QrCode qr ) { // if( qr.ppRight.get(0).distance(988.8,268.3) < 30 ) // System.out.println("tjere"); // System.out.println(qr.ppRight.get(0)); // set the coordinate system to the closest pp to reduce position errors gridReader . setSquare ( qr . ppRight , ( float ) qr . threshRight ) ; bits . resize ( 15 ) ; bits . zero ( ) ; for ( int i = 0 ; i < 8 ; i ++ ) { read ( i , 8 , 6 - i ) ; } gridReader . setSquare ( qr . ppDown , ( float ) qr . threshDown ) ; for ( int i = 0 ; i < 6 ; i ++ ) { read ( i + 8 , i , 8 ) ; } return true ; }
Read the format bits on the right and bottom patterns