I have a really easy (maybe stupid) question. I have following code to detect aruco markers with the aruco library:
MarkerDetector MDetector;
vector<Marker> Markers;
this->TheCameraParameters.readFromXMLFile(CAMERA_PARAM_FILE);
this->TheCameraParameters.resize(frame.size());
MDetector.detect(frame,Markers, this->TheCameraParameters, MARKER_SIZE);
This code gives me a vector (Markers
) that consists of different detected markers. If I print Markers
out I get following:
24=(304.631,14.2414) (358.085,12.8291) (358.957,69.6651) (306.197,71.0909) Txyz=0.0540816 -0.892379 2.30182 Rxyz=-2.99629 0.0430742 -0.0213533
But now I want to get the pixel values of the marker. With Markers[0].id
,Markers[0].Tvec
,Markers[0].Rvec
I can extract the id, translation and rotation matrix, but I cant find a way to get the pixel values. Can someone help me with this?