You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
I have latest version of OpenCV. I uncomment OPENCV_VERSION := 3 in Makefile.config and run make all. I get:
CXX src/caffe/layers/lstm_layer.cpp
src/caffe/layers/video_data_layer.cpp: In member function 'virtual void caffe::VideoDataLayer::DataLayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)':
src/caffe/layers/video_data_layer.cpp:92:30: error: 'CV_CAP_PROP_FRAME_COUNT' was not declared in this scope
total_frames_ = cap_.get(CV_CAP_PROP_FRAME_COUNT);
^~~~~~~~~~~~~~~~~~~~~~~
src/caffe/layers/video_data_layer.cpp:97:14: error: 'CV_CAP_PROP_POS_FRAMES' was not declared in this scope
cap_.set(CV_CAP_PROP_POS_FRAMES, 0);
^~~~~~~~~~~~~~~~~~~~~~
make: *** [.build_release/src/caffe/layers/video_data_layer.o] Error 1
Changing to cv::CAP_PROP_FRAME_COUNT fixes, but there are many other constants not recognized. Is Intel Caffe only working with OpenCV 2.4?
The text was updated successfully, but these errors were encountered:
We also support OpenCV3. What's your build method, make or cmake ? And what's your platform and env? could you try it again after you remove opencv and install it?
We have no problem with OpenCV version being 3. maybe it's your env issue, such as forgetting to set INCLUDE_PATH/LD_LIBRARY_PATH. I would suggest you to use cmake build, which can automatically find corresponding opencv path as soon as you set right CMAKE_INCLUDE_PATH/CMAKE_LIBRARY_PATH.
CV_CAP_PROP_POS_FRAMES and CV_CAP_PROP_FRAME_COUNT are legacy C constant. Use the following instead (removing prefix CV_):
using namespace cv;
// CAP_PROP_POS_FRAMES
// CAP_PROP_FRAME_COUNT
CV_CAP_PROP_POS_FRAMES and CV_CAP_PROP_FRAME_COUNT are legacy C constant. Use the following instead (removing prefix CV_):
using namespace cv;
// CAP_PROP_POS_FRAMES
// CAP_PROP_FRAME_COUNT
The problem persists
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have latest version of OpenCV. I uncomment OPENCV_VERSION := 3 in Makefile.config and run make all. I get:
CXX src/caffe/layers/lstm_layer.cpp
src/caffe/layers/video_data_layer.cpp: In member function 'virtual void caffe::VideoDataLayer::DataLayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)':
src/caffe/layers/video_data_layer.cpp:92:30: error: 'CV_CAP_PROP_FRAME_COUNT' was not declared in this scope
total_frames_ = cap_.get(CV_CAP_PROP_FRAME_COUNT);
^~~~~~~~~~~~~~~~~~~~~~~
src/caffe/layers/video_data_layer.cpp:97:14: error: 'CV_CAP_PROP_POS_FRAMES' was not declared in this scope
cap_.set(CV_CAP_PROP_POS_FRAMES, 0);
^~~~~~~~~~~~~~~~~~~~~~
make: *** [.build_release/src/caffe/layers/video_data_layer.o] Error 1
Changing to cv::CAP_PROP_FRAME_COUNT fixes, but there are many other constants not recognized. Is Intel Caffe only working with OpenCV 2.4?
The text was updated successfully, but these errors were encountered: