Skip to content

Commit db166a2

Browse files
committed
update model
1 parent a1d103d commit db166a2

File tree

2 files changed

+35716
-3
lines changed

2 files changed

+35716
-3
lines changed

main.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def getBoxRegions(regions):
134134
parser = argparse.ArgumentParser(description = 'Identity Card Information Extractiion')
135135
parser.add_argument('--folder_name', default="images", type=str, help='folder that contain tc id images')
136136
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')
138138
parser.add_argument('--ocr_method', default = "EasyOcr", type = str, help='Type of ocr method for converting images to text')
139139
parser.add_argument('--rotation_interval', default = 60, type = int, help='Face search interval for rotation matrix')
140140
args = parser.parse_args()
@@ -152,7 +152,7 @@ def getBoxRegions(regions):
152152

153153

154154
start = time.time()
155-
155+
end = 0
156156
for filename in sorted(os.listdir(Folder)):
157157

158158
img = cv2.imread(os.path.join(Folder,filename))
@@ -202,6 +202,7 @@ def getBoxRegions(regions):
202202
for id, val in PersonInfo.items():
203203
print(id,':' ,val)
204204
print(" ")
205+
end = time.time()
205206
utlis.displayMachedBoxes(final_img, new_bboxes)
206207

207208
utlis.displayAllBoxes(final_img, bbox_coordinates)
@@ -220,7 +221,7 @@ def getBoxRegions(regions):
220221
#cv2.imwrite("predicted_mask.jpg", predicted_mask)
221222
plt.show()
222223

223-
end = time.time()
224+
224225
print("Execution Time:", (end -start))
225226

226227

0 commit comments

Comments
 (0)