Ask Your Question

Dasom's profile - activity

2016-10-18 23:08:16 -0600 received badge  Editor (source)
2016-10-18 01:50:12 -0600 asked a question OpenCV Error: Bad argument (Unknown array type) in cvarrToMat

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!

2016-10-17 18:20:13 -0600 commented question OpenCV Error: Bad argument (Unknown array type) in cvarrToMat

Hello! I faced same problems. How can you solve them? I tried everything in google...