ScreenshotOCR is a Python project that extracts text from images captured from the clipboard and processes them using ChatGPT API. It supports both regular and translated text extraction.
Openai API key is required
- Capture images directly from the clipboard.
- Auto-translate functionality using prompts defined in
prompt.json.
- Create conda environment and install required dependencies:
conda create -n sOCR python==3.9conda activate sOCRpip install -r requirements.txt - Run
python main.py - Configure your API key and other settings using the UI.
- Use Windows snipping tool (win+shift+s) to clip an image.
- Use the defined hotkey (ctrl+alt+x) to trigger OCR process
- The extracted (and optionally translated) text will be copied to the clipboard.
- Modify
prompt.jsonto adjust the prompts for translation and output.