Reading vector array from xml and plotting with C++

evilthoutz

New Member
I have an xml file created by facetracking software that gives me a rotation vector as well as scale and the translation from the origin point; that looks like this:\[code\]<frame_00002> <pose type_id="opencv-matrix"> <rows>6</rows> <cols>1</cols> <dt>d</dt> <data> 9.6603986167822176e-02 2.7534827334102827e-02 -7.9839974858475181e-03 2.9772357539313782e+02 2.6446663460538508e+02 1.5645098067258549e+00</data></pose> <expertCode>0</expertCode> <autoCode>0</autoCode></frame_00002><frame_00003> <pose type_id="opencv-matrix"> <rows>6</rows> <cols>1</cols> <dt>d</dt> <data> 1.0187608265041730e-01 2.8984836144167535e-02 -7.9697940478802159e-03 2.9742324703322168e+02 2.6468969967155004e+02 1.5651008724889099e+00</data></pose> <expertCode>0</expertCode> <autoCode>0</autoCode></frame_00003>\[/code\]What I would like to know is this; how I could read the vectors from this xml file and plot them over the video file using C++?I am using Xcode on OS XThanks
 
Back
Top