AKAZE local feature matching demo error

asked 2018-11-02 13:52:32 -0600

I am trying to run the demo code for the AKAZE feature matching demo. Im using OpenCV version 3.4.3 with visual studios and keep running into errors. The code can been seen on this link.


It usually causes the error with the line "akaze->detectAndCompute(img1, noArray(), kpts1, desc1);" I have already checked and the image is not empty. The error says

Exception thrown at 0x00007FFC688B7142 (opencv_world343.dll) in Project3.exe: 0xC0000005: Access violation reading location 0x000000003C77AD68.

Any help would be greatly appreciated!

edit retag flag offensive close merge delete


which VS version are you using here ?

are you sure to use the right libs ? (vc14 -> VS2015, vc15 -> VS2017) ?

berak gravatar imageberak ( 2018-11-02 14:23:21 -0600 )edit

I am using VS 2015 but thought that meant vc15 it is now changed to vc14. I have had opencv_world343.lib;opencv_world343d.lib added to linker->input which is what I believe I was suppose to do. It is give me the error

Exception thrown at 0x00007FFCAD6346A7 (concrt140.dll) in OpenCV_Test.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.

cmohr368 gravatar imagecmohr368 ( 2018-11-02 15:02:00 -0600 )edit

don't use both release and debug libs at the same time !

the release lib should ONLY be linked to your RELEASE project, and the debug lib to the DEBUG one.

berak gravatar imageberak ( 2018-11-03 07:44:08 -0600 )edit

problem is entirely unrelated to AKAZE. you just don't know, how to use your IDE correctly. :)

berak gravatar imageberak ( 2018-11-03 07:44:58 -0600 )edit