leminhyen2 / Visual-Novel-OCR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/XFbWSjMHJh

Demo Video: https://www.youtube.com/watch?v=AdLwcU03230

For 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:

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):

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

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 99.8%Language:HTML 0.1%Language:Python 0.0%Language:CSS 0.0%Language:Batchfile 0.0%Language:Shell 0.0%