Version: 0.44 (using KDE KDE 3.3.0) Installed from: Debian testing/unstable Packages kooka doesn't want to use gocr for OCR. In the perferences dialog, only gocr is detected, but not selected by default. After selecting it, kooka tells me to restart it in order to use the engine. After the restart gocr is in fact selected, but when I click on Image->OCR Image, kooka complains that it can't find the ocrad binary and shows a dialog for ocrad afterwards instead of gocr as expected.
Is gocr really installed? Where?
It's installed in /usr/bin (debian package) and it's working from the command line. In the configuration dialog the gocr binary is listed with the full an correct path. In the kookarc file, gocr there is this section: [ocrDialog] gocrBinary=/usr/bin/gocr ocrEngine=gocr But when I click "OCR Image" there's a popup saying "OCR Software not found", "The path to the ocrad binary is not configured yet.." etc. The complete system setup is a clean install, so I've never upgraded from an older version of kooka. I've tried to delete kookarc, but that didn't change anything as expected.
I just looked at ksaneocr.cpp and it looks like GOCR is nowhere assigend tp m_ocrEngine. In the ctor of the class KSANEOCR the config file is only checked for ocrad (which is also the default) and for kadmos. The check for gocr seems to be missing though.
I can confirm this problem. in my case, I can change to gocr, but ocrad still starts. (Yes /usr/bin/gocr is there and with the right path selected) My System is a Suse 9.2 x86_64 Linux sepia 2.6.8-24-default #1 Wed Oct 6 09:16:23 UTC 2004 x86_64 x86_64 x86_64 GNU/Linux Kooka 0.44 (kde 3.3.0)
I fixed this bug by changing the line 111 of the file kooka/ksaneocr.cpp to: } else if (eng == "gocr") { m_ocrEngine = GOCR; }
Oops! Sorry. Wrong comment. The line 111 is: else if (eng == "gocr") { m_ocrEngine = GOCR; }
As already told, I've the same problem on a Slackware 10.1, with gord regularly compiled and installed in /usr/bin MS
*** Bug 106137 has been marked as a duplicate of this bug. ***
SVN commit 434828 by schaettgen: Respect the user´s choice to use gocr. I assume that the fix suggested in the bug report was silently accepted by the kooka maintainers. BUG:90082 M +8 -5 ksaneocr.cpp --- trunk/KDE/kdegraphics/kooka/ksaneocr.cpp #434827:434828 @@ -104,11 +104,14 @@ konf->setGroup( CFG_GROUP_OCR_DIA ); QString eng = konf->readEntry(CFG_OCR_ENGINE, "ocrad"); - if( eng == "ocrad" ) - { - m_ocrEngine = OCRAD; - } - + if( eng == "ocrad" ) + { + m_ocrEngine = OCRAD; + } + else if( eng == "gocr" ) + { + m_ocrEngine = GOCR; + } #ifdef HAVE_KADMOS else if( eng == QString("kadmos") ) m_ocrEngine = KADMOS; #endif
I have got the same bug under Kubuntu 5.10 with KDE 3.4.3 Although gocr is installed and configured in Kooka, it still starts ocrad everytime I want to use OCR ...