Skip to content

notion-ocr

Command-line tool that adds searchable OCR text beneath images in Notion pages

Permissive (OSI) · BSD-3-Clause

Listed by , founder & editor

25

Health

Dormant

Overview

Stars

148

Last commit

6 years ago

Sep 2020

Repository age

7 years

since Nov 2019

Latest version

0.1.5

Nov 2019

Contributors

–

Releases

0

last 12 months

Language

Haskell

notion-ocr is a command-line tool written in Haskell that makes text inside Notion images searchable. You type add_ocr on the line directly below an image. On its next run, the tool reads the image with Tesseract and replaces that line with the recognized text.

You need Tesseract installed and working in your terminal. You also supply your Notion token_v2 cookie value. You can run the tool once, or use the -s option to scan every given number of minutes. Builds are available for macOS, through Homebrew or a zip, and for x86_64 Linux as a zip.

The project is unmaintained, and the last release is 0.1.5. Known limits: handwriting does not work, small images can give poor results, and English is the only language confirmed to work. It fills a gap in Notion's own search for image text.

Who it's for

Notion users who store screenshots and scanned notes

It turns text in images into searchable page text.

Skip if: You need a supported tool, since this one is unmaintained.

Developers comfortable with Tesseract and CLI tools

Setup is a Tesseract install plus one binary and a token.

Skip if: You do not want to handle a session cookie token.

The problem it solves

Notion did not search the text inside images, so screenshots and scans were invisible to search. This tool extracts that text and writes it under the image.

Strengths

  • Uses Tesseract for the text recognition
  • Can run once or rescan every few minutes
  • Prebuilt binaries for macOS and x86_64 Linux
  • Licensed BSD-3-Clause

Trade-offs

  • Unmaintained; last commit in 2020
  • No handwriting support
  • Small images can give poor results
  • Needs your Notion token_v2 cookie value

Self-host notion-ocr

Self-hostable
No (desktop or local app)

Quick start

brew install yannick-cw/homebrew-tap/notion-ocr

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is it free?

Yes. It is open source under the BSD-3-Clause license.

What does it need to run?

Tesseract must be installed and callable from the terminal. You also need your Notion token_v2.

Does it work with languages other than English?

English is the one confirmed to work. You may need the Tesseract English language pack.

Is it still maintained?

No. It is marked unmaintained and the last release is 0.1.5.

Similar tools in OCR and text recognition

paddleocr-local

OCR and text recognition

Local document workbench that turns PDFs, images and Office files into editable Markdown

142 33 23 days ago Slowing Apache-2.0

OCR (Tesseract)

OCR and text recognition

Android OCR service that other apps call through Intents, using Tesseract or ML Kit

86 17 2 years ago Dormant Apache-2.0

FPInk

OCR and text recognition

Offline Android app that turns fountain-pen notes into searchable text with ink colors

7 29 days ago Slowing GPL-3.0

Glyfen

OCR and text recognition

5 5 months ago Slowing MIT

OCRFeeder

OCR and text recognition

GPL-3.0+