You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/08/10 06:39:22 UTC

[GitHub] liangxi627 opened a new issue #12120: compile error in "image_aug_default.cc"

liangxi627 opened a new issue #12120: compile error in "image_aug_default.cc"
URL: https://github.com/apache/incubator-mxnet/issues/12120
 
 
   I build mxnet from source on ubuntu 14.04+cuda8.0+cudnn5, and meet the following error when compiling. It seems like an opencv error, but I have installed opencv3.1 , how to solve it?
   
   > src/io/image_aug_default.cc: In member function ‘virtual cv::Mat mxnet::io::DefaultImageAugmenter::Process(const cv::Mat&, std::vector<float>*, mxnet::common::RANDOM_ENGINE*)’:
   src/io/image_aug_default.cc:483:32: error: ‘CV_RGB2GRAY’ was not declared in this scope
              cvtColor(res, temp_, CV_RGB2GRAY);
                                   ^
   src/io/image_aug_default.cc:489:32: error: ‘CV_RGB2GRAY’ was not declared in this scope
              cvtColor(res, temp_, CV_RGB2GRAY);
                                   ^
   src/io/image_aug_default.cc:490:34: error: ‘CV_GRAY2BGR’ was not declared in this scope
              cvtColor(temp_, temp_, CV_GRAY2BGR);
                                     ^
   src/io/image_aug_default.cc:499:26: error: ‘CV_BGR2HLS’ was not declared in this scope
          cvtColor(res, res, CV_BGR2HLS);
                             ^
   src/io/image_aug_default.cc:519:26: error: ‘CV_HLS2BGR’ was not declared in this scope
          cvtColor(res, res, CV_HLS2BGR);
                             ^
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services