#pragma once #include "OcrScreen.h" #include "OcrNode.h" #include using namespace std; class Ocr_Dict { public: Ocr_Dict(void); virtual ~Ocr_Dict(void); void ReSortSkiny(); BOOL OcrFindMatchs(OcrScreen &fullPic, RECT &area, OCRCOLOR color, ULONG sim, string OUT &str ); ULONG FindMatchPoint_Internal(OcrScreen &fullPic, RECT &area, OCRCOLOR color, ULONG sim, string IN &str); BOOL FindMatchPoint(OcrScreen &fullPic, RECT &area, OCRCOLOR color, ULONG sim, string IN &str, ULONG &x, ULONG &y); BOOL LoadOcrDictFromDirectory(const TCHAR *pszDirName); BOOL IsNodeExist(string &keynode); BOOL IsReady(); vector m_nodes; };