From 59ca349fe458f84be4d1ef73fd7ea92ee9b5943e Mon Sep 17 00:00:00 2001 From: littletomatodonkey Date: Mon, 20 Jul 2020 17:29:40 +0000 Subject: [PATCH] fix format --- deploy/cpp_infer/CMakeLists.txt | 3 ++- deploy/cpp_infer/src/utility.cpp | 7 ------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/deploy/cpp_infer/CMakeLists.txt b/deploy/cpp_infer/CMakeLists.txt index b8ded08a..466c2be8 100644 --- a/deploy/cpp_infer/CMakeLists.txt +++ b/deploy/cpp_infer/CMakeLists.txt @@ -1,8 +1,9 @@ project(ocr_system CXX C) -option(WITH_MKL "Compile demo with MKL/OpenBlas support, default use MKL." OFF) +option(WITH_MKL "Compile demo with MKL/OpenBlas support, default use MKL." ON) option(WITH_GPU "Compile demo with GPU/CPU, default use CPU." OFF) option(WITH_STATIC_LIB "Compile demo with static/shared library, default use static." ON) +option(WITH_TENSORRT "Compile demo with TensorRT." OFF) SET(PADDLE_LIB "" CACHE PATH "Location of libraries") SET(OPENCV_DIR "" CACHE PATH "Location of libraries") diff --git a/deploy/cpp_infer/src/utility.cpp b/deploy/cpp_infer/src/utility.cpp index cbff2a71..c1c9d938 100644 --- a/deploy/cpp_infer/src/utility.cpp +++ b/deploy/cpp_infer/src/utility.cpp @@ -39,13 +39,6 @@ std::vector Utility::ReadDict(const std::string &path) { void Utility::VisualizeBboxes( const cv::Mat &srcimg, const std::vector>> &boxes) { - // cv::Point rook_points[boxes.size()][4]; - // for (int n = 0; n < boxes.size(); n++) { - // for (int m = 0; m < boxes[0].size(); m++) { - // rook_points[n][m] = cv::Point(int(boxes[n][m][0]), - // int(boxes[n][m][1])); - // } - // } cv::Mat img_vis; srcimg.copyTo(img_vis); for (int n = 0; n < boxes.size(); n++) { -- GitLab