Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘Rodrigues’ is not a member of ‘cv’ #21

Closed
ronyuzhang opened this issue Oct 17, 2017 · 11 comments
Closed

error: ‘Rodrigues’ is not a member of ‘cv’ #21

ronyuzhang opened this issue Oct 17, 2017 · 11 comments

Comments

@ronyuzhang
Copy link

when i use "make" to compile this project, i have a mistake as follows:

/home/zhangyao/zyao/3dmm_cnn/modules/PoseExpr/src/BaselFaceEstimator.cpp: In member function ‘void BaselFaceEstimator::estimatePose3D(cv::Mat, cv::Mat, cv::Mat, cv::Mat&, cv::Mat&)’:
/home/zhangyao/zyao/3dmm_cnn/modules/PoseExpr/src/BaselFaceEstimator.cpp:207:2:
error: ‘Rodrigues’ is not a member of ‘cv’
cv::Rodrigues(rMatP, rVec);
^
modules/PoseExpr/CMakeFiles/PoseExprLib.dir/build.make:134: recipe for target 'modules/PoseExpr/CMakeFiles/PoseExprLib.dir/src/BaselFaceEstimator.cpp.o' failed
make[2]: *** [modules/PoseExpr/CMakeFiles/PoseExprLib.dir/src/BaselFaceEstimator.cpp.o] Error 1
CMakeFiles/Makefile2:140: recipe for target 'modules/PoseExpr/CMakeFiles/PoseExprLib.dir/all' failed
make[1]: *** [modules/PoseExpr/CMakeFiles/PoseExprLib.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

i installed opencv 2.4.13 .

@anhttran
Copy link
Owner

I am sorry for my late response.
Your code may link to a wrong OpenCV version. Instead of running "make", you can run "make VERBOSE=1" and check the terminal output.
Best,
Anh

@msiraj83
Copy link

@anhttran .. yes. i have the same problem. My opecv version is 3.3.0. Can you tell us how to change the code for opencv 3.3.0.

@msiraj83
Copy link

How we can run this code in opencv3.3.0 ??? I think there will some changes regarding contrib module. Can anybody help in this regards..

@msiraj83
Copy link

I install the dependices on other system and install opencv2.4.9 version. Its compile successfully..

@QuantumLiu
Copy link

Same problem, my opencv version is 3.3.1 .

@anhttran
Copy link
Owner

My code currently supports only OpenCV 2. Please install OpenCV 2 (e.g. opencv2.4.9) and config your code to use it.

Best,
Anh

@QuantumLiu
Copy link

I edited codes to supports opencv3

@leaf918
Copy link

leaf918 commented Dec 26, 2017

@QuantumLiu how to edit the code?

@QuantumLiu
Copy link

@leaf918 It's quite complex.The key point is those member functions is contain in opencv3/xxx.h instead of cv2.h

@leaf918
Copy link

leaf918 commented Dec 27, 2017

To fix this problem ,my solution is install opencv 2413 aside opencv3x,and modify the cmakelist.txt file in the project with refer opencv2413.

@chenmingjiong
Copy link

Add this line:
#include <opencv2/calib3d.hpp>
(I find it when searching for "Rodrigues" in https://docs.opencv.org/4.1.2/.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants