Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv split(frame,std::Vector<cv::mat>) crashed

Hi,

I try to create dll using opencv methods for unity but I run my dll with split function ,my app crash

extern "C" void __declspec(dllexport) __stdcall Test() { Mat frame; capture >> frame; if (frame.empty()) return;

std::vector<mat> channels(3);

split(frame, channels);

}

I cant use Vector in split ,I try like below

extern "C" void __declspec(dllexport) __stdcall Test() { Mat frame; capture >> frame; if (frame.empty()) return;

Mat channles[3];

split(frame, channels);

}

it works but I need to use vector version How can I solve my problem ?

please help me :(

Opencv split(frame,std::Vector<cv::mat>) crashed

Hi,

I try to create dll using opencv methods for unity but I run my dll with split function ,my app crash

extern "C" void __declspec(dllexport) __stdcall Test() { Mat frame; capture >> frame; if (frame.empty()) return;

std::vector<mat> channels(3);

split(frame, channels);

}

I cant use Vector in split ,I try like below

extern "C" void __declspec(dllexport) __stdcall Test()
{
Mat frame;
capture >> frame;
if (frame.empty())
return;

return; Mat channles[3];

Mat channles[3];

split(frame, channels);

split(frame, channels);

}

}

it works but I need to use vector version How can I solve my problem ?

please help me :(

Opencv split(frame,std::Vector<cv::mat>) crashed

Hi,

I try to create dll using opencv methods for unity but I run my dll with split function ,my app crash

extern "C" void __declspec(dllexport) __stdcall Test() { Mat frame; capture >> frame; if (frame.empty()) return;

std::vector<mat> channels(3);

split(frame, channels);

}

I cant use Vector in split ,I try like below

extern "C" void __declspec(dllexport) __stdcall Test() { Mat frame; capture >> frame; if (frame.empty()) return; return;

Mat channles[3]; channles[3];

split(frame, channels); channels);

}

}

it works but I need to use vector version How can I solve my problem ?

please help me :(

Opencv split(frame,std::Vector<cv::mat>) crashed

Hi,

I try to create dll using opencv methods for unity but I run my dll with split function ,my app crash

extern "C" void __declspec(dllexport) __stdcall Test()
{
Mat frame;
capture >> frame;
if (frame.empty())
return;

return; std::vector<Mat> channels(3);

std::vector<mat> channels(3);

split(frame, channels);

split(frame, channels);

}

}

I cant use Vector in split ,I try like below

extern "C" void __declspec(dllexport) __stdcall Test()
{
Mat frame;
capture >> frame;
if (frame.empty())
return;

return; Mat channles[3];

Mat channles[3];

split(frame, channels);

split(frame, channels);

}

}

it works but I need to use vector version How can I solve my problem ?

please help me :(

Opencv split(frame,std::Vector<cv::mat>) crashed

Hi,

I try to create dll using opencv methods for unity but I run my dll with split function ,my app crash

extern "C" void __declspec(dllexport) __stdcall  Test()
{
Mat frame;
capture >> frame;
if (frame.empty())
return;

std::vector<Mat> channels(3);

split(frame, channels);

}

I cant use Vector in split ,I try like below

extern "C" void __declspec(dllexport) __stdcall  Test()
{
Mat frame;
capture >> frame;
if (frame.empty())
return;

Mat channles[3];
channels[3];

split(frame, channels);

}

it works but I need to use vector version How can I solve my problem ?

please help me :(