1 Star 0 Fork 0

NJUPT-B523/Intelligent Traffic Violation Detection

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
red_right.h 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
江斌 提交于 2021-08-22 15:41 . YDS 2019
/*********************************
* 闯右转红灯类
* @ZZH
* date:2019/9/23
* *******************************/
#ifndef RED_RIGHT_H
#define RED_RIGHT_H
#include <stdio.h>
#include <iostream>
#include<vector>
#include "math.h"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "illegal_process.h"
#include "license_plate_detection.h"
class red_right
{
private:
std::vector<float>target;
cv::Mat break1, break2;
char pic_name[40];
int x,y,z,e,num=1;
int ret;
illegal_process pre;
License_plate_detection car_lic;
public:
bool first_time = true;
bool second_time = true;
cv::Mat car_br,car_br_e,car_license;
red_right();
//右转ROI区域储存函数
std::vector<cv::Rect> red_right_ROI(cv::Rect roi_1st, cv::Rect roi_2nd);
//判断闯右转红灯函数
std::vector<float> rules(std::vector<cv::Rect> roi, std::vector<std::vector<float> > car, const cv::Mat &img);
//资源释放函数
void red_right_release();
};
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/njupt-b523/intelligent-traffic-violation-detection.git
git@gitee.com:njupt-b523/intelligent-traffic-violation-detection.git
njupt-b523
intelligent-traffic-violation-detection
Intelligent Traffic Violation Detection
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385