Estimate the distance from a QR code.