will7200 / Yugioh-bot

Bot for Yugioh Duel Links via Nox and Steam
MIT License
58 stars 9 forks source link

It stops before entering a duel, tmp\\ocr.txt missing? #40

Closed faber5594 closed 6 years ago

faber5594 commented 6 years ago

here the scan immagine

will7200 commented 6 years ago

Did you run the install.py script. It will download tesseract for you and also tell you where to download the tesseract program, that or you don't' have a folder named tmp.

faber5594 commented 6 years ago

@will7200 Yes I downladed Tesseract and I have the folder tmp, is it maybe a problem of where I have the folder bot, should I update this string with my path User/bot/.../tmp? immagine

faber5594 commented 6 years ago

@will7200 wait should it be "tmp\ocr.txt" or "tmp\ocr.png"? cause in the tmp folder I just have a picture

will7200 commented 6 years ago

@faber5594 there should be a ocr.png that needs to translate from image to txt. You are missing the tmp\ocr.txt. Look at #21 for reference as they had the same issue. Can you try running the command down below and give me the output?

bin\tess\tesseract.exe --tessdata-dir bin\tess\tessdata tmp\ocr.png tmp\ocr -c tessedit_char_whitelist=ABCDEFGHIJKLMNOPQRSTUVWXYZ -psm 7> nul 2>&1
faber5594 commented 6 years ago

@will7200 should I run it from the shell right? If so this is the result bash: bintesstesseract.exe: command not found

will7200 commented 6 years ago

@faber5594 tesseract wasn't installed properly you should be able to find the tesseract exe in the folder bin\tess\ directory

will7200 commented 6 years ago

Resolved in #41 per @faber5594