File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,17 @@ int main(int argc, char *argv[])
1919{
2020 // Tesseract requires this locale
2121 setlocale (LC_NUMERIC, " C" );
22- // Set the tessdata directory prefix env variable
23- QString datadir = QStandardPaths::writableLocation (QStandardPaths::DataLocation);
24- qputenv (" TESSDATA_PREFIX" , QString (datadir + " /harbour-textractor/harbour-textractor/tesseract-ocr/tessdata/" ).toLocal8Bit ());
2522
2623 QCoreApplication::setApplicationName (" harbour-textractor" );
2724 QCoreApplication::setOrganizationName (" harbour-textractor" );
2825
2926 QGuiApplication *app = SailfishApp::application (argc, argv);
3027 QQuickView *view = SailfishApp::createView ();
3128
29+ // Set the tessdata directory prefix env variable
30+ QString datadir = QStandardPaths::writableLocation (QStandardPaths::DataLocation);
31+ qputenv (" TESSDATA_PREFIX" , QString (datadir + " /tesseract-ocr/tessdata/" ).toLocal8Bit ());
32+
3233 TesseractAPI interface;
3334 view->rootContext ()->setContextProperty (" tesseractAPI" , &interface);
3435 qmlRegisterType<SettingsManager>(" harbour.textractor.settingsmanager" , 1 , 0 , " SettingsManager" );
You can’t perform that action at this time.
0 commit comments