From f1c53c186d9b2f9b4c802307e638629302e99d1c Mon Sep 17 00:00:00 2001 From: suzan Date: Tue, 29 Nov 2022 18:28:34 +0100 Subject: [PATCH] Update 'cutting.py' --- cutting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cutting.py b/cutting.py index a2fc26f..61d9375 100644 --- a/cutting.py +++ b/cutting.py @@ -7,6 +7,8 @@ os.system("tesseract output.png image -l eng") fantasyname = open("image.txt" , "r") fantasyname = fantasyname.readlines() text = open("image.txt", "r").read() +text = text.replace("‘","'") +text = text.replace("’","'") print(text) print("------") lines = text.split("\n")