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

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

Dasom gravatar image

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

Hello everyone!

I am trying to run camera calibration code on my Desktop(Ubuntu 14.04) :

I tried to adapt solutions but it didn't work....:

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;
            mode = DETECTION;
    if (view.empty())          
        if (imagePoints.size() > 0)//This part!!
            runCalibrationAndSave(s, imageSize, cameraMatrix, distCoeffs, imagePoints);

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


please replace those screenshots with a text version

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