Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fkgruber/org-ocr-drawer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

org-ocr-drawer

org-ocr-drawer 🧠📸

An Emacs minor feature that automatically inserts OCR (text recognition) output under images inserted via org-download, using Tesseract OCR. The OCR text is stored in a folded :ocr: drawer directly below the image link, making it searchable but unobtrusive.

Personally, I use this when taking org-roam notes so that screenshots are searchable.

Features

  • 🖼️ Automatically runs Tesseract OCR on images inserted via `org-download-clipboard`
  • 📦 Inserts OCR text in an Org :ocr: drawer
  • 🔍 OCR text is indexed by isearch and other Org search tools
  • 🧹 The drawer is folded automatically to keep your buffer clean

Requirements

  • Emacs 27.1+
  • org-download package
  • Tesseract OCR installed and available on your PATH

Installation

From MELPA (when available)

Once submitted and accepted to MELPA:

(use-package org-ocr-drawer
  :ensure t
  :config
  (org-ocr-drawer-enable))

Manual

  1. Clone this repository:
    git clone https://github.com/fkgruber/org-ocr-drawer
        
  1. Add the directory to your load-path:
    (add-to-list 'load-path "/path/to/org-ocr-drawer")
    (require 'org-ocr-drawer)
    (org-ocr-drawer-enable)
        

Usage

  1. Ensure Tesseract is installed (e.g. brew install tesseract on macOS).
  2. In an Org buffer, run M-x org-download-clipboard to paste an image.
  3. A drawer like this will be inserted:
    [[file:screenshot.png]]
    
    :ocr:
    Recognized text from the image...
    :end:
        
  4. The :ocr: drawer will be folded automatically.

Customization

You can disable the OCR feature at any time with:

(org-ocr-drawer-disable)

License

This project is licensed under the MIT License.

Author

Fred Gruber email {at} fredgruber {dot} org

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published