@@ -134,7 +134,7 @@ def getBoxRegions(regions):
134
134
parser = argparse .ArgumentParser (description = 'Identity Card Information Extractiion' )
135
135
parser .add_argument ('--folder_name' , default = "images" , type = str , help = 'folder that contain tc id images' )
136
136
parser .add_argument ('--neighbor_box_distance' , default = 50 , type = float , help = 'Nearest box distance threshold' )
137
- parser .add_argument ('--face_recognition' , default = "haar " , type = str , help = 'face detection algorithm' )
137
+ parser .add_argument ('--face_recognition' , default = "ssd " , type = str , help = 'face detection algorithm' )
138
138
parser .add_argument ('--ocr_method' , default = "EasyOcr" , type = str , help = 'Type of ocr method for converting images to text' )
139
139
parser .add_argument ('--rotation_interval' , default = 60 , type = int , help = 'Face search interval for rotation matrix' )
140
140
args = parser .parse_args ()
@@ -152,7 +152,7 @@ def getBoxRegions(regions):
152
152
153
153
154
154
start = time .time ()
155
-
155
+ end = 0
156
156
for filename in sorted (os .listdir (Folder )):
157
157
158
158
img = cv2 .imread (os .path .join (Folder ,filename ))
@@ -202,6 +202,7 @@ def getBoxRegions(regions):
202
202
for id , val in PersonInfo .items ():
203
203
print (id ,':' ,val )
204
204
print (" " )
205
+ end = time .time ()
205
206
utlis .displayMachedBoxes (final_img , new_bboxes )
206
207
207
208
utlis .displayAllBoxes (final_img , bbox_coordinates )
@@ -220,7 +221,7 @@ def getBoxRegions(regions):
220
221
#cv2.imwrite("predicted_mask.jpg", predicted_mask)
221
222
plt .show ()
222
223
223
- end = time . time ()
224
+
224
225
print ("Execution Time:" , (end - start ))
225
226
226
227
0 commit comments