diff --git a/Prj-Linux/CMakeLists.txt b/Prj-Linux/CMakeLists.txt index 71d1296..a6a0d33 100644 --- a/Prj-Linux/CMakeLists.txt +++ b/Prj-Linux/CMakeLists.txt @@ -3,7 +3,14 @@ project(HyperLPR3-LinuxDemo) set(CMAKE_CXX_STANDARD 11) +if (APPLE) + set(PLAT darwin) +else() + set(PLAT linux) +endif () + # use opencv +set(OpenCV_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty_hyper_inspire_op/opencv-4.5.1/${PLAT}/lib/cmake/opencv4) find_package(OpenCV REQUIRED) include_directories(${OpenCV_INCLUDE_DIRS}) diff --git a/cpp/src/configuration.h b/cpp/src/configuration.h index 799be21..55a8d89 100644 --- a/cpp/src/configuration.h +++ b/cpp/src/configuration.h @@ -16,7 +16,7 @@ const std::string DETECT_LOW_HEAD_FILENAME = "b320_header_h.mnn"; const std::string DETECT_HIGH_BACKBONE_FILENAME = "b640x_backbone_h.mnn"; const std::string DETECT_HIGH_HEAD_FILENAME = "b640x_head_h.mnn"; const std::string CLS_MODEL_FILENAME = "litemodel_cls_96xh.mnn"; -const std::string REC_MODEL_FILENAME = "rpv3_mdict_160_r3.mnn"; +const std::string REC_MODEL_FILENAME = "rpv3_mdict_160h.mnn"; const InputSize REC_INPUT_SIZE = {160, 48}; const InputSize CLS_INPUT_SIZE = {96, 96};