From 755c0f435efc556f59239fe8d451f85b3ccad3c9 Mon Sep 17 00:00:00 2001 From: SEONG JUN SHIN Date: Thu, 22 Feb 2024 02:39:40 +0900 Subject: [PATCH] fix: update coordinate range value --- OCR/googleOCR.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OCR/googleOCR.py b/OCR/googleOCR.py index cf94402..7893c18 100644 --- a/OCR/googleOCR.py +++ b/OCR/googleOCR.py @@ -218,7 +218,7 @@ def text_pointer(uri, x, y): min_y = min(y_set) max_y = max(y_set) - if min_x <= x <= max_x and max_y <= y : + if min_x <= x <= max_x and min_y <= y <= max_y : words.append(word) print(words)