|
|
@@ -55,7 +55,8 @@ void CValueWnd::Init()
|
|
|
//OCR的数据初始化
|
|
|
if (m_tess.Init("./tessdata", "eng"))
|
|
|
{
|
|
|
- std::cout << "OCRTesseract: Could not initialize tesseract." << std::endl;
|
|
|
+ LOG_INFO("OCRTesseract: Could not initialize tesseract.");
|
|
|
+ MessageBox(m_hWnd, L"ocr语言库加载失败", L"111", MB_OK);
|
|
|
}
|
|
|
|
|
|
m_tess.SetPageSegMode(tesseract::PageSegMode::PSM_SINGLE_LINE);
|