Skip to content

Instantly share code, notes, and snippets.

View rok-git's full-sized avatar

rok rok-git

View GitHub Profile
@rok-git
rok-git / ocr.sh
Last active June 29, 2023 12:12 — forked from doraTeX/ocr.sh
A shell script to perform OCR on images/PDFs using macOS built-in OCR engine
#!/bin/bash
SCRIPTNAME=$(basename "$0")
function realpath () {
f=$@;
if [ -d "$f" ]; then
base="";
dir="$f";
else
base="/$(basename "$f")";