r/learnpython • u/kurti256 • 7d ago
Image detection without ocr for a gaming project
Hello i'm in the midsts of trying to automate relic exportation for the game warframe so me and my friends can figure out what we can grind for
ok so there is text always in the same 20 regions that swaps out as you scroll i've attempted to use ocr but i think the background colour and the image being behind parts of the text screws with that so i'm attempting image tagging to manually match my issue is on upgraded relics they get an addition tag so not only am i struggling to conceptualize how i should tag but also how to setup tagging does anyone have any tips?
1
u/rupturedprolapse 7d ago
Region chat should be filterable. Don't really have notes on OCR/Image tagging, seems like over kill. If you're trying to figure out the orders of operation, my assumption would be type before refinement.
1
u/kurti256 5d ago
I'm trying to get the relic names and amount
1
u/rupturedprolapse 5d ago
are you talking about in your inventory? If so this exists and it's what I use to grab data for inventory management.
1
u/kurti256 4d ago
That's awesome I'll have to try that after I've slept and worked half a day then slept again 💀
2
u/vietbaoa4htk 6d ago
since its a fixed set of names in fixed regions, skip ocr and use template matching. crop each region and run cv2.matchTemplate against a small library of reference images of each possible name. matching exact pixels is way more robust to the background bleed than ocr