-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
36 lines (29 loc) · 938 Bytes
/
main.cpp
File metadata and controls
36 lines (29 loc) · 938 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
33
#include<opencv2/opencv.hpp>
#include<opencv2/imgproc/imgproc.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<math.h>
#include<iostream>
#include<algorithm>
#include"ArmorDetector.h"
using namespace std;
using namespace cv;
int main() {
Detect armor;
armor.enemy_color = armor.BLUE; //恁寁菩源陬謙晇伎
VideoCapture capture("祭條匼第懦陬綴醱-ev-0.MOV"); //黍弝
while (capture.isOpened()) {
Mat frame;
capture >> frame;
if (frame.empty()) {
break;
}
armor.process(frame); //羲宎妎梗
}
return 0;
}
/**統蕉訧蹋
https://blog.csdn.net/weixin_42755384/article/details/88530186?utm_medium=distribute.pc_relevant.none-task-blog-searchFromBaidu-7.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-searchFromBaidu-7.nonecase
https://www.cnblogs.com/IaCorse/p/11567355.html
https://blog.csdn.net/u010750137/article/details/96428059
https://blog.csdn.net/Taunt_/article/details/99894463
**/