Skip to content

dmzlingyin/LOCR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fx preview

Introduction

English | 简体中文

LOCR(Lightweight OCR) is a tool that can detect the image and extract the text automatically when the clipboard changed.

Features

  • Cross platform supports: macOS, Linux (X11), and Windows.
  • Chinese and English support(feel free to add your language).

Dependency

Installation

git clone https://github.com/dmzlingyin/LOCR.git
cd LOCR
go build
./install.sh

then you can type locr on you terminal to use it.

Examples

If you use locr normaly, just run it. If you just want to extract text from an image, see follow:

cat xxx.jpg | locr -f

# save to file
cat xxx.jpg | locr -f > text.txt

TODO

  • hotkey
  • offline version

Releases

No releases published

Packages

No packages published