admin
2025-04-27 e9a9541f70351b2cf7a33b7862dd6481c0730df0
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_;
 
};