final tuch, problem when locating corners when global threshold fails. Could use adaptive threshold agaim or safety-crop around qr-code and us global on that sub image