update ChineseOCR/main.py.

Signed-off-by: jason <516623909@qq.com>
This commit is contained in:
jason
2022-10-13 08:45:37 +00:00
committed by Gitee
parent 99e2555ea9
commit 05f330e196

View File

@@ -47,7 +47,7 @@ if __name__ == '__main__':
output_path = os.path.dirname(os.path.realpath(__file__)) output_path = os.path.dirname(os.path.realpath(__file__))
output_exer = os.path.join(output_path, 'output') output_exer = os.path.join(output_path, 'output')
if os.path.exists(output_exer): if os.path.exists(output_exer):
os.remove(output_exer) os.system(f"rm -r {output_exer}")
if not os.path.exists(output_exer): if not os.path.exists(output_exer):
os.makedirs(output_exer) os.makedirs(output_exer)