-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implemented text recognition (ocr) #272
Commits on Jan 17, 2024
-
implemented text recognition (ocr)
I implemented another comparison method based on OCR. This could be a useful addition in cases where modern game rendering and visual effects (clutter) cause difficulties to find good comparison images. It currently depends on pytesseract and Tesseract-OCR but tests with EasyOCR have also been conducted. Both seem to get similar good recognition results. EasyOCR looks like to cause higher CPU load then tesseract. Tesseract on the other hand is an external dependency that needs to be installed seperatly. The text comparison of the expected and recognized string has two modes. A perfect 1:1 match or the levenshtein ratio. I also introduced two new file config options: * Rectangle position (only used for text files) * FPS limit per text or image file Please let me know what you think of this feature.
Configuration menu - View commit details
-
Copy full SHA for efe7f73 - Browse repository at this point
Copy the full SHA efe7f73View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for a00dd41 - Browse repository at this point
Copy the full SHA a00dd41View commit details -
Configuration menu - View commit details
-
Copy full SHA for ead3463 - Browse repository at this point
Copy the full SHA ead3463View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for d36e2d4 - Browse repository at this point
Copy the full SHA d36e2d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9766bf - Browse repository at this point
Copy the full SHA c9766bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8998360 - Browse repository at this point
Copy the full SHA 8998360View commit details -
Configuration menu - View commit details
-
Copy full SHA for f25fc7e - Browse repository at this point
Copy the full SHA f25fc7eView commit details
Commits on Feb 3, 2024
-
* rewrite text files to contain the rectangle position * switch to easyocr since there was no way to use pytesseract or tesserocr reliably without PIL * display text that is searched for * set default FPS limit for OCR to 1 * minor fixes
Configuration menu - View commit details
-
Copy full SHA for 2f8d298 - Browse repository at this point
Copy the full SHA 2f8d298View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for fddd0ae - Browse repository at this point
Copy the full SHA fddd0aeView commit details -
* switch back to tesseract * ditch all python binding libraries to not include Pillow * call tesseract ourselfs
Configuration menu - View commit details
-
Copy full SHA for cd2c212 - Browse repository at this point
Copy the full SHA cd2c212View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 80140cb - Browse repository at this point
Copy the full SHA 80140cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 450b983 - Browse repository at this point
Copy the full SHA 450b983View commit details
Commits on Feb 4, 2024
-
* moved some code around * implemented fps_limit getter * switch to PATH variable use * minor fixes
Configuration menu - View commit details
-
Copy full SHA for feeb58e - Browse repository at this point
Copy the full SHA feeb58eView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for fb8ed6f - Browse repository at this point
Copy the full SHA fb8ed6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for da830c6 - Browse repository at this point
Copy the full SHA da830c6View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 5674088 - Browse repository at this point
Copy the full SHA 5674088View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5f6639 - Browse repository at this point
Copy the full SHA b5f6639View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1ba410 - Browse repository at this point
Copy the full SHA f1ba410View commit details
Commits on Feb 10, 2024
-
input validation and comparison methods
* added input validation for OCR text file settings * added different OCR comparison methods * fixed the requested changes
Configuration menu - View commit details
-
Copy full SHA for d1dfff0 - Browse repository at this point
Copy the full SHA d1dfff0View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3c0e3e - Browse repository at this point
Copy the full SHA f3c0e3eView commit details
Commits on Mar 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3a3015f - Browse repository at this point
Copy the full SHA 3a3015fView commit details
Commits on Mar 29, 2024
-
improvements to coordinates and matching methods
this commit improves the handling of the rectangle coordinates. the new scheme uses the top_left and bottom_right (X/Y) coordinates. the migration from the old scheme works as follows: ``` top_left = [<top_left>, <bottom_left>] bottom_right = [<top_right>, <bottom_right>] old: top_left = 275 top_right = 540 bottom_left = 70 bottom_right = 95 new: top_left = [275, 70] bottom_right = [540, 95] ``` you can now specify multiple matching methods and look for the best `text : method` match: ``` old: method = 0 new: methods = [0] or: methods = [2, 1, 0] ```
Configuration menu - View commit details
-
Copy full SHA for 75cd0e9 - Browse repository at this point
Copy the full SHA 75cd0e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7be9a0e - Browse repository at this point
Copy the full SHA 7be9a0eView commit details
Commits on Jun 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 043b6b5 - Browse repository at this point
Copy the full SHA 043b6b5View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for c0b2920 - Browse repository at this point
Copy the full SHA c0b2920View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2b407a - Browse repository at this point
Copy the full SHA f2b407aView commit details
Commits on Jun 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9cd0c2b - Browse repository at this point
Copy the full SHA 9cd0c2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f03a90 - Browse repository at this point
Copy the full SHA 2f03a90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 797492f - Browse repository at this point
Copy the full SHA 797492fView commit details