Ask Your Question
0

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

asked 2018-10-19 11:08:11 -0600

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

edit retag flag offensive close merge delete

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 ( 2018-10-19 11:10:33 -0600 )edit

Can you suggest me how to solve this problem?

Joy Mazumder gravatar imageJoy Mazumder ( 2018-10-19 11:34:34 -0600 )edit

we need a better analysis first, (i guess)

does the same happen with the supplied models ?

berak gravatar imageberak ( 2018-10-19 11:39:29 -0600 )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 ( 2018-10-19 17:20:30 -0600 )edit

I tried with the supplied model but the same problem

Joy Mazumder gravatar imageJoy Mazumder ( 2018-10-19 18:26:06 -0600 )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 ( 2018-10-19 19:19:46 -0600 )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 ( 2018-10-20 02:53:36 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-10-23 11:10:43 -0600

Joy Mazumder gravatar image

It solved Thank you

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-10-19 11:08:11 -0600

Seen: 867 times

Last updated: Oct 19 '18