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.

38 lines
1.6 KiB

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.

/*
* @Author: your name
* @Date: 2022-04-20 15:49:50
* @LastEditTime: 2025-09-17 19:09:40
* @LastEditors: xiewenji 527774126@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ZCXD_MonitorPlatform/src/CoreLogicModule/include/CamDeal.h
*/
#ifndef AICommonDefine_H_
#define AICommonDefine_H_
// AI缺陷分类缺陷的种类(只含主检测+分类模型输出的类别;支架偏移/支架缺失/把手缺失为传统算法检出,
// 铜箔标签缺陷(TBBQ)同时可能由标签检测上报;顺序需与分类模型输出的 label 顺序一致)
// 判定规则:
// 1) DarkAoHen(暗场凹痕)只有暗场相机存在,明场相机分到该类时按 QiTa(其他)处理;
// 2) DarkAoHen 目前不做检测,分到该类按 OK 处理(不上报缺陷,仅记日志);
// 3) label 超出本表范围(AI_CLass_QX_NAME_count)时,按 TBMark(铜箔标记)处理。
enum AI_CLass_QX_NAME_
{
AI_CLass_QX_NAME_DarkAoHen, // 暗场凹痕(只有暗场检出)
AI_CLass_QX_NAME_TBMark, // 铜箔标记
AI_CLass_QX_NAME_QiPao, // 气泡
AI_CLass_QX_NAME_TBBQ, // 标签(铜箔面不良标签)
AI_CLass_QX_NAME_QiTa, // 其他
AI_CLass_QX_NAME_count,
};
// 缺陷项对应在参数中的名称(顺序需与分类模型输出的label顺序一致)
static const std::string AI_CLass_QX_NAME_Names[] =
{
"DarkAoHen",
"TBMark",
"QiPao",
"TBBQ",
"QiTa",
};
#endif