From 46023bbb537bfdb68720ae60703f39579bb9d373 Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Mon, 16 May 2022 13:44:58 +0800 Subject: [PATCH] link OCR library on windows platform --- hgdriver/hgdev/image_process.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hgdriver/hgdev/image_process.cpp b/hgdriver/hgdev/image_process.cpp index 5feb122..b8ad64a 100644 --- a/hgdriver/hgdev/image_process.cpp +++ b/hgdriver/hgdev/image_process.cpp @@ -9,17 +9,14 @@ #include #include #pragma comment(lib, "Shell32.lib") +#pragma comment(lib, "hanwangOCRdetect.lib") #endif #include #include "ImageMatQueue.h" #include "../ImageProcess/ImageApplyHeaders.h" #include "ImageMultiOutput.h" #include "PaperSize.h" -extern "C" -{ - #include "ocr/hanwangOCRdetect.h" - #include "ocr/ocrcommon.h" -}; +#include "ocr/hanwangOCRdetect.h" #ifdef WIN32