Skip to content

Instantly share code, notes, and snippets.

View object-kazu's full-sized avatar

kazuyuki shimizu object-kazu

View GitHub Profile
@doraTeX
doraTeX / ocr.sh
Last active October 31, 2024 11:08
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")";