public boolean process ( T image , QrCode qr ) { this . qr = qr ; // this must be cleared before calling setMarker or else the distortion will be messed up qr . alignment . reset ( ) ; reader . setImage ( image ) ; reader . setMarker ( qr ) ; threshold = ( float ) qr . threshCorner ; initializePatterns ( qr ) ; // version 1 has no alignment patterns if ( qr . version <= 1 ) return true ; return localizePositionPatterns ( QrCode . VERSION_INFO [ qr . version ] . alignment ) ; }
Uses the previously detected position patterns to seed the search for the alignment patterns