api: Add message when angle check pass
This commit is contained in:
parent
f8cb7e85e5
commit
b2343f3cae
@ -648,6 +648,8 @@ class QrVerifyView(BaseView):
|
||||
if diff > batch.qr_angle_allowed_error:
|
||||
messages.append(f"Angle check failed, captured {angle} but expecting {batch.qr_angle} with error margin {batch.qr_angle_allowed_error}")
|
||||
raise Exception("Angle check failed")
|
||||
else:
|
||||
messages.append(f"Angle check passed, captured {angle} and expecting {batch.qr_angle} with error margin {batch.qr_angle_allowed_error}")
|
||||
|
||||
def do_v5_qr_verify(self, img_fn, messages):
|
||||
resp = requests.post(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user