Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

On-screen OCR with correction support

License

NotificationsYou must be signed in to change notification settings

tsudoko/sumi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sumi is a simple OCR application with support for corrections.

Screenshots

Requirements

  • Go
  • GTK+ 3.16 or later
  • Tesseract 3.04.00 or later
  • Trained data for your language
  • One of the following:

If none of the screenshot utilities above are available on your system, you canuse theSUMI_SCREENCAPTURE environment variable to provide your own. Theutility is expected to select a part of the screen and write to the file pathspecified in the last argument, e.g. forscrot the validSUMI_SCREENCAPTUREvalue would bescrot -s.

How to install

  1. Download and install all dependencies from the list above
  2. go get github.com/tsudoko/sumi

Selecting a language

To use a language other than Japanese (or more than one language at once), passthe ISO 639-3 code of the desired language in a-l flag, i.e.sumi -l eng.Please note though thatsumi was designed to work specifically with Japanese,therefore it might give worse results when used with other languages.

Using external software withsumi

Sumi prints scanned text tostdout. It's possible to send it to otherprograms automatically, examples below.

Auto copy to clipboard

X11, requiresxclip.

./sumi | while read -r a; do echo "$a" | xclip -i -sel clip; done

Windows, requires ash-compatible shell andiconv. You have to replace$cpwith your locale's codepage, for Japanese it'scp932.

./sumi.exe | while read -r a; do echo "$a" | iconv -t $cp | clip; done

Auto dictionary lookup

Withep:

./sumi | xargs -n1 ep

Withmyougiden:

./sumi | xargs -n1 myougiden

Similar software

About

On-screen OCR with correction support

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp