the last days i tried something: i wanted to program a tool that analyses screenshots of items that are forged. a kind of OCR (optical character recognition). never did that before and i was curious if/how it could be done.
therefore i used the free software Octave (download and infos: https://www.gnu.org/software/octave/ ). it works well for me - it recognises owner, quality, perks and values, of screenshots ( designed for screenshots i get from an apple ipad air 2 of resolution 1536x2048 px and actual OR version 4.2.0 ) placed in a given folder, makes a reduced snapshot-image with identified values of the analysed regions and also an excel-worksheet. here some screenshots from a result.
here a screenshot of the short description inside the main file “run_OR_itemForgeOCR.m” and what it looks like when/after running the tool (=this file):
i dont want to keep this on my own, so i added all files that are needed to work in the attached zip file. (see actual version below)
you need to:
- install octave
- unzip the files in a folder of your choice (e.g. you get “<your_path>\OR_itemForgeOCR” with the listened files and 2 subfolders (see above) inside
- run octave and change to that folder
- type “run_OR_itemForgeOCR” into the command window
- if the tool works with the given screenshot (“IMG_5721_mask.PNG” inside subfolder “screenshots”) you can try to analyse your own. but remember that they have to be of the described resolution and i do not give any warranty that it will work or the values are detected correctly.
i hope it works for you guys.
actual version: v1.1 : OR_itemForgeOCR_v1_1.zip
EDIT: 2019/03/03 … v1.0: even if i tested it with 50 screens i did some more now and (ofc) some troubles have occoured: e.g. problem detecting the lower line, the area of identifing the right perks was too small from the left (so problems detecting an eight on those occur), and i forgot the movement speed perk… (omg).
tested on another 153 screenshots, made some changes, more stable now on detection. -> removed v1.0 and released v 1.1:
% v1.1 ... seek for tag "v1.1" % ... 2019/03/03 ... improoved L1-detection and bigger L1 height (maybe just fix them...) % ... 2019/03/03 ... problem of detecting first 8 ud rigth perks -\> area to small!! -\> increased % ... 2019/03/03 ... forgot speed perk, added % ... 2019/03/03 ... added more damping and threshold for NoS detection % ... 2019/03/03 ... my\_simple\_OCR: added overall min threshold for OCR analysis (prevent "ghost 1") and shift area to be analysed 1 to left (want a 0 column 1st) and reduced width 20-\>19; reduced dot shading area 1px added possibility of show selections % ... 2019/03/03 ... remember: unicates do not have stars, -\> they produce error