1 Star 5 Fork 1

cubone/learnopencv

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ocr_simple.sh 747 Bytes
一键复制 编辑 原始数据 按行查看 历史
Satya Mallick 提交于 7年前 . OCR
# Usage sh ocr_simple.sh image.jpg
# '${1}' passes image.jpg as an input
# 'stdout' ensures that result is printed on terminal
# If some other name is specified say output, tesseract
# will write result in file named output.txt
# '-l eng' for using the English language
# '--oem 1' sets the OCR Engine Mode to LSTM only
# '--psm 3' sets the Page Segmentation Mode (psm) to auto
# There are four OCR Engine Mode (oem) available
# 0 Legacy engine only.
# 1 Neural nets LSTM engine only.
# 2 Legacy + LSTM engines.
# 3 Default, based on what is available.
#
# '--psm 3' sets the Page Segmentation Mode (psm) to auto.
# Other important psm modes will be discussed in a future post.
tesseract ${1} stdout -l eng --oem 1 --psm 3
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cubone/learnopencv.git
git@gitee.com:cubone/learnopencv.git
cubone
learnopencv
learnopencv
master

搜索帮助