"tests/pipelines/vscode:/vscode.git/clone" did not exist on "0612f48cd05f47e238256392d6b45a38875f55b8"
Commit 010533bd authored by LDOUBLEV's avatar LDOUBLEV
Browse files

change the saved path of visualized image

parent c65f3308
......@@ -132,9 +132,11 @@ if __name__ == "__main__":
draw_img = draw_ocr(
image, boxes, txts, scores, draw_txt=True, drop_score=0.5)
draw_img_save = "./doc/imgs_results/"
draw_img_save = "./inference_results/"
if not os.path.exists(draw_img_save):
os.makedirs(draw_img_save)
cv2.imwrite(
os.path.join(draw_img_save, os.path.basename(image_file)),
draw_img)
print("The visualized image saved in {}".format(
os.path.join(draw_img_save, os.path.basename(image_file))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment