【开源】opencv实战-识别圆环
//检测呼啦圈
#include<opencv2\opencv.hpp>
#include <iostream>
#include<fstream>
#include <opencv2/highgui/highgui_c.h>
#include <opencv2/imgproc/types_c.h>
using namespace cv;
using namespace std;
double draw_point_start, draw_point_end, draw_point_interval;
double point_speed, point_speed_old, speed_average;
Point draw_point_old = Point(0, 0);
int main()
{
Mat frame, frame_background;
VideoCapture capture;
capture.open("H://VS/Opencv/program/robocon_2021/video/hulala_1.mp4"); //待检测视频的文件地址
capture >> frame;
if (frame.empty())
{
cout << "Could not l

最低0.47元/天 解锁文章
7487





