12345678910111213141516171819202122232425262728293031323334 |
- #pragma once
- #include "vector"
- #include "OcrLine.h"
- using namespace std;
- class OcrNode
- {
- public:
- OcrNode(void);
- virtual ~OcrNode(void);
- BOOL GetMatchRate(ULONG64 sim);
- string m_NodeName;
- ULONG m_TotalPixelsCount;
- COLORPOINT m_KeyPoints[4];
- SIZE m_size;
- INT m_SundayIndex;
- vector <OcrLine *> m_lists;
- BOOL InitialLoadOcrFromFile(const TCHAR *pszFulName);
- BOOL LoadOcrFromFile(const TCHAR *pszFulName);
- void ClearRecord();
- void GetFitArea(COLORPOINT &top1,COLORPOINT &left1,COLORPOINT &bottom1,COLORPOINT &right1);
- void GetFitAreaX(COLORPOINT &topleft,COLORPOINT &topright,COLORPOINT &bottomleft,COLORPOINT &bottomright);
- ULONG CheckMatch(OcrScreen &fullPic, POINT &start1, OCRCOLOR color, ULONG sim, string IN &str);
- BOOL CheckMainKeyMatch(OcrScreen &fullPic, POINT &start1, OCRCOLOR color, ULONG sim);
- BOOL CheckLineKeyMatch(OcrScreen &fullPic, POINT &start1, OCRCOLOR color, ULONG sim);
- BOOL CheckLineMatch(OcrScreen &fullPic, POINT &start1, OCRCOLOR color, ULONG sim);
- void InitialSundayLine();
- };
|