Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #135 from ThatOneGuyScripts/main
Browse files Browse the repository at this point in the history
Potential fix for OCR failure on crowded text
  • Loading branch information
kelltom authored Feb 12, 2023
2 parents 67f665a + c0d4f25 commit 03ca3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def find_text(
char_list = []
for char in chars:
try:
template = font[char]
template = font[char][1:]
except KeyError:
text = text.replace(char, "") # Remove characters that aren't in the font
print(f"Font does not contain character: {char}. Omitting from search.")
Expand Down

0 comments on commit 03ca3fe

Please sign in to comment.