Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I can use tesseract v3.01 successfully. For example

$ tesseract toc.tif output -l chi_sim
Tesseract Open Source OCR Engine v3.01 with Leptonica
Page 1
Page 2
Page 3
Page 4
Page 5

But with ocrodjvu v0.4.6, a wrapper of tesseract, things go wrong:

$ ocrodjvu --language=chi toc.djvu -o tococr.djvu
Processing 'toc.djvu':
- Page #1
Unable to load unicharset file /usr/share/tesseract-ocr/tessdata/chi.unicharset
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/ocrodjvu/lib/_ocrodjvu.py", line 445, in page_thread
    result = self.process_page(page)
  File "/usr/share/ocrodjvu/lib/_ocrodjvu.py", line 430, in process_page
    html_file.close()
  File "/usr/lib/python2.6/contextlib.py", line 34, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/share/ocrodjvu/lib/_ocrodjvu.py", line 190, in recognize
    ocropus.wait()
  File "/usr/share/ocrodjvu/lib/ipc.py", line 66, in wait
    raise CalledProcessError(return_code, self.__command)
CalledProcessError: Command 'ocroscript' returned non-zero exit status 1

As mentioned, the unicharset file chi.unicharset is not there:

$ ls -l /usr/share/tesseract-ocr/tessdata
total 141656
-rw-r--r-- 2 root root 42782973 2011-07-29 19:16 chi_sim.traineddata
-rw-r--r-- 1 root root 56359429 2011-07-29 19:16 chi_tra.traineddata
drwxr-xr-x 2 root root     4096 2011-07-30 15:07 configs
-rw-r--r-- 1 root root  3112137 2011-07-29 19:16 eng.traineddata
drwxr-xr-x 2 root root     4096 2011-07-30 15:07 tessconfigs

So I wonder why ocrodjvu is not working?

I am not sure if the versions of tesseract and ocrodjvu are compatible. But I install both from Synaptic. My OS is 10.10.

share|improve this question

closed as too localized by RolandiXor, Ringtail, Thomas W., fabricator4, Eliah Kagan Jan 12 '13 at 2:03

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
This question appears to be abandoned and unanswered, could you perhaps add more detail to your question? If this question no longer applies then you can either delete it or answer it yourself if you've solved the problem. Thanks! –  RolandiXor Jan 11 '13 at 7:30

Browse other questions tagged or ask your own question.