Commit cd4d5e2f authored by dmMaze's avatar dmMaze
Browse files

try fix apply_no_uppercase for google lens ocr

parent 93d57389
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -275,11 +275,11 @@ class OCRLensAPI(OCRBase):
                if self.newline_handling == 'remove':
                    full_text = full_text.replace('\n', ' ')

                full_text = self._apply_punctuation_and_spacing(full_text)

                if self.no_uppercase:
                    full_text = self._apply_no_uppercase(full_text)

                full_text = self._apply_punctuation_and_spacing(full_text)

                if isinstance(full_text, list):
                    return '\n'.join(full_text)
                else: