Changes

Jump to navigation Jump to search
tesseract issue (prod is using v2, debian 7 installs v3)
Line 142: Line 142:  
root@ns431999:/home/off/logs# perl -MMongoDB -e 'print $MongoDB::VERSION . "\n"'
 
root@ns431999:/home/off/logs# perl -MMongoDB -e 'print $MongoDB::VERSION . "\n"'
 
v0.707.2.0
 
v0.707.2.0
 +
</pre>
 +
 +
 +
=== Tesseract OCR / segmentation fault ===
 +
 +
<pre>
 +
sh : ligne 1 : 18042 Erreur de segmentation  /usr/bin/tesseract /home/off/html/images/products/324/541/299/9925/ingredients.8.full.jpg.tmp.14217494077210.tif /home/off/html/images/products/324/541/299/9925/ingredients.8.full.jpg.tmp.14217494077210.tif -l fra 2> /dev/null
 +
</pre>
 +
 +
Running manually:
 +
 +
<pre>
 +
tesseract --version
 +
tesseract 3.02
 +
 +
off@ns431999:~/cgi$ /usr/bin/tesseract /home/off/html/images/products/324/541/299/9925/ingredients.8.full.jpg.tmp.14217494077210.tif /home/off/html/images/products/324/541/299/9925/ingredients.8.full.jpg.tmp.14217494077210.tif -l fra
 +
Error opening data file /usr/share/tesseract-ocr/tessdata/fra.traineddata
 +
Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
 +
Failed loading language 'fra'
 +
Tesseract couldn't load any languages!
 +
Tesseract Open Source OCR Engine v3.02 with Leptonica
 +
Page 0
 +
Erreur de segmentation
 +
</pre>
 +
 +
As of January 2015, OFF is running an older version of tesseract:
 +
 +
<pre>
 +
apt-cache show tesseract-ocr | grep -i version
 +
Version: 2.04-2+squeeze1
 
</pre>
 
</pre>

Navigation menu