Changeset View
Changeset View
Standalone View
Standalone View
plugins/ocr/gocr/ocrgocrengine.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
64 | 64 | | |||
65 | static const char *possibleResultFiles[] = { "out30.png", "out20.png", "out30.bmp", "out20.bmp", nullptr }; | 65 | static const char *possibleResultFiles[] = { "out30.png", "out20.png", "out30.bmp", "out20.bmp", nullptr }; | ||
66 | 66 | | |||
67 | 67 | | |||
68 | OcrGocrEngine::OcrGocrEngine(QObject *pnt, const QVariantList &args) | 68 | OcrGocrEngine::OcrGocrEngine(QObject *pnt, const QVariantList &args) | ||
69 | : AbstractOcrEngine(pnt, "OcrGocrEngine") | 69 | : AbstractOcrEngine(pnt, "OcrGocrEngine") | ||
70 | { | 70 | { | ||
71 | m_tempDir = nullptr; | 71 | m_tempDir = nullptr; | ||
72 | m_inputFile = QString::null; // input image file | 72 | m_inputFile = QString(); // input image file | ||
73 | m_resultFile = QString::null; // OCR result text file | 73 | m_resultFile = QString(); // OCR result text file | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | 76 | | |||
77 | AbstractOcrDialogue *OcrGocrEngine::createOcrDialogue(AbstractOcrEngine *plugin, QWidget *pnt) | 77 | AbstractOcrDialogue *OcrGocrEngine::createOcrDialogue(AbstractOcrEngine *plugin, QWidget *pnt) | ||
78 | { | 78 | { | ||
79 | return (new OcrGocrDialog(plugin, pnt)); | 79 | return (new OcrGocrDialog(plugin, pnt)); | ||
80 | } | 80 | } | ||
81 | 81 | | |||
▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines |