NESTrisOCR icon indicating copy to clipboard operation
NESTrisOCR copied to clipboard

Is this program support linux?

Open kennyfs opened this issue 4 years ago • 5 comments

I tried it, but it seems to be not working.

kennyfs avatar Apr 05 '20 12:04 kennyfs

@kennychenfs OCR detection should work fine on linux (it's python after all) BUT, there is no window capture method for linux's windowing systems implemented at this moment. Feel free to add one if you'd like.

If you are using an input device from a real NES, you might be able to use the OpenCV capture class.

timotheeg avatar Apr 05 '20 17:04 timotheeg

Are you a programmer? If not then it's probably going to be hard to get this running...

alex-ong avatar Apr 05 '20 21:04 alex-ong

Yes, but I'm not familiar with video process at all.

kennyfs avatar Apr 05 '20 21:04 kennyfs

I'm glad you're a developer kenny! Use OpenCV capture class to get a video stream first.

I believe it's config.ini -> [calibration][capture-method] = OPENCV Then in calibrate.py, choose which device it is (0-> num_devices).

After that, calibrate as per normal; then close it and run main.py. You might want to uncomment some parts of main.py to see if the output is correct.

alex-ong avatar Apr 06 '20 02:04 alex-ong

I've booted it in linux and the main problem is window-name results in 10+ duplicates. E.g. "OBS" will result in 10 windows, and the current implementation picks the first one. This is problematic of course...

alex-ong avatar Jul 02 '20 16:07 alex-ong