Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def check(lines):
|
|
| 52 |
|
| 53 |
import cv2
|
| 54 |
|
| 55 |
-
def get_info(img):
|
| 56 |
|
| 57 |
s=""
|
| 58 |
|
|
@@ -143,7 +143,7 @@ def main(img):
|
|
| 143 |
mrzscanner.initLicense("DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ==")
|
| 144 |
scanner = mrzscanner.createInstance()
|
| 145 |
scanner.loadModel(mrzscanner.get_model_path())
|
| 146 |
-
lst=get_info(img)
|
| 147 |
final_lst=extract_result(lst)
|
| 148 |
json_file=return_df(final_lst)
|
| 149 |
return json_file
|
|
|
|
| 52 |
|
| 53 |
import cv2
|
| 54 |
|
| 55 |
+
def get_info(scanner,img):
|
| 56 |
|
| 57 |
s=""
|
| 58 |
|
|
|
|
| 143 |
mrzscanner.initLicense("DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ==")
|
| 144 |
scanner = mrzscanner.createInstance()
|
| 145 |
scanner.loadModel(mrzscanner.get_model_path())
|
| 146 |
+
lst=get_info(scanner,img)
|
| 147 |
final_lst=extract_result(lst)
|
| 148 |
json_file=return_df(final_lst)
|
| 149 |
return json_file
|