提交 b01c1a4b authored 作者: blu's avatar blu

video ai

上级 c4cd86f3
......@@ -30,6 +30,10 @@ PROG = main
SRCS2 = main.cpp
PROG2 = detector
SRCS3 = test.cpp
PROG3 = test
all: $(PROG) $(PROG2)
$(PROG):$(SRCS)
......@@ -38,5 +42,8 @@ $(PROG):$(SRCS)
$(PROG2):$(SRCS2) yolo.hpp
$(CC) $(CFLAGS) -o $(PROG2) $(SRCS2) $(SHARED) $(LIBS)
$(PROG3):$(SRCS3)
$(CC) $(CFLAGS) -o $(PROG3) $(SRCS3) $(SHARED) $(LIBS)
clean:
rm -fr main detector
\ No newline at end of file
#include <fstream>
#include <sstream>
#include <iostream>
#ifdef _MY_HEADERS_
#include <opencv2/core/types_c.h>
#include <opencv2/dnn.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#else
#include <opencv2/core/types_c.h>
#include <opencv2/opencv.hpp>
#endif
using namespace std;
using namespace cv;
int main(){
VideoCapture cap;
if(!cap.open("a.mp4"))
cout << "failed to open";
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论