Ask Your Question

John Hany's profile - activity

2016-07-28 12:40:53 -0500 received badge  Teacher (source)
2016-07-27 04:49:32 -0500 received badge  Necromancer (source)
2016-07-27 04:36:37 -0500 answered a question feature2d_manual.hpp modifications don't take effect

I've encountered the same issue, and here's my solution:

Copy the folder xfeatures2d and file xfeatures2d.hpp from opencv_contrib/modules/xfeatures2d/include/opencv2 to the OpenCV master path : opencv/modules/features2d/include/opencv2.

And modify the features2d_manual.hpp file as you did.

Copy the brief.cpp file located at opencv_contrib/modules/xfeatures2d/src to your project's jni folder and add brief.cpp to LOCAL_SRC_FILES in your Android.mk.

Make sure you set include ... build/OpenCV-android-sdk/sdk/native/jni/OpenCV.mk path correctly in your Android.mk file.

When build is finished, make sure you re-install the new OpenCV Manager (at build/OpenCV-android-sdk/apk) to your device.

2016-06-04 08:08:43 -0500 received badge  Supporter (source)
2016-04-15 00:27:13 -0500 received badge  Enthusiast
2016-04-10 07:35:27 -0500 received badge  Scholar (source)
2016-04-10 07:35:12 -0500 commented answer OpenCV 3.1 - unresolved external symbol cvUpdateMotionHistory

Switching to updateMotionHistory() worked! Yet, I have to convert IplImage to Mat using cv::cvarrToMat and convert them back afterwards. Thanks anyway!

2016-04-10 05:27:16 -0500 asked a question OpenCV 3.1 - unresolved external symbol cvUpdateMotionHistory

I'm using OpenCV 3.1 and have compiled together opencv_contrib downloaded from GitHub on 2016-3-24.

I have these codes that detect moving vehicles in video and am trying to build it with VS2012 on Windows 7.

One line of the codes is cvUpdateMotionHistory:

cvUpdateMotionHistory( silh, mhi, timestamp, MHI_DURATION );

The only errors I got are these:

1>ocv-test-vc11.obj : error LNK2001: unresolved external symbol cvUpdateMotionHistory
1>E:\projects\C++\OpenCV\ocv-test-vc11\x64\Release\ocv-test-vc11.exe : fatal error LNK1120: 1 unresolved externals

The other lines work just fine, because when I comment out this single line, the solution can be successfully built and run.

I have linked opencv_video310.lib and opencv_optflow310.lib in Linker | Input. In fact, I have linked every single .lib file in my opencv's vc11\lib directory.

How do I solve this LNK error?