First time here? Check out the FAQ!

Ask Your Question
0

opencv_surface_matching400.dll in opencv_ppf.exe: 0xC0000005: Access violation reading location 0x0000022773229068. I

asked Oct 19 '18

Joy Mazumder gravatar image

Hello, I am trying to run this code

#include<opencv2\surface_matching.hpp>
#include <iostream>
#include "opencv2/core/utility.hpp"
#include "opencv2/surface_matching/ppf_helpers.hpp"

using namespace std;
using namespace cv;
using namespace ppf_match_3d;

int main()
{
Mat pc = loadPLYSimple("chicken_down.ply", 1);

// Now train the model
cout << "Training..." << endl;
int64 tick1 = cv::getTickCount();
ppf_match_3d::PPF3DDetector detector(0.025, 0.05);
detector.trainModel(pc);
int64 tick2 = cv::getTickCount();
cout << endl << "Training complete in "
    << (double)(tick2 - tick1) / cv::getTickFrequency()
    << " sec" << endl << "Loading model..." << endl;

// Read the scene
Mat pcTest = loadPLYSimple("rs13_down.ply", 1);

// Match the model to the scene and get the pose
cout << endl << "Starting matching..." << endl;
vector<Pose3DPtr> results;
tick1 = cv::getTickCount();
detector.match(pcTest, results, 1.0 / 40.0, 0.05);
tick2 = cv::getTickCount();
cout << endl << "PPF Elapsed Time " <<
    (tick2 - tick1) / cv::getTickFrequency() << " sec" << endl;


return 0;
    }

But it gives me the following runtime error :

Exception thrown at 0x00007FFD91F18804 (opencv_surface_matching400.dll) in opencv_ppf.exe: 0xC0000005: Access violation reading location 0x000001AC8B1FAD48.

If there is a handler for this exception, the program may be safely continued.

All paths are ok and I tried both Debug and release mode. I am using Opencv-4.0.0, VS-2015

Preview: (hide)

Comments

If there is a handler for this exception, the program may be safely continued.

not so, it's an os exception, not an opencv one.

berak gravatar imageberak (Oct 19 '18)edit

Can you suggest me how to solve this problem?

Joy Mazumder gravatar imageJoy Mazumder (Oct 19 '18)edit

we need a better analysis first, (i guess)

does the same happen with the supplied models ?

berak gravatar imageberak (Oct 19 '18)edit

I don't have those supplied models. I download a dataset from online any downsampled those using voxid grid filter on python. After that, I am trying run this code

Joy Mazumder gravatar imageJoy Mazumder (Oct 19 '18)edit

I tried with the supplied model but the same problem

Joy Mazumder gravatar imageJoy Mazumder (Oct 20 '18)edit

removing all file from linker and adding only opencv_surface_matching400d.dll solve this problem but a new problem is showing "Hashkey error"

Joy Mazumder gravatar imageJoy Mazumder (Oct 20 '18)edit

Try to run : G:\Lib\build\opencv\bin\Release\example_surface_matching_ppf_load_match.exe g:/lib/opencv_contrib/modules/surface_matching/samples/data/parasaurolophus_6700.ply g:/lib/opencv_contrib/modules/surface_matching/samples/data/parasaurolophus_low_normals2.ply

Ihaven't got tbb and openmp

LBerger gravatar imageLBerger (Oct 20 '18)edit

1 answer

Sort by » oldest newest most voted
1

answered Oct 23 '18

Joy Mazumder gravatar image

It solved Thank you

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Oct 19 '18

Seen: 877 times

Last updated: Oct 19 '18