Browse Source

remove result clear

jack 5 years ago
parent
commit
bcbff52694
1 changed files with 0 additions and 1 deletions
  1. 0 1
      deploy/cpp/src/paddlex.cpp

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

@@ -128,7 +128,6 @@ bool Model::preprocess(const std::vector<cv::Mat> &input_im_batch, std::vector<I
 
 
 bool Model::predict(const cv::Mat& im, ClsResult* result) {
 bool Model::predict(const cv::Mat& im, ClsResult* result) {
   inputs_.clear();
   inputs_.clear();
-  result->clear();
   if (type == "detector") {
   if (type == "detector") {
     std::cerr << "Loading model is a 'detector', DetResult should be passed to "
     std::cerr << "Loading model is a 'detector', DetResult should be passed to "
                  "function predict()!"
                  "function predict()!"