我正在尝试制作一个应该像这样使用的shell脚本:
ocrscript.sh -from /home/kristoffer/test.png -to /home/kristoffer/test.txt
Run Code Online (Sandbox Code Playgroud)
然后该脚本将图像文件转换为文本文件.这是我到目前为止提出的:
#!/bin/bash
export HOME=/home/kristoffer
/usr/local/bin/abbyyocr9 -rl Swedish -if ???fromvalue??? -of ???tovalue??? 2>&1
Run Code Online (Sandbox Code Playgroud)
但我不知道如何获得-from和-to价值观.关于如何做的任何想法?