Git Product home page Git Product logo

Comments (3)

josdemmers avatar josdemmers commented on July 28, 2024

Tried scaling in the past for different resolutions but that did not work good enough. Too many failed to match.
Maybe it works for the same resolution but different font sizes. But it can never work for all affixes.
The problem is when you change the font size between small, medium, large, the length of the affix text changes. So for one font size it fits on 1-2 line(s) while for the larger font it needs 2-3 lines.

from diablo4companion.

smoochy avatar smoochy commented on July 28, 2024

Mhh, bummer. I was thinking, that maybe, you could "train" your internal recognition with sample files. So for each resolution, you only need to take 3 screenshots (each for each font scale) instead of dozens of screenshots for each affix. For instance. Maybe take an affix, which has a line feed with medium font, no line feed with small and 2 line feeds with large font?

I only know a little bit of Python, so I do have ideas, but don't know how to put this into working code.

In addition, would it be possible to get all possible affixes for each item slot extracted from the game files? Or at least have them in some list or so?

Would it be possible to have all affixes in a text file. For each affix you internally create a png file for the needed font scale and your image recognition ingame is based on that? That would take of a huge amount of work from the end user.

from diablo4companion.

josdemmers avatar josdemmers commented on July 28, 2024

Mhh, bummer. I was thinking, that maybe, you could "train" your internal recognition with sample files. So for each resolution, you only need to take 3 screenshots (each for each font scale) instead of dozens of screenshots for each affix. For instance. Maybe take an affix, which has a line feed with medium font, no line feed with small and 2 line feeds with large font?

No that doesn't work like that. The app somehow needs to know which affix it is. The closes implemention that matches this will be by using OCR.

In addition, would it be possible to get all possible affixes for each item slot extracted from the game files? Or at least have them in some list or so?

Yes that is possible. Working on that already. But not sure when that will be ready.

Would it be possible to have all affixes in a text file. For each affix you internally create a png file for the needed font scale and your image recognition ingame is based on that? That would take of a huge amount of work from the end user.

The app uses template matching. The images have to be a close enough match to work. It might be possible if you can generate a good enough match. Other issue would be all the different single and multi-line affixes depending on font size and screen resolution. You would need to match that exactly as well.

Thanks for the ideas thought!

from diablo4companion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.