gridhead / gi-loadouts

Loadouts for Genshin Impact
GNU General Public License v3.0
3 stars 2 forks source link

Explore the possibilities of establishing OCR support for convenience #38

Closed gridhead closed 1 week ago

gridhead commented 2 weeks ago

Explore the possibilities of establishing OCR support for convenience

The tesseract training data can be resourced from this MIT licensed repository https://github.com/Andrewthe13th/Inventory_Kamera/tree/master/InventoryKamera/tessdata

DhruvBhirud commented 2 weeks ago

Another possible source for trained model https://github.com/daydreaming666/Amenoma/tree/main/ArtScanner/rcc/models_EN (Keeping in mind repository is archived.)

AvadhootDhere commented 2 weeks ago

https://github.com/D1firehail/AdeptiScanner-GI/tree/master/AdeptiScanner%20GI/ScannerFiles/tessdata

One more source of trained data (Last commit is 3yrs old)

Prithviraj676 commented 2 weeks ago

https://github.com/Timothy-Ji/genshin-reader

https://github.com/xenesty/AkashaScanner/tree/master/AkashaScanner/Resources/tessdata

https://github.com/AwesomenessXP/genshin-scanner

(Don't know if these would help)

gridhead commented 2 weeks ago

Regular expressions need to be used to filter out what makes sense from what does not.

Area

  1. FWOL
    • Flower\s*of\s*Life
  2. PMOD
    • Plume\s*of\s*Death
  3. SDOE
    • Sands\s*of\s*Eon
  4. GBOE
    • Goblet\s*of\s*Eonothem
  5. CCOL
    • Circlet\s*of\s*Logos
gridhead commented 2 weeks ago

Regular expressions need to be used to filter out what makes sense from what does not.

Main stats

  1. Attack flat
    • ATK
  2. Attack percentage
    • ATK
  3. Defense percentage
    • DEF
  4. Health points flat
    • HP
  5. Health points percentage
    • HP
  6. CRIT DMG
    • CRIT\s*DMG
  7. CRIT Rate
    • CRIT\s*Rate
  8. Elemental Mastery
    • Elemental\s*Mastery
  9. Energy Recharge
    • Energy\s*Recharge
  10. Healing Points
    • Healing\s*Points
  11. Cryo DMG Bonus
    • Cryo\s*DMG\s*Bonus
  12. Geo DMG Bonus
    • Geo\s*DMG\s*Bonus
  13. Hydro DMG Bonus
    • Hydro\s*DMG\s*Bonus
  14. Anemo DMG Bonus
    • Anemo\s*DMG\s*Bonus
  15. Electro DMG Bonus
    • Electro\s*DMG\s*Bonus
  16. Physical DMG Bonus
    • Physical\s*DMG\s*Bonus
  17. Electro DMG Bonus
    • Electro\s*DMG\s*Bonus
  18. Dendro DMG Bonus
    • Dendro\s*DMG\s*Bonus
gridhead commented 2 weeks ago

Regular expressions need to be used to filter out what makes sense from what does not.

Sub stats

  1. CRIT DMG
    • CRIT\s*DMG\+[0-9]*\.[0-9]+%
  2. CRIT Rate
    • CRIT\s*Rate\+[0-9]*\.[0-9]+%
  3. Attack percentage
    • ATK\+[0-9]*\.[0-9]+%
  4. Attack flat
    • ATK\+[0-9]+
  5. Defense percentage
    • DEF\+[0-9]*\.[0-9]+%
  6. Defense flat
    • DEF\+[0-9]+
  7. HP percentage
    • HP\+[0-9]*\.[0-9]+%
  8. HP flat
    • HP\+[0-9]+
  9. Elemental Mastery
    • Elemental\s*Mastery\+[0-9]+
  10. Energy Recharge
    • Energy\s+Recharge\+[0-9]*\.[0-9]+%
gridhead commented 1 week ago

Regular expressions need to be used to filter out what makes sense from what does not.

Level

  1. Level
    • \+([0-9]|1[0-9]|20)

Thanks @AvadhootDhere for the suggestion!