none
Opencv split(frame,std::Vector<cv::Mat>) crashed RRS feed

  • Question

  • 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 :(


    • Moved by Baron Bi Friday, December 8, 2017 8:18 AM Third-party library issue
    Tuesday, December 5, 2017 8:18 AM

All replies

  • Hello,

    for OpenCV specific questions you should better ask here: http://answers.opencv.org/questions/

    Regards, Guido

    Tuesday, December 5, 2017 8:40 AM
  • Hi zehra_sahin,

    thanks for posting here.

    As Guido said, this forum is about c++ development with Microsoft products. For your case, please post on OpenCV forum page for better support.

    Your understanding and cooperation will be grateful.

    Best Regards,

    Baron Bi


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, December 6, 2017 1:20 AM