Spaces:
Running
Running
Update demo.py
Browse files
demo.py
CHANGED
@@ -16,6 +16,7 @@ def idcard_recognition(frame1, frame2):
|
|
16 |
html = None
|
17 |
images = None
|
18 |
mrz = None
|
|
|
19 |
|
20 |
status = r.json().get('Status')
|
21 |
table_value = ""
|
@@ -23,6 +24,9 @@ def idcard_recognition(frame1, frame2):
|
|
23 |
if r.json().get('MRZ') is not None:
|
24 |
mrz = r.json().get('MRZ')
|
25 |
|
|
|
|
|
|
|
26 |
for key, value in r.json().items():
|
27 |
if key == 'Status' or key == 'Images' or key == 'MRZ' or key == 'Position':
|
28 |
continue
|
|
|
16 |
html = None
|
17 |
images = None
|
18 |
mrz = None
|
19 |
+
barcode = None
|
20 |
|
21 |
status = r.json().get('Status')
|
22 |
table_value = ""
|
|
|
24 |
if r.json().get('MRZ') is not None:
|
25 |
mrz = r.json().get('MRZ')
|
26 |
|
27 |
+
if r.json().get('Barcode') is not None:
|
28 |
+
barcode = r.json().get('Barcode')
|
29 |
+
|
30 |
for key, value in r.json().items():
|
31 |
if key == 'Status' or key == 'Images' or key == 'MRZ' or key == 'Position':
|
32 |
continue
|