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
#ifndef BL_SIDE_DATA
#define BL_SIDE_DATA
 
#ifdef EXPORT_BLVISION_DLL
#include "../SDK/BaseDisplaySDK/include/typesdef.h"
#define EXPORTED_BLVISION _declspec(dllexport)
#else
#define EXPORTED_BLVISION _declspec(dllimport)
#endif
 
 
typedef struct _SideLineInf 
{
    int nSideLine;
    int nThres;
    int left;
    int top;
    int width;
    int height;
}SideLineInf;
 
//¼ì²â½á¹û
typedef struct _DispVisionResult {
    int eDir;     //Ãæ²ÎÊý
    int nType;     //0,Point;  1;±íʾRect;   2,±íʾԲ; 3£¬ Ö±Ïß; 4£¬Îı¾
    int eVision;  //ÊÓ¾õÀàÐÍ
    int rectX1;  //¾ØÐβÎÊý
    int rectY1;  //¾ØÐβÎÊý
    int rectX2;  //¾ØÐβÎÊý
    int rectY2;  //¾ØÐβÎÊý
    int pointX;  //µã²ÎÊý
    int pointY;  //µã²ÎÊý
    int circleX;  //Ô²²ÎÊý
    int circleY;  //Ô²²ÎÊý
    int circleRadius;  //Ô²²ÎÊý 
    CString strName;   //Ãû³Æ
}DispVisionResult;
 
 
class EXPORTED_BLVISION CBlSideData
{
public:
    CBlSideData();
    ~CBlSideData();
 
public:
    //1. ÖØÖÃ
    void Reset(void);
 
    //2. »ñȡλÖÃ
    Point2I getPose(int nType);
 
public:
    //1. ·Ö±æÂÊ
    double    m_dPixelSizeX;   //X·½ÏòµÄ·Ö±æÂÊ         
    double    m_dPixelSizeY;   //Y·½ÏòµÄ·Ö±æÂÊ
 
    //2. ¼ì²â½áÊø
    BOOL m_bInspection_Complete;   //ÊÇ·ñ¼ì²â½áËÙ
 
    //3.Top Mark Info
    BOOL m_bTopMark_Find;       //ÊÇ·ñ²éÕÒTopMark
    Point2I m_mTopMark;         //TopMarkµÄλÖÃ
 
    //4. Bottom Mark Info
    BOOL m_bBotMark_Find;       //ÊÇ·ñ²éÕÒBotMark
    Point2I m_mBotMark;         //BotMarkµÄλÖÃ
 
    //5. ²éÕÒTop Point
    BOOL m_bTopPoint_Find;
    Point2I m_mTopPoint;
 
    //6. ²éÕÒBot Point
    BOOL m_bBotPoint_Find;
    Point2I m_mBotPoint;
 
    //7. Edge
    int m_nStartLine;
    int m_nEndLine;
 
    //8. ¼ì²â½á¹û
    std::map<int, SideLineInf> m_mapSideLineInf;
    std::vector<DispVisionResult> m_vDispVisionResult;
};
 
#endif