-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
48 lines (38 loc) · 1.12 KB
/
mainwindow.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <opencv2/opencv.hpp>
#include <QtNetwork/QNetworkAccessManager>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
int showCannyEdges();
int showColoredFrame();
int showColoredCamInTab();
public slots:
void openImageAsOpeCVFrame();
void openImageAndShowInTab();
void showGrayImageAsOpeCVFrame();
void showFrameWithColor();
void showFrameWithCannyEdges();
void getVideoFromCamShowInTab();
//void showFlippedImage(cv::Mat image);
//Открываем JSON по клику кнопки
void openJsonFromWeb();
private slots:
void on_btn_image_to_tab_clicked();
// Обработчик данных полученных от объекта QNetworkAccessManager
void onJsonResult(QNetworkReply *reply);
private:
cv::Mat flipImageInTab(cv::Mat image);
Ui::MainWindow *ui;
cv::Mat imageForActionsInTab;
QNetworkAccessManager *networkManager;
};
#endif // MAINWINDOW_H