Ocr_Dict.h 651 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "OcrScreen.h"
  3. #include "OcrNode.h"
  4. #include <vector>
  5. using namespace std;
  6. class Ocr_Dict
  7. {
  8. public:
  9. Ocr_Dict(void);
  10. virtual ~Ocr_Dict(void);
  11. void ReSortSkiny();
  12. BOOL OcrFindMatchs(OcrScreen &fullPic, RECT &area, OCRCOLOR color, ULONG sim, string OUT &str );
  13. ULONG FindMatchPoint_Internal(OcrScreen &fullPic, RECT &area, OCRCOLOR color, ULONG sim, string IN &str);
  14. BOOL FindMatchPoint(OcrScreen &fullPic, RECT &area, OCRCOLOR color, ULONG sim, string IN &str, ULONG &x, ULONG &y);
  15. BOOL LoadOcrDictFromDirectory(const TCHAR *pszDirName);
  16. BOOL IsNodeExist(string &keynode);
  17. BOOL IsReady();
  18. vector<OcrNode *> m_nodes;
  19. };