1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
| #ifndef EI_VISION_TYPE
| #define EI_VISION_TYPE
|
| enum VISION_RECIPE_TYPE {
| LOC_VISION_TYPE = 0,
| LOC_VISION_PROCESS,
| GRIND_VISION_TYPE,
| GRIND_VISION_PROCESS,
| CUT_VISION_TYPE,
| CUT_VISION_PROCESS,
| KDIST_VISION_TYPE,
| KDIST_VISION_PROCESS,
| RCUT_VISION_TYPE,
| RCUT_VISION_PROCESS,
| THRES_VISION_TYPE,
| THRES_VISION_PROCESS,
| HOLE_VISION_TYPE,
| HOLE_VISION_PROCESS
| };
|
| enum VISION_TYPE {
| VISION_LOC = 0, //DISTËã·¨
| VISION_CUT, //CUT¾àÀë
| VISION_GRIND,
| VISION_KDIST,
| VISION_RCUT, //RCUTËã·¨
| VISION_THRES,
| VISION_HOLE,
| VISION_NONE };
|
| #define NG_INF_NUM 1000
|
| enum DefectNgLoc {
| DefectLoc_OK = 0, //OK
| DefectLoc_Chip, //Chip
| DefectLoc_Broken, //ÆÆËð
| DefectLoc_Grind, //ÑÐÄ¥
| DefectLoc_Dist_Cut, //Çи¶È
| DefectLoc_Corner_Dist, //½Ç¾«¶È
| DefectLoc_HOLE, //Hole
| DefectLoc_Unknown //Ö¸´íÎó
| };
|
| static UINT _gGridFixCellColor = RGB(144, 200, 246);
| static UINT _gGridFixFontColor = RGB(0, 0, 0);
| static UINT _gGridCellColor = RGB(255, 255, 255);
| static UINT _gGridCellColor_NonSelect = RGB(150, 150, 150);
| static UINT _gGridCellReadyColor = RGB(255, 255, 0);
| static UINT _gGridCellOnColor = RGB(255, 69, 0);
| static UINT _gGridCellOffColor = RGB(128, 191, 255);
| static UINT _gPropertyGridFixCellColor = RGB(150, 150, 150);
| static UINT _gPropertyGridFixFontColor = RGB(0, 0, 0);
| static UINT _gSequenceOffColor = RGB(0, 0, 0);
| static UINT _gSequenceOnColor = RGB(0, 180, 0);
|
| typedef struct _NgDotInfo
| {
| int eDir; //¼ì²âÃæ
| int id; //¼ì²âID
| CString strName; //Ãû³Æ
| int xPosPxl; //XλÖÃ
| int yPosPxl; //YλÖÃ
| double result; //½á¹û
| double xResult; //X½á¹û
| double yResult; //Y½á¹û
| double minValue; //ÏÂÏÞ
| double maxValue; //ÏÞÖÆ
| bool isRes; //¼ì²â½á¹û
| int x1; //ȱÏݵÄ×îС¾ØÐÎ
| int y1; //ȱÏݵÄ×îС¾ØÐÎ
| int x2; //ȱÏݵÄ×îС¾ØÐÎ
| int y2; //ȱÏݵÄ×îС¾ØÐÎ
| int ngType; //ȱÏÝÀàÐÍ
| int eVision; //ÊÓ¾õËã·¨
| }NgDotInfo;
|
| typedef struct _MeasureInfo
| {
| int idxRefer;
| int typePoint;
| int modePoint;
| int pointThres;
| int modeNear;
| int nearThres;
| }MeasureInfo;
|
| typedef struct _ScanSetting
| {
| int lengthSize;
| int shortSize;
| int nStdIndex;
| int nIndex0;
| int nIndex1;
| int nIndex2;
| int nIndex3;
| int nLengthScan;
| int nShortScan;
| }ScanSetting;
|
| typedef struct _VisionDisplayInfo
| {
| bool isVisionDisplay;
| bool isGrindDisplay;
| bool isDistDisplay;
| bool isCutDisplay;
| bool isRcutDisplay;
| bool isThresDisplay;
| bool isHoleDisplay;
| }VisionDisplayInfo;
|
| typedef struct _VisionUseInfo
| {
| bool isVisionUse; //ÊÓ¾õ
| bool isLocUse; //¶¨Î»
| bool isDistUse; //¾àÀë
| bool isCutUse; //ÇиîÏß
| bool isGrindUse; //ÑÐÄ¥Á¿
| bool isRcutUse; //RCUT
| bool isThresUse; //Thres
| bool isHoleUse; //Hole
| }VisionUseInfo;
|
| typedef struct _DistIncInfo
| {
| int incGrind;
| int incTop;
| int incBot;
| int incKey;
| int incCut;
| }DistIncInfo;
|
| typedef struct _DispResultObject
| {
| HalconCpp::HObject hDispRegion;
| HalconCpp::HObject hDispObject;
| }DispResultObject;
|
| typedef struct _KeyDebugInfo
| {
| bool isDebugTool;
| bool isInspectKey;
| bool isLocKey;
| bool isGrindKey;
| bool isCutLineKey;
| bool isDistKey;
| bool isRcutKey;
| }KeyDebugInfo;
|
| #endif
|
|