Experimental tool, capturing screenshots of Market window and saving results to different outputs.
Python 3 and Tesseract are required.
You need to install Tesseract and setup the path in snap.py.
https://github.com/UB-Mannheim/tesseract/wiki
Currently coordinates to look for items are hardcoded, therefore will probably work for a very specific resolution. Working on self-calibration, so the coordinates could be pointed by the user.
Tested on 2560x1440.
21:9 might work with changes in snap/__init__.py
self._row_height = 57
self._items_location = {'x': 340, 'y': 275 + 110, 'width': 300, 'height': self._row_height}
self._prices_location = {'x': 645, 'y': 275 + 110, 'width': 150, 'height': self._row_height}
Market window needs to be moved to the top-left corner.
- Run snap.py, you'll hear a beep. Alt-tab to the game.
- Make a search.
- Toggle Scroll-Lock to capture results.
- The script will try to recognize items (OCR) and will beep for each item found.
- High beep means, an item has been recognized. Low beep means that item has not been recognized.
- Repeat step 2-3.
- Toggle Num-Lock to terminate the script.
Results will be saved to snap.csv file and SQLite snap.db
Tables: items, prices
View: prices_history_v