Skip to content

esplo/eagle_ocr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eagle OCR script

Add OCR text to Notes... attributes of images in Eagle.

Disclaimer

USE AT YOUR OWN RISK! TAKE BACKUP OF LIBRARY BEFORE USE!

Features

Wikipedia_logo

Image by Wikipedia

  • Write OCR text into Note attributes, which is easy to search
  • Skip writing OCR text if Note already exists
  • OCR is provided by Cloud Vision API, which supports many languages

Prerequisites

  • Google Cloud Platform (GCP) credential for calling Cloud Vision API
  • node (pnpm is preffered)

Usage

Set up GCP credential, then type

pnpm install
pnpm run ocr <Images.library path>

Then, Force Realod Library in Eagle. You can search images with OCR result.

Considerations

  • Approximately $1.5 per 1,000 images. If you want to filter some images out, modify code.
  • Currently, there is no special deal with break lines. Removing BRs has pros/cons, so this topic is debatable.

About

Add OCR text to Eagle app.

Resources

License

Stars

Watchers

Forks