ARKitExperiments
ARKitExperiments copied to clipboard
Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) in MatchDescriptors
Hello,
I am trying to get OpenCV and ARKit to work as you did, but I am getting the error in the title testing out the build. It happens when I tap on the screen during the openCV example.
I am using the same versions of everything you have in your readme.md and put the OpenCV framework in the folders mentioned.
After I drag the framework into the folder is there any extra work I have to do?
Thank you in advance!
Hello, getting same error. Did you get to solve it somehow? I tried with the provided compiled native plugin and also compiling directly the native plugin in the exported project from Unity (2017.3.1f1)
the trace:
#0 0x00000001018fa6f8 in cv::flann::KDTreeIndexParams::KDTreeIndexParams(int) ()
#1 0x0000000100b174d4 in cv::Ptr<cv::flann::KDTreeIndexParams> cv::makePtr<cv::flann::KDTreeIndexParams>() at ./TestOpenCV/Frameworks/Plugins/OpencvProcessing/opencv2.framework/Headers/core/ptr.inl.hpp:301
#2 0x0000000100b16b3c in ::MatchDescriptors(uchar *, int, int, int *) at ./TestOpenCV/Libraries/Plugins/iOS/OpencvProcessing/matchdescriptors.cpp:26
I was able to solve this issue by adding the opencv2 framework in the Xcode project after building from Unity.
You can do this by adding the opencv2.framework
file in the "Linked Frameworks and Libraries" section of the Xcode project (see screenshot below)
I don't exactly know what caused this issue, but I think there might me something wrong with the readme, which mentions a folder that is not even present in the repository:
Assets/Plugins/iOS/OpenCVProcessing & NativePluginCode/opencvprocessing/
use cocoapod -> pod "OpenCV2" will work