ssjshields / archetype-counter

PowerShell WinForm script for the online video game PokeMMO. Automatically track encounters (Horde, Safari, etc.) and manually track when you receive Eggs or Fossils. Utilizes ImageMagick and OCR technology.
53 stars 17 forks source link

Failed Scans - l passing as i #22

Closed FirewalI closed 1 year ago

FirewalI commented 1 year ago

I've been getting multiple failed scans, and I can't seem to pinpoint what causes the issue, window size, and typing don't seem to turn it consistent or fix. But it tends to happen with specific pokémons, Smeargles and Golduck hordes break it for example, while Natu seems to work perfectly. In Smeargle's case, sometimes, it does register properly! A problem with the L perhaps? I am using a completely fresh unmodified Archetype theme, with Archetype-English for language. ArchetypeScreenshot ArchetypeScreenshotEncounter ArchetypeScreenshotMagick DEBUG_OCR_OUTPUT.txt

ssjshields commented 1 year ago

@FirewalI You hit the nail on the head, OCR is having trouble distinguishing a few characters, "l" and "i" being one of them. In this case, Goiduck is the result that is being processed. If you open the CounterConfig_PokemonNameFix text file and add to a new line: Goiduck; Golduck should resolve this issue.

In future versions of the counter @AnonymousPoke has switched us from using windows OCR to using a utility called tesseract, this should help with OCR accuracy in cases like this one.

AnonymousPoke commented 1 year ago

@FirewalI, please download the latest main build as the counter now uses Tesseract OCR for a more reliable OCR scan process. You should now have a better experience overall with the new build.