-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
65 lines (51 loc) · 1.51 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QFileDialog>
#include <QGraphicsItem>
#include <QMessageBox>
#include <QString>
#include <opencv/cv.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <iostream>
#include "opencv2/objdetect.hpp"
#include "opencv2/videoio.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "decoimage.h"
#include "asmOpenCV.h"
#include "FaceReplace.h"
using namespace ASM;
using namespace cv;
using namespace std;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
vector<Rect> face_pos; //ju 얼굴이랑 눈 도형이에요 얼굴은 네모 눈은 동그라미
vector<Rect> eye_pos; // ju
private slots:
void on_openButton_clicked(); // open file using qt
void openFile(const QString &fileName); // file open process
void on_covertImage_clicked(); //그림 입히기 - 이설희
void on_Mosaic_clicked(); //모자이크 - 장예솔
void on_calibration_clicked(); //점 (자동) 없애기 - 허정우
void on_convertFace_clicked(); //얼굴 바꾸기 - 조민규
void on_saveButton_clicked();
private:
Ui::MainWindow *ui;
QGraphicsScene *originScene;
QGraphicsScene *convertScene;
QGraphicsPixmapItem *originImage;
QGraphicsPixmapItem *convertImage;
Mat originMatImage;
Mat convertMatImage;
};
#endif // MAINWINDOW_H