can not read marker (pat file) from markers list

Oct 10, 2011 at 9:52 PM

i want read pat file from the makers list .. to choose video or image by the markerfor example  i want ask if i can when read marker (1.pat ) play the 1.wma then read another marker (2.pat) play the 2.wma ... ??
thank you 

Feb 4, 2012 at 9:42 PM

When you load your markers, be sure to set their name:

         var marker = Marker.LoadFromResource("data/Marker_SLAR_16x16segments_80width.pat", 16, 16, 80, "1.wma");

         var marker = Marker.LoadFromResource("data/Marker_SLAR_16x16segments_80width.pat", 16, 16, 80, "2.wma");

// etc

Then after calling

var dr = arDetector.DetectAllMarkers(buffer, pixelWidth, pixelHeight);

you can check which marker was seen, and play the video related with that marker

foreach(DetectionResult result in dr)

if(result.Marker.Name == "1.wma")  // associate with video 1.wma

else if(result.Marker.Name == "2.wma")  // associate with video 2.wma