From 3ef4065b7bfc8b3be4c0e3565329835f11cb0957 Mon Sep 17 00:00:00 2001 From: Jonas Braus Date: Tue, 10 Dec 2024 20:48:01 +0100 Subject: [PATCH] Create test_image.py --- test_image.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test_image.py diff --git a/test_image.py b/test_image.py new file mode 100644 index 0000000..a480c7b --- /dev/null +++ b/test_image.py @@ -0,0 +1,7 @@ +import cv2 +import pytesseract + +def extract_image_content(path): + pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe' + img = cv2.imread(path) + return pytesseract.image_to_string(img) \ No newline at end of file