Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leminhyen2/Visual-Novel-OCR
https://github.com/leminhyen2/Visual-Novel-OCR
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/leminhyen2/Visual-Novel-OCR
- Owner: leminhyen2
- License: gpl-3.0
- Created: 2020-12-03T04:48:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T07:35:36.000Z (over 2 years ago)
- Last Synced: 2024-01-26T09:03:35.082Z (5 months ago)
- Language: JavaScript
- Size: 23.3 MB
- Stars: 64
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-acg - Visual Novel OCR - Japanese optical character recognition for visual novels. [English] (Tools)
README
### THE OFFICIAL DOWNLOAD LINK FOR THE PROGRAM IS ON THE YOUTUBE VIDEO DESCRIPTION (NOT IN THIS GITHUB REPO)
Want to help out?
Need tech-support?
Join our discord at https://discord.com/invite/XFbWSjMHJhDemo Video:
https://www.youtube.com/watch?v=AdLwcU03230For Mac users:git pull
If you want to use this program, navigate to V2.0 branch and follow the instructions down below### Requirements:
- User Interface:
- ElectronJS
- Backend Server:
- Python3
- Nodejs
- Tesseract-OCR 5### Installation:
- Flask server:
- opencv-python
- numpy
- flask
- flask-cors
- mss
- python-dotenv- NodeJS server:
- "npm install"- Tesseract-OCR 5:
- Download from https://digi.bib.uni-mannheim.de/tesseract/?C=M;O=A
- Download best pre-trained models from https://github.com/tesseract-ocr/tessdata_best
- For Japanese language (horizontal and vertical), choose https://github.com/tesseract-ocr/tessdata_best/blob/master/jpn.traineddata and https://github.com/tesseract-ocr/tessdata_best/blob/master/jpn_vert.traineddata
- Drag jpn.traineddata and jpn_vert.traineddata to Tesseract-OCR/tessdata
- Go to backendServer/node-tesseract-ocr.js and update Tesseract-OCR's directory
- For Window environment, I would the whole folder inside backendServer/### Activation (same for MacOS):
- One terminal for User Interface:
```
cd Visual-Novel-OCR/userInterface
npm start
```- One terminal for NodeJS server:
```
cd Visual-Novel-OCR/backendServer
node server.js
```- One terminal for Python Flask server:
```
cd Visual-Novel-OCR/backendServer
python3 -m flask run
```Note: Window developers can click on Visual Novel OCR.bat to open all three commands at the same time
### Build:
- User Interface:
- "npm package"### INSTALLATION FOR MACOS (CREDIT TO @pakoito FOR THE INITIAL GUIDE):
- Tesseract-OCR (may need some adjustment on your side):
- For Japanese language (horizontal and vertical), choose https://github.com/tesseract-ocr/tessdata_best/blob/master/jpn.traineddata and https://github.com/tesseract-ocr/tessdata_best/blob/master/jpn_vert.traineddata```
brew install tesseract
cp ~/Downloads/jpn.traineddata /usr/local/Cellar/tesseract/4.1.1/share/tessdata/jpn.traineddata
cp ~/Downloads/jpn_vert.traineddata /usr/local/Cellar/tesseract/4.1.1/share/tessdata/jpn_vert.traineddata
``````
git clone https://github.com/leminhyen2/Visual-Novel-OCR.git
```
- One terminal for User Interface:
```
cd Visual-Novel-OCR/userInterface
npm install
npm start
```- One terminal for NodeJS server (install packages and change Tesseract directory):
```
cd Visual-Novel-OCR/backendServer
vi node-tesseract-ocr.js
# - const binary = "Tesseract-OCR\\tesseract.exe"
# + const binary = "/usr/local/Cellar/tesseract/4.1.1/bin/tesseract"
npm install
node server.js
```- One terminal for Python Flask server:
```
cd Visual-Novel-OCR/backendServer
pip3 install opencv-python numpy flask flask-cors mss python-dotenv
python3 -m flask run
```- Note: you can automate all these by writing a shell script