Skip to content

Latest commit

 

History

History
68 lines (30 loc) · 1.23 KB

File metadata and controls

68 lines (30 loc) · 1.23 KB

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