- Home /
opencv split method crashed in unity ,OpenCV split (frame,vector) method crashed in Unity
hi, I create dll with opencv methods for unity but split method crash when I use like below:
extern "C" void __declspec(dllexport) __stdcall Test() { Mat frame; capture >> frame; if (frame.empty()) return;
std::vector channels(3);
split(frame, channels);
} note :I have tried Mat channels[3] instead of std::vector channels(3) it works but I need to solve problem with vector version Have u any idea about it ?,Hi, I create dll with opencv methods but split function crashed when ı use it like below
extern "C" void __declspec(dllexport) __stdcall Test() { Mat frame; capture >> frame; if (frame.empty()) return;
std::vector channels(3);
split(frame, channels);
} note:I have tried Mat channels[3] instead of std::vector channels(3) it works but I need to use vector version Have u any idea about it ?
Your answer
Follow this Question
Related Questions
Mono and missing types using external library 2 Answers
How to make Unity find .dylib files? 5 Answers
OpenCVSharp missing dll 1 Answer