Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't extract anything, or it's encoded wrong #496

Open
vegardsando opened this issue Oct 4, 2017 · 7 comments
Open

Doesn't extract anything, or it's encoded wrong #496

vegardsando opened this issue Oct 4, 2017 · 7 comments
Labels
ocr Bugs or Features relating to OCR and Overlay question

Comments

@vegardsando
Copy link

Either I'm doing something terribly wrong, or something's off. When trying to read the stat of any dino, it doesn't read anything, or it's incorrect. Like my tribe name is read as "!-!>Y|>!-+PY" which is.. what. And the owner is read as ",,,_,".

@cadon
Copy link
Owner

cadon commented Oct 4, 2017

Hi, for letters the recognition sometimes is really bad. Did you make sure you use the correct resolution and your UI is not scaled to another value than 100%?

@cadon cadon added the question label Oct 4, 2017
@vegardsando
Copy link
Author

Ah there you go, it was the scaling. That makes sense, it read values from specific coordinates on the screen. Thank you

@cadon
Copy link
Owner

cadon commented Oct 4, 2017

Yes. You can create an OCR-config-file just for the scaling you're using, it would require adjusting the reading-label-positions and maybe also the font-sizes. Have a look here on how to do it if you're interested: https://github.com/cadon/ARKStatsExtractor/wiki/OCR

@DJQuadRocks
Copy link

I'm trying to make a custom OCR but it's not grabbing the stats after it focuses the ARK window.

My screen resolution is 1980x1080 and my ARK window is 1600x900 windowed, if that helps.

image

@cadon
Copy link
Owner

cadon commented Oct 9, 2017

Hi @DJQuadRocks, what resolution does the screenshot have, 1600x900 or 1920x1080? If you use the "Read Values"-option, the resolution will be the one of windows (probably 1920x1080 for you). Also, the OCR-config for 1920x1080 is already included in with the application, that should work more or less.

@DJQuadRocks
Copy link

The screenshot is what my ARK resolution is - 1600x900. It also was taken after I moved the positions of things like Health, Stamina, etc.

Are you familiar with AutoHotKey? It has some OCR libraries that may help. See https://github.com/camerb/AHKs/blob/master/camerb-OCR-function/OCR.ahk and https://autohotkey.com/board/topic/69127-ocrahk-library-for-recognizing-text-in-images.

@cadon
Copy link
Owner

cadon commented Oct 11, 2017

Hi, the resolution has to be the resolution of windows, i.e. 1920x1080 in your case. If you used the steam-screenshot-function, the resulting screenshots will be in the resolution of the game (i.e. 1600x900 for you). Smart Breeding captures the screenshot in the windows-resolution and has to be calibrated to that. This means, you can simply use the provided OCR-config for 1920x1080.

The reason the windows-resolution is taken is based on the way C# captures screenshots, I haven't found a way to take screenshots in the ingame-resolution yet.

Thanks for the links, I'll have a look at them.

@cadon cadon added the ocr Bugs or Features relating to OCR and Overlay label Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ocr Bugs or Features relating to OCR and Overlay question
Projects
None yet
Development

No branches or pull requests

3 participants