Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 为什么Tesseract';s.traineddata文件在heroku中未显示,尽管已成功上载和提取?_Python_Heroku_File Upload_Tesseract_Python Tesseract - Fatal编程技术网

Python 为什么Tesseract';s.traineddata文件在heroku中未显示,尽管已成功上载和提取?

Python 为什么Tesseract';s.traineddata文件在heroku中未显示,尽管已成功上载和提取?,python,heroku,file-upload,tesseract,python-tesseract,Python,Heroku,File Upload,Tesseract,Python Tesseract,我正在尝试通过heroku和Tesseract部署OCR应用程序wgetting.traineddata文件会导致错误,因此我决定将它们压缩到.tar.gz文件中,并将它们上传到自定义的buildpack中,应用程序将从中生成。但是,只有默认的eng.traineddata文件存在,而其他.traineddata文件以某种方式被删除。生成日志显示文件已成功提取。将生成日志粘贴到下面: Counting objects: 1, done. Writing objects: 100% (1/1),

我正在尝试通过heroku和Tesseract部署OCR应用程序
wget
ting
.traineddata
文件会导致错误,因此我决定将它们压缩到
.tar.gz
文件中,并将它们上传到自定义的buildpack中,应用程序将从中生成。但是,只有默认的
eng.traineddata
文件存在,而其他
.traineddata
文件以某种方式被删除。生成日志显示文件已成功提取。将生成日志粘贴到下面:

Counting objects: 1, done.
Writing objects: 100% (1/1), 183 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Python app detected
remote:        Using supported version of Python 3.6 (python-3.6.6)
remote: -----> Installing requirements with pip
remote: 
remote: -----> detect app detected
remote: Unpacking Tesseract-OCR binaries
remote: ./
remote: ./bin/
remote: ./bin/tesseract
remote: ./share/
remote: ./share/tessdata/
remote: ./share/tessdata/eng.traineddata
remote: ./lib/
remote: ./lib/libtesseract.so.4
remote: ./lib/liblept.so.5
remote: ./lib/libpng12.so.0
remote: ./lib/libgif.so.7
remote: Getting Tesseract-OCR training data
remote: eng.traineddata
remote: ben.traineddata
remote: eng training data
remote: ben training data
remote: traineddata files loaded 
remote: ben.traineddata
remote: eng.traineddata
remote: Building runtime environment for Tesseract-OCR
remote: -----> Discovering process types
remote:        Procfile declares types -> web
remote: 
remote: -----> Compressing...
remote:        Done: 73.7M
remote: -----> Launching...
remote:        Released v24
remote:        https://brocr.herokuapp.com/ deployed to Heroku
remote: 
remote: Verifying deploy... done.
To https://git.heroku.com/brocr.git
   c7866b8..961e948  master -> master
以下是
$TESSDATA\u PREFIX
目录中的
ls-as
命令的输出:

~$ ls -as $TESSDATA_PREFIX
total 22928
    4 .      4 ..  22920 eng.traineddata
用于自定义构建包。 我错过什么了吗