OwlOCR 5 command line interface (CLI)

Cover Image for OwlOCR 5 command line interface (CLI)
Head Owl
Head Owl
OwlOCR in its previous iterations has supported multiple different ways of interfacing with it: a windowed application, a menubar app and Finder extensions.
In OwlOCR 5, a brand new command line interface (CLI) is provided. CLIs are very powerful for integration as you can call them from practically anywhere.
How to use
Start the app through the terminal by calling the executable inside the app bundle from the terminal:
/Applications/OwlOCR.app/Contents/MacOS/OwlOCR --cli
OwlOCR CLI can be used for many different workflows where at the core is optical character recognition. The application run consists of the following steps.
  1. Define the input (options are --screenshot, or --input [filename]).
    If screenshot is selected you need the select the region of your screen with your mouse that you wish to use. Please note the required screen recording permissions for the app that opens OwlOCR (e.g. terminal, iTerm, Hazel).
  2. Define the output.
    By default the plain text is output to stdout. To silence stdout, use --silent.
  3. Define output export.
    If you wish to output a searchable PDF file, you can define --output [filename].
  4. Other options that can be used are
     --show-dock : shows the OwlOCR app icon in dock for the duration of the run
     --silence-notifications : silence OwlOCR notifications for the duration of the run
     --force : create the output file even if one exists already, overwriting the old file
Example 1, capture area of screen and get text to stdout:
/Applications/OwlOCR.app/Contents/MacOS/OwlOCR --cli --screenshot
Example 2, convert image to searchable PDF:
/Applications/OwlOCR.app/Contents/MacOS/OwlOCR --cli --input myinputimage.jpg --output mysearhablepdffile.pdf --silent

-------
OwlOCR 5 is now released and can be downloaded from the Mac App Store.

More Stories

Cover Image for M2 Max proves stunningly fast in text recognition benchmark test

M2 Max proves stunningly fast in text recognition benchmark test

M2 Max ran full text recognition on 198 pages in just 13 seconds, Intel MBP taking over 7x longer!

Head Owl
Head Owl
Cover Image for How to create searchable PDFs from photos, images and PDF files in MacOS Finder

How to create searchable PDFs from photos, images and PDF files in MacOS Finder

OwlOCR has provided the tools to do this before, but with version 4.5 we are for the first time including Finder Extensions, a way to do the steps above quickly and easily, right from the Finder.

Head Owl
Head Owl
Cover Image for OwlOCR v4.5, birthday edition 🎂🎉, released!

OwlOCR v4.5, birthday edition 🎂🎉, released!

For the first time OwlOCR actions can be used directly from the Finder. Create searchable PDFs, extract text from files to clipboard or plain text files - with only a couple clicks needed in Finder.

Head Owl
Head Owl
Cover Image for Changing line spacing to correctly run OCR text recognition on double spaced documents on the Mac

Changing line spacing to correctly run OCR text recognition on double spaced documents on the Mac

Linespacing can vary a between sources and lead unnecessary line breaks in the results. By syncing the line spacing between the app settings and source document, the results can be improved.

Head Owl
Head Owl
Cover Image for Using post processing to improve OCR text recognition results

Using post processing to improve OCR text recognition results

While in general the OCR engines do a pretty good job these days, none of them are unfortunately perfect. There's always a case where some word or character gets continuously incorrectly detected and one has to go back to fix it.

Head Owl
Head Owl
Cover Image for How to run OCR text recognition on an image on the Mac?

How to run OCR text recognition on an image on the Mac?

Running text recognition on images is a handy way to grab the text information from them. OwlOCR support images from clipboard, display or files.

Head Owl
Head Owl
Cover Image for How can I use OCR to capture text from the Mac screen?

How can I use OCR to capture text from the Mac screen?

Optical Character Recognition (OCR) can be used to capture text off the Mac screen. The processing can done right on your Mac for near instantaneous results, while ensuring privacy.

Head Owl
Head Owl
Cover Image for OwlOCR v4.4 released!

OwlOCR v4.4 released!

Another feature-packed release; post-processing, custom dictionary, more customization.

Head Owl
Head Owl
Cover Image for OwlOCR v4.3 released!

OwlOCR v4.3 released!

First feature release of 2021; wrapping, line spacing and multiple languages!

Head Owl
Head Owl
Cover Image for How I turned lockdown into a side project and why you should too

How I turned lockdown into a side project and why you should too

Death. Disease. Unemployment. Missed games and events. Disneyland closed. Weddings canceled. All bad? No!👇🏼

Head Owl
Head Owl