Ask Your Question
0

how do I add missing module cv::drawFrameAxes without breaking installation

asked 2020-10-02 15:57:55 -0600

superfly gravatar image

updated 2020-10-02 16:28:04 -0600

I haven't had any problem with current opencv until I tried to use for the first time: cv::drawFrameAxes(...

Compiler VS2017

Error C3861 'drawFrameAxes': identifier not found solutionTransformObjPoints Error C2039 'drawFrameAxes': is not a member of 'cv' solutionTransformObjPoints c:\users\clang\desktop\working folder\solutiontransformobjpoints\solutiontransformobjpoints\solutiontransformobjpoints.cpp 263

Can any one help me fix this? I don't want to break this installation over a module.

General configuration for OpenCV 3.4.1 ===================================== Version control: 3.4.1

Platform: Timestamp: 2018-02-23T13:47:28Z Host: Windows 10.0.16299 AMD64 CMake: 3.9.3 CMake generator: Visual Studio 15 2017 Win64 CMake build tool: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional/MSBuild/15.0/Bin/MSBu

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2020-10-03 01:58:03 -0600

berak gravatar image

3.4.1 is very old, and does not have this function.

please update to a more recent release.

edit flag offensive delete link more

Comments

Thank you. Can you please recommend a site/tutorial that you trust for upgrading opencv, if that's allowed?

superfly gravatar imagesuperfly ( 2020-10-03 12:05:37 -0600 )edit
3

answered 2020-10-07 14:36:18 -0600

superfly gravatar image

Ok, so to benefit from the drawFrameAxes function per Berak's assessment I reluctantly at first upgraded to Opencv 4.4. I turns out the upgrade was very easy, in part because I don't run multiple versions of OpenCV. Below I document the upgrade using Windows binaries for Visual Studio.

I backed up my current version to something somewhat arbitrary. Next I downloaded the prebuilt windows opencv binaries(.exe file) at source forge for Visual Studio. I extracted the package files to "opencv" folder, the folder I just vacated above. Now I have a backup copy and fresh 4.4 install at c:\opencv. Next I had to upgrade all of my projects by reconfiguring just a few Visual Studio properties:

opencv_core246d.lib was removed from 'Additional Dependencies' replaced with opencv_world440.lib;opencv_world440d.lib Removed cv.h & highgui.h from #include in main (4.0 doesn't support including this anymore ) truncated CV_FILLED to FILLED and CV_WINDOW_AUTOSIZE to WINDOW_AUTOSIZE You can extrapolate from here what to di if you have some variations. Make sure: (Visual Studio) Configuration Properties:

C/C++:

Additional Include Directories:C:\opencv\build\include;

Linker/General:

Additional Library Directories:C:\opencv\build\x64\vc15\lib

Linker/Input: opencv_world440.lib; opencv_world440d.lib;

Of course OpenCV: General configuration for OpenCV 4.4.0 ===================================== Version control: 4.4.0

IF you are going to create new projects, just create them with the changes above.image description

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-10-02 15:57:55 -0600

Seen: 737 times

Last updated: Oct 07 '20