Deprecated OpenCV consts leading to compilation error#2693
Deprecated OpenCV consts leading to compilation error#2693ronghanghu merged 1 commit intoBVLC:masterfrom
Conversation
|
LGTM |
|
... aside from the commit message where there is a typo in the title and you should remove the first paragraph. |
|
@flx42 I edited the commit message and title of this pull request. |
|
You should have kept the message about OpenCV versions But actually, I installed OpenCV 3.0.0 and I couldn't repro the issue, which version of OpenCV are you using exactly? |
|
I used OpenCV 3.0.0. Wesley from earlier mentioned Google Group thread also used 3.0.0. These consts come from this OpenCV file: https://github.com/Itseez/opencv/blob/master/modules/imgproc/include/opencv2/imgproc.hpp Why you can't reproduce this issue: maybe you haven't correctly uninstalled previous version of OpenCV or haven't done Not sure if this is relevant, but me and Wesley are building with |
|
Sure, it's deprecated, but I don't understand why it's not compiling for you, the constants still exist: |
Deprecated OpenCV consts leading to compilation error
When compiling Caffe I got the same compilation error as here:
https://groups.google.com/forum/#!topic/caffe-users/mZDi02lgcj0
This is because constants such as CV_BGRA2GRAY are deprecated in OpenCV 2 and 3.
The replacements are constants such as cv::COLOR_BGRA2GRAY.