110,534
社区成员
发帖
与我相关
我的任务
分享
static int num;
static double beltLocation1x, beltLocation1y, beltLocation2x, beltLocation2y;
static double beltLocation3x, beltLocation3y, beltLocation4x, beltLocation4y;
static double houghMin, gangueMin, maoganMin, crossAlarmDistance, cannyMin, cannyMax;
static float x0, x1, k, l;
static bool isFirstFrame;
static Mat frame, gray, edge, mask, location1, location2, maoganMask, preZhoujie;
static Mat center, labels;
static vector<double> block, strip;
static vector<Vec2f> noline;
static vector<Vec2f> center_point;
static vector<Point2f> prePoints;
static Ptr<BackgroundSubtractorMOG2> mog;
static struct IMAGE_INFO image_info;
static struct ALARM_INFO alarm_info;
static struct RESULT_INFO result_info;
static VideoCapture video;
bool Init(PARAMETER_INFO *parameter); // 对上面的参数进行初始化
RESULT_INFO Process(); // 调用一些函数处理数据,赋给上面的参数,然后返回其中的一个结构体
bool CleanUp(); // 提供给C#清理内存的函数