admin
2025-04-14 c9de25e292060cab6d7c817027b42d8b6b7d2ad0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include<opencv2/opencv.hpp>
 
 
class RUN {
 
public:
    bool isLoad = false;//是否加载
    std::string analysis1;
    std::string analysis2;
 
    bool initConfig(const char* modelpath, int* beltregion, float threshold=0.67);
    int detect(std::vector<cv::Mat>& images);
 
private:
    cv::dnn::Net net;
    int x1, y1, x2, y2;
    float threshold_;
 
};