Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

Update CMakeLists.txt

Daniel0b941ce9f8c8
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7cb3126..2a8b8a2 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,7 +51,9 @@ endif()
link_libraries(onnxruntime)
FIND_PACKAGE(OpenCV REQUIRED)
-set( OpenCV_FOUND 1 ) #force being compatible with current opencv
+if(WIN32)
+set(OpenCV_DIR c:/rapidocr/opencv/build)
+endif()
if(OPENCV_FOUND)
message("OpenCV FOUND")
include_directories(${OpenCV_INCLUDE_DIRS})