Ask Your Question
0

error C2039: 'drawMarker' : is not a member of 'aruco'

asked 2016-02-05 11:56:18 -0600

I get this error for a project with visual studio c++ (version 11.0), windows 7, 32 bit. I used the code from here http://docs.opencv.org/master/d5/dae/... (Marker creation) and included all mentioned files:

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include "aruco.h"
#include "arucofidmarkers.h"
#include "highlyreliablemarkers.h"

using namespace cv;
using namespace std;

int main( int argc, char** argv )
{
    Mat markerImage;
    aruco::Dictionary dictionary = aruco::getPredefinedDictionary(aruco::DICT_4X4_50);
    aruco::drawMarker(dictionary, 23, 96, markerImage, 1);
    return 0;
}

I also made the proper adjustments to the workspace as described in http://docs.opencv.org/2.4/doc/tutori...

I downloaded aruco version 1.3.0 and this function is not found in the files as is DICT_4X4_50, while aruco::Dictionary is present

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-02-06 01:15:22 -0600

berak gravatar image

your tutorial is for using opencv with the aruco wrapper in opencv_contrib , not the original aruco lib.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-05 11:56:18 -0600

Seen: 1,384 times

Last updated: Feb 05 '16