0

I'm playing a game where our Guild is constantly sharing teams as screenshots in Discord. I'm wondering if I can find something that will convert those team images into text, using a library of exact images for each of the troops.

Online OCR does a marginal job because of the backgrounds behind the text, so it's not a great solution. Also, it basically solves the wrong problem.

I've found mention of the OpenCV library (for Python?), but the GitHub projects I've seen are looking at a much broader problem.

Here's the algorithm I have in mind:

  1. Locate the team in the image and resize to a standard size.

  2. Locate the sub-images for each troop.

  3. Search the library of template images (about 800 -- a big job to create!) for each troop and find a sufficiently good match.

  4. Look up and return the text associated with each match.

Ideally, I would like to point the software to an image file and it would tell me the names of the troops in copyable text.

This might be an interesting enough project for me to finally install and learn Python (but that's a whole other question). For now, let's see what already exists that might work.

  • If you are already cropping the images down to text, why not OCR them then instead of comparing with templates? If you want further help you should provide sample images. – mnistic Jul 05 '19 at 02:26
  • I'm not planning to crop the images in advance, though some may be shared pre-cropped. OCR is technically overkill for the job, but more importantly, it fails badly on images like [this example](https://community.gemsofwar.com/t/not-a-real-team-please-ignore/56461). – Starlite Lemming Jul 16 '19 at 08:34

0 Answers0