Adapt to windows

release/2.0-rc1-0
WenmuZhou 5 years ago
parent bbc52fc993
commit a44c2a699f

@ -180,8 +180,8 @@ if __name__ == "__main__":
count += 1 count += 1
print("Predict time of %s:" % image_file, elapse) print("Predict time of %s:" % image_file, elapse)
src_im = utility.draw_text_det_res(dt_boxes, image_file) src_im = utility.draw_text_det_res(dt_boxes, image_file)
img_name_pure = image_file.split("/")[-1] img_name_pure = os.path.split(image_file)[-1]
cv2.imwrite( img_path = os.path.join(draw_img_save, "det_res_%s" % img_name_pure)
os.path.join(draw_img_save, "det_res_%s" % img_name_pure), src_im) cv2.imwrite(img_path, src_im)
if count > 1: if count > 1:
print("Avg Time:", total_time / (count - 1)) print("Avg Time:", total_time / (count - 1))

Loading…
Cancel
Save