added pattern recognition to QR tracking