improve qrcode detection algorithm

improve qrcode detection algorithm