-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
56 lines (46 loc) · 1.08 KB
/
main.cpp
File metadata and controls
56 lines (46 loc) · 1.08 KB
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
/*
* this program should be in the opencv 3.2.0 so that it can be run.
* qiu - 20190105
*/
#include <QApplication>
#include <QDialog>
#include <QLabel>
#include <iostream>
#include <opencv2/opencv.hpp>
#include "qtform.h"
#include "mainwindow.h"
#include "test.h"
#include "imagelabel.h"
#include "colorhistogram.h"
#include "contentfinder.h"
using namespace std;
using namespace cv;
void initilize();
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
initilize();
MainWindow w;
w.show();
for(int i = 0; i < 10; ++i)
{
cout << i << endl;
}
return app.exec();
}
void initilize()
{ int a = 4;
int b = 1;
int c = 121;
cout << "start..." << "c: " << c << endl;
/*
VideoCapture capture(0);
//【2】循环显示每一帧
for(int i = 0; i < 100; i++){
Mat frame; //定义一个Mat变量,用于存储每一帧的图像
capture>>frame; //读取当前帧
imshow("video",frame); //显示当前帧
waitKey(30); //延时30ms
}
*/
}