Skip to content

Instantly share code, notes, and snippets.

View shuntaroy's full-sized avatar

Shuntaro Yada shuntaroy

View GitHub Profile
@doraTeX
doraTeX / ocr.sh
Last active April 19, 2024 13:04
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")";