Skip to content

potion2/screenocr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screen OCR

Cross-platform (MacOS Windows Linux) screen translation app created with Electron.

Created for personal use.

스크린샷 2023-04-12 오전 2 35 49


'tesseract.js' for OCR.

'ChatGPT' for translation.

It doesn't automatically mark up the area of text.


Installation

git clone https://github.com/potion2/screenocr
cd screenocr
npm install

OCR traineddata

  • Download it in here and move it to project root.

OpenAI API key

  • Obtain OpenAI api-key from OpenAI

  • Register 'OPENAI_API_KEY' env as it is good for security.

    • Windows(not tested on windows)

      advanced system setting -> Advanced -> Environment Variables -> User Variables / New

      SET OPENAI_API_KEY='sk-...'

    • MacOS(zsh terminal)

      $ open ~/.zshrc

      and add

      export OPENAI_API_KEY='sk-...'

    • Or you can use 'api-key' directly in source code if you want

Run

npx electron-forge start

Packaging

npx electron-forge package

About

capture + tesseract(ocr) + translate screen

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors