OpenCV Error: Bad argument (Unknown array type) in cvarrToMat [closed]

asked 2016-10-18 01:50:12 -0600

Dasom gravatar image

updated 2016-10-18 23:08:16 -0600

Hello everyone!

I am trying to run camera calibration code on my Desktop(Ubuntu 14.04) : http://docs.opencv.org/2.4/doc/tutori...

I tried to adapt solutions but it didn't work....: http://answers.opencv.org/question/53...

Here is the result of terminal. I set right file path and checked board sizes. image description

Here is part of main code in above site caused error.

for (int i = 0;; ++i)
{
    Mat view;
    bool blinkOutput = false;

    view = s.nextImage();

    if (mode == CAPTURING && imagePoints.size() >= (unsigned)s.nrFrames)
    {
        if (runCalibrationAndSave(s, imageSize, cameraMatrix, distCoeffs, imagePoints))
            mode = CALIBRATED;
        else
            mode = DETECTION;
    }
    if (view.empty())          
    {
        if (imagePoints.size() > 0)//This part!!
            runCalibrationAndSave(s, imageSize, cameraMatrix, distCoeffs, imagePoints);
        break;
    }

I will be waiting for your answers. Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Dasom
close date 2017-03-17 03:32:52.585760

Comments

please replace those screenshots with a text version

berak gravatar imageberak ( 2016-10-18 02:47:30 -0600 )edit