Reimplementation & Simplification & Slight improvements on original NESTrisOCR for CTWC Japan Lite.
See also NESTrisSystem-CJL.
assets/: Image files for OCR/GUI.captureWorker.py: A thread capturing a window region and performs OCR.config.py: Saves/loads configurations.main.py: Entry point.main.spec: Configuration for PyInstaller (which makes an .exe executable).mainWindow.py: Automatically generated frompyuic5 -o mainWindow.py mainWindow.ui. Do not edit manually.mainWindow.ui: Qt Designer file of the main window.networkWorker.py: A thread connecting and sending data to NESTrisSystem-CJL Server.win32.py: Win32 helper functions.
- Install Python 3.
- Run
pip3 install numba numpy Pillow pyqt5 pywin32
Run python main.py
Run pyinstaller main.spec, then dist/NESTrisOCR/ is distributable.
- All-in-one GUI for connecting/previewing/setting
- Fixed resolution (512x448) for processing OCR
- More balanced field detection (reads center 2x2 from 4x4 block)
- Added game detection feature
Contributions welcome!
- macOS/Linux support
- Automatic calibration
- Different window capture methods (File, OpenCV, etc.)
- Different packet format
Contributions welcome!
- Automatic color calibration
- Faster capturing/OCR
- Porting to web app (by using
getUserMedia(),getDisplayMedia())
MIT. See LICENSE.