Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/desteves/screentext
An easy way to extract text from screenshots via OCR.
https://github.com/desteves/screentext
Last synced: 9 days ago
JSON representation
An easy way to extract text from screenshots via OCR.
- Host: GitHub
- URL: https://github.com/desteves/screentext
- Owner: desteves
- Created: 2017-02-17T19:38:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-26T02:26:15.000Z (about 3 years ago)
- Last Synced: 2023-08-13T14:53:48.745Z (over 1 year ago)
- Language: AppleScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# screentext
An easy way to extract text from screenshots via OCR.Every time you take a screenshot, it gets send to an OCR and the parsed results are saved as ORIGINAL_FILENAME.json in the same directory
## Reqs
- OCR API Key. Get yours at http://www.ocrwebservice.com/account/signup
- jq. `brew install jq` or see https://stedolan.github.io/jq/download/ if on a different OS.If using the applescript, then:
- Mac
- Internet access when taking the screenshotNote: I'm running the shell script via applescript folder actions but it can also be set up via a cron job, run it in terminal, or whatever works for ya ;)
## Install
- Edit "Image - Convert to Text.scpt" to point to your shell script location! (Line 11)
- Copy "Image - Convert to Text.scpt" to "/Library/Scripts/Folder Action Scripts"
- Find the directory where your screenshots are saved and add the apple script folder action.
- Create a file named `env-vars` in the same directory as the shell script. It contains your OCR_API_KEY var as `export OCR_API_KEY=YourAPIKeyGoesHere`## Todo
- Investigate other third party OCRs as the current OCR call doesn't seem to be as accurate..
- Make more generic and update the applescript