OCR tesseract, jeho učení nefunguje v LIOS
Napsal: 14 lis 2022, 09:35
Potřebuji rozpoznat některé texty tištěné ve starších knihách. Pro OCR používám s úspěchem tesseract a gimagereader. Teď potřebuji větší spolehlivost rozpoznávání a našel jsem LIOS, který má i nástroj pro učení tesseractu novým znakům (train-tesseract). Shlédl jsem i video na youtube, jak to má fungovat, ale mě se nenačte ani soubor pro daný jazyk. Konzole hlásí:
Dá se z toho rozpoznat, jestli je chyba v softwaru a kontaktovat vývojáře, nebo je to u mně a je potřeba nějak nastavit systém? Přiznávám, že v tomhle se nevyznám, nevím, jak teď postupovat. Když bude potřeba nějaké další údaje, napíšu je sem. Díky předem za pomoc.
Kód: Vybrat vše
$ train-tesseract
/usr/lib/python3/dist-packages/lios/ui/gtk/loop.py:21: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
/usr/lib/python3/dist-packages/lios/ui/gtk/terminal.py:21: PyGIWarning: Vte was imported without specifying a version first. Use gi.require_version('Vte', '2.91') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, GObject, Vte
(train-tesseract:8121): Gtk-WARNING **: 09:23:20.768: Cannot connect attribute 'text' for cell renderer class 'lios+ui+gtk+tree_view+CellRendererToggle' since attribute does not exist
language_combobox_changed Started
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/lios/train_tesseract.py", line 643, in language_combobox_changed
self.output_terminal.run_command(cmd)
File "/usr/lib/python3/dist-packages/lios/ui/gtk/terminal.py", line 48, in run_command
self.feed_child(command, length)
TypeError: Vte.Terminal.feed_child() takes exactly 2 arguments (3 given)
language_combobox_changed Started
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/lios/train_tesseract.py", line 643, in language_combobox_changed
self.output_terminal.run_command(cmd)
File "/usr/lib/python3/dist-packages/lios/ui/gtk/terminal.py", line 48, in run_command
self.feed_child(command, length)
TypeError: Vte.Terminal.feed_child() takes exactly 2 arguments (3 given)