opencv_surface_matching400.dll in opencv_ppf.exe: 0xC0000005: Access violation reading location 0x0000022773229068. I
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
not so, it's an os exception, not an opencv one.
Can you suggest me how to solve this problem?
we need a better analysis first, (i guess)
does the same happen with the supplied models ?
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
I tried with the supplied model but the same problem
removing all file from linker and adding only opencv_surface_matching400d.dll solve this problem but a new problem is showing "Hashkey error"
https://github.com/opencv/opencv_cont...
https://github.com/opencv/opencv_cont...
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