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.
https://docs.opencv.org/3.4.3/db/d70/tutorial_akaze_matching.html
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!