You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
893 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef ALL_Detect_H_
#define ALL_Detect_H_
#include "BaseInclude.h"
#include "AI_Moudel.hpp"
#include "BlobBase.h"
#include "Top_Detect.hpp"
#include "Side_Detect.hpp"
#include "Down_Detect.hpp"
#include "Down_Angle_Detect.h"
class ALL_Detect : public ImgCheckBase
{
public:
ALL_Detect();
~ALL_Detect();
// 初始化参数 pconfig 参数指针 返回0 成功 其他异常
int RunStart(void *pconfig1 = NULL);
// 阻塞式检测
int CheckImg(std::shared_ptr<shareImage> p, std::shared_ptr<CheckResult> &pResult);
// 更新参数 pconfig 参数指针nConfigType 需要更新的参数类型 返回0 成功 其他异常
int UpdateConfig(void *pconfig, int nConfigType);
private:
std::shared_ptr<ImgCheckBase> m_checkBase = nullptr;
std::shared_ptr<Down_Angle_Detect> m_down_angle_detect = nullptr;
Cam_Param m_cam_param;
};
#endif