Browse Source

fix bug of detect model predict

there is no return value of bool Model::predict(const cv::Mat& im, DetResult* result), it leads to no result return in ubuntu, but it works fine in windows.
lizhuo 4 years ago
parent
commit
3682f39c81
1 changed files with 1 additions and 0 deletions
  1. 1 0
      static/deploy/openvino/src/paddlex.cpp

+ 1 - 0
static/deploy/openvino/src/paddlex.cpp

@@ -205,6 +205,7 @@ bool Model::predict(const cv::Mat& im, DetResult* result) {
       result->boxes.push_back(std::move(box));
       result->boxes.push_back(std::move(box));
     }
     }
   }
   }
+  return true;
 }
 }