Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
/ socr-cli Public archive

searchable auto generated screenshot ocr database

Notifications You must be signed in to change notification settings

sentriz/socr-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

socr

screenshot OCR tool, allows you to keep a searchable database of your screenshots and their contained text

Usage: socr [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  add     add a single screenshot to the database
  build   build db from the directory (run once)
  search  search for a screenshot given text

requirements

setup

  • install above requirements
  • pip3 install --user git+https://github.com/sentriz/socr.git
  • edit ~/.config/socr/config.py (see example config)
  • socr build (run once per install) looks at all your screenshots, extracts the text, embeds the text, and builds the database
  • add socr add <path to screenshot> to your screenshoting tool

example usage

  • socr search <text> to see matching files
  • feh $(socr search <text>) with, for example, feh to view all matching screenshots
  • rm $(socr search <secret>) to delete screenshots with matching text (say you captured your password accidentally)

example config

# ~/.config/socr/config.py

SCREENSHOT_DIR="~/pictures/screenshots"
SCREENSHOT_EXT="png"

About

searchable auto generated screenshot ocr database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages