Skip to content

Commit

Permalink
Fix wrong call
Browse files Browse the repository at this point in the history
Signed-off-by: Christos Sidiropoulos <[email protected]>
  • Loading branch information
csidirop committed Dec 20, 2023
1 parent 6aa75d2 commit f0ec636
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ done
# Parse URL or Path and run tesseract:
regex='(https?|ftp|file)://[-[:alnum:]\+&@#/%?=~_|!:,.;]*[-[:alnum:]\+&@#/%=~_|]' #Regex for URL validation ( https://stackoverflow.com/a/3184819 )
if [[ (${imagePath} =~ $regex) || (-f ${imagePath}) ]] ; then # If imagePath is a valid URL or a local file
echo "Running OCR: tesseract $imagePath $outputPath -l alto"
echo "Running OCR: tesseract $imagePath $outputPath alto"

tesseract $imagePath $outputPath -l alto
tesseract $imagePath $outputPath alto

exit 0
else
Expand Down

0 comments on commit f0ec636

Please sign in to comment.