Skip to content

Instantly share code, notes, and snippets.

@joepreludian
Created May 28, 2020 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joepreludian/8496f20401e421881ed6bf3435b227cd to your computer and use it in GitHub Desktop.
Save joepreludian/8496f20401e421881ed6bf3435b227cd to your computer and use it in GitHub Desktop.
OCR Development
#!/bin/bash
which podman 2> /dev/null
if [ $? -eq 0 ]; then
CONTAINER_APP="podman";
else
CONTAINER_APP="docker";
fi
echo "Running tool =)";
$CONTAINER_APP run --rm -u $(id -u):$(id -u) -it -v `pwd`/captures:/app/captures -v `pwd`/releases:/app/releases -v `pwd`/output:/app/output joepreludian/photo_ocr_helper;
echo "Command executed. Hit enter to finish";
read CMD;
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment