TESSDATA_PREFIX problem

73 views
Skip to first unread message

Dusayanta Prasad

unread,
Mar 3, 2018, 7:37:21 AM3/3/18
to tesseract-ocr
Please help me with this:

dusayanta@dusayanta:~/tessy$ tesseract -v
tesseract 4.00.00dev-731-gb9b08c7
 leptonica-1.75.3
  libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8

 Found AVX
 Found SSE


dusayanta@dusayanta:~/tessy$ tesseract book.tif book -l eng
Error opening data file /home/dusayanta/tesseract/tessdata/eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
Could not initialize tesseract.
dusayanta@dusayanta:~/tessy$ cd ..
dusayanta@dusayanta:~$ ls tesseract/tessdata/
configs  eng.traineddata  eng.user-patterns  eng.user-words  Makefile.am  Makefile.in  pdf.ttf  tessconfigs

dusayanta@dusayanta:~$ printenv
XDG_VTNR=7
XDG_SESSION_ID=c2
CLUTTER_IM_MODULE=xim
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/dusayanta
SESSION=ubuntu
GPG_AGENT_INFO=/home/dusayanta/.gnupg/S.gpg-agent:0:1
SHELL=/bin/bash
TERM=xterm-256color
VTE_VERSION=4205
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
TESSDATA_PREFIX=/home/dusayanta/tesseract/tessdata/
WINDOWID=75497482
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1099
GNOME_KEYRING_CONTROL=
GTK_MODULES=gail:atk-bridge:unity-gtk-module
USER=dusayanta

Dusayanta Prasad

unread,
Mar 3, 2018, 7:56:12 AM3/3/18
to tesseract-ocr
eng tessdata_fast and eng tessdata_best didn't work so i thought trying eng data in the section

Data Files for Version 4.00 (November 29, 2016)


and this is working. But why not tessdata_fast and tessdata_best ??
Reply all
Reply to author
Forward
0 new messages