Command line 仅解决数字验证码

Command line 仅解决数字验证码,command-line,ocr,captcha,tesseract,digits,Command Line,Ocr,Captcha,Tesseract,Digits,有一个验证码,我正试图解决,我知道它总是数字。 当我尝试使用命令tesseract cap.png cap时,它返回空页面 当我尝试使用命令tesseract cap.png cap-psm 6位和&cat cap.txt时,它返回: [root@usa1 ~]# tesseract cap.png cap -psm 7 digits && cat cap.txt Tesseract Open Source OCR Engine v3.05.00dev with Leptonic

有一个验证码,我正试图解决,我知道它总是数字。 当我尝试使用命令
tesseract cap.png cap
时,它返回空页面

当我尝试使用命令
tesseract cap.png cap-psm 6位和&cat cap.txt
时,它返回:

[root@usa1 ~]# tesseract cap.png cap -psm 7 digits && cat cap.txt
Tesseract Open Source OCR Engine v3.05.00dev with Leptonica
Info in pixReadStreamPng: converting (cmap + alpha) ==> RGBA
Info in pixReadStreamPng: converting 8 bpp cmap with alpha ==> RGBA
41-1-8 5
而且:

[root@usa1 ~]# tesseract cap.png cap -psm 7 digits && cat cap.txt
Tesseract Open Source OCR Engine v3.05.00dev with Leptonica
Info in pixReadStreamPng: converting (cmap + alpha) ==> RGBA
Info in pixReadStreamPng: converting 8 bpp cmap with alpha ==> RGBA
7 5 
验证码示例为:

主要目标是获得准确的结果,而且我注意到运行同一命令两次不会对结果产生任何影响,因此我无法运行它(例如3次)并比较不同的结果,对吗? 至于空页错误,我想我需要提高png文件的质量,我错了吗