Comments (3)
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.
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.
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)
- Question about Blizzard Warning HOT 2
- missing affices HOT 2
- Will there be a Simplified Chinese version considered in the future? HOT 7
- Want to add configuration name display
- Button to scan all items ? HOT 5
- Multiple Gear Affix Presets at the same time HOT 2
- Controller Support HOT 3
- Indicators not showing up when Occultist window open HOT 2
- Some affixes missing from database.
- Configurable Affixes? HOT 3
- Druid Totem Affixes not recognized HOT 4
- Suggestions HOT 2
- Having trouble getting variable affixes to work correctly HOT 3
- Collaboration HOT 1
- Some affixes missing HOT 2
- Doesn't seem to work anymore HOT 2
- Some affixes are incorrectly detected / displayed. HOT 13
- [Suggestion] Option for Items with 800+ Item Power Only HOT 5
- toggle for overwritting mappings.json HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diablo4companion.