私はUbuntu 15.04のdebファイルからpython-tesseract 0.9-0.5をインストールしようとしていますが、いくつかのエラーがあります。 これは私が何をすべきかです:UbuntuでのPython-tesseractのインストール
1 - 私は、端末上のファイルのパスを開き、この後
sudo dpkg -i python-tesseract_0.9-0.5ubuntu2_i386.deb
2-書き、コンソールにはいくつかのエラーを示しています
Selecting previously unselected package python-tesseract.
(Reading database ... 349994 files and directories currently installed.)
Preparing to unpack python-tesseract_0.9-0.5ubuntu2_i386.deb ...
Unpacking python-tesseract (0.9-0.5ubuntu2) ...
dpkg: dependency problems prevent configuration of python-tesseract:
python-tesseract depends on python (<< 2.8).
python-tesseract depends on python (>= 2.7~).
python-tesseract depends on liblept4.
python-tesseract depends on libopencv-core2.4; however:
Package libopencv-core2.4:i386 is not installed.
python-tesseract depends on libtesseract3; however:
dpkg: error processing package python-tesseract (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-tesseract
3 - 確認のために、私はインストールファイルを開き、tesseract.pyクラスを抽出し、Pythonで単独で使用しました。 私はそれをこのように開いた:
python tesseract.py
を、私はこれを得た:
Traceback (most recent call last):
File "tesseract.py", line 28, in <module>
_tesseract = swig_import_helper()
File "tesseract.py", line 20, in swig_import_helper
import _tesseract
ImportError: No module named _tesseract
事は、私は光学式文字認識アプリケーションのためのpythonでたTesseractの機能を使用したい、と私は理解しているということです
このための最良のラッパーはpython-tesseractです(pytesseractと同じではありません)。
私の質問は:私はUbuntu 15.04でpython-tesseractをインストールするにはどうすればいいですか?おかげで、私はたTesseractを使用するのpythonを取得しようとしていた多くの
私は試しましたが、私は得ました: sudo gdebi python-tesseract_0.9-0.5ubuntu2_i386.deb gdebiエラー、ファイルが見つかりません:python-tesseract_0.9-0.5ubuntu2_i386.deb –