-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathZOcrProcess.h
More file actions
32 lines (27 loc) · 738 Bytes
/
ZOcrProcess.h
File metadata and controls
32 lines (27 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include <QObject>
#include <QTimer>
#include <QtConcurrent/qtconcurrentrun.h>
#include <QScreen>
#include <QQuickWindow>
#include <QQuickWidget>
class ZOcrProcess :public QObject
{
Q_OBJECT
public:
explicit ZOcrProcess(QObject* parent);
public slots:
void startOCR(const QString imgPath);
void setLanguage(const QString language);
void OCRThtread( const QString imagePath);
void setTrainDataPath(const QString);
QString getResults();
signals:
void finish();
public slots:
void grabScreen(QQuickWindow* window, int x,int y,int width, int height);
private:
QString m_trainDataPath = "C:\\Users\\17305\\Downloads\\tessdata_best-main\\tessdata_best-main";
QString m_language = "eng";
QString m_results{};
};