Folgen Sie dem Video unten, um zu sehen, wie Sie unsere Website als Icon auf Ihrem Homescreen erstellen.
Anmerkung: This feature may not be available in some browsers.
neue version - chatty switch - trash switch - standard/pro app switch - check auf gültige dateitypen - ersetzt code in #21.
Code:#!/bin/bash #set -vux # # (c) Olivetti 2016 # ...
#!/bin/bash
# https://kapeli.com/cheat_sheets/Bash_Test_Operators.docset/Contents/Resources/Documents/index
# https://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash
[[ ! -f "${1}" ]] && exit 1
fullpath="${1}"
filename="${fullpath##*/}"
dir="${fullpath:0:${#fullpath} - ${#filename}}"
base="${filename%.*}"
ext="${filename##*.}"
#echo "Directory:" $dir
#echo "File:" $filename
#echo "File without extension:" $base
#echo "Extension:" $ext
/usr/local/bin/convert "${fullpath}" -resize 400% -type Grayscale "${dir}/${base}.tif"
/usr/local/bin/tesseract -l deu "${dir}/${base}.tif" "${dir}/${base}_OCR"
rm "${dir}/${base}.tif"