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)