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

OCR not recognized on linux #1002

Open
RileyMShea opened this issue May 6, 2023 · 6 comments
Open

OCR not recognized on linux #1002

RileyMShea opened this issue May 6, 2023 · 6 comments

Comments

@RileyMShea
Copy link

App version: Awakened-PoE-Trade-3.21.10001.AppImage
OCR files: https://github.com/SnosMe/awakened-poe-trade/releases/download/v3.20.10007/cv-ocr.zip

I've followed the instructions on the OCR page and extracted the files to the config folder that Awakened opened from the taskbar:

.config/awakened-poe-trade/apt-data 
❯ tree -aL 2
.
├── config.json
├── cv-ocr
│   ├── eng.traineddata
│   ├── heist-lock.bmp
│   ├── opencv.js
│   ├── opencv_js.wasm
│   ├── rus.traineddata
│   ├── tesseract-core-simd.js
│   └── tesseract-core-simd.wasm
└── logs.txt

1 directory, 9 files

What happens

I get no OCR option in the GUI when awakened is relaunched.

image

image

What I expect to happen

I expect a magnifying glass next to the cogwheel as shown in the OCR instructions.

@RileyMShea
Copy link
Author

RileyMShea commented May 6, 2023

I have gotten it working by deleting the apt-data folder and adding the OCR files again. I assume some latent configuration was a holdover from a previous version I had installed.

I thought the I had it working but the issue remains. OCR feature is not available.

@RileyMShea RileyMShea reopened this May 6, 2023
@SnosMe
Copy link
Owner

SnosMe commented May 6, 2023

Taking screenshots for OCR is only implemented for Windows.

Code for reference to add:
https://github.com/octalmage/robotjs/blob/8ae87a91f06f49559f0db387bc2bd1ea01419880/src/screengrab.c#L58-L83

@RileyMShea
Copy link
Author

Code for reference to add:
https://github.com/octalmage/robotjs/blob/8ae87a91f06f49559f0db387bc2bd1ea01419880/src/screengrab.c#L58-L83

Both platforms appear to return MMBitmapRefs. Is it possible it just works if the win32 checks are removed from the awakened codebase?

I ran the example from octalmage/robotjs#13 (comment) on my linux machine and it seems to work fine.
image

@SnosMe
Copy link
Owner

SnosMe commented May 6, 2023

I said "for reference to add" because I use my own library
https://github.com/SnosMe/electron-overlay-window/

@yhcao6
Copy link

yhcao6 commented May 20, 2023

@RileyMShea Does it works on Linux now?

@Turmfalke2
Copy link

hi,
Just ran into this issue. It's never mentioned in the guide that the OCR setup doesn't work on Linux unlike the rest of awakened poe trade.

I have had a look at your electron overlay window library to see whether I could write the missing code, but I can't make sense of your codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants