Open vanderalex opened 3 weeks ago
(Fixed in theory) You can check by downloading and replacing the file, or wait for dmMaze to look at my crooked crafts
I have already fixed it by myself, It's just for future fixes in ocr_google_lens.py fixed function:
def _apply_no_uppercase(self, text: str) -> str:
def capitalize_first_letter(text):
# Capitalize the first letter of each sentence
sentences = re.split(r'(?<=[.!?…])\s+', text.strip())
return ' '.join(sentence.capitalize() for sentence in sentences)
lower_text = text.lower()
return capitalize_first_letter(lower_text)
When I use Google Lens with option apply_no_uppercase it returns text like: Misère, Ils Nous Emmenent Οῦ?!!! (All First Letter Is Upper!!!)