ImageEn

TIEVisionArucoDetector Code Samples


Code samples for TIEVisionArucoDetector (Automatically generated by the Every Method demo).

// Automated test of createArucoDetector
// TIEVisionArucoDetector.detect - Markers Found: 1
detector := IEVisionLib.createArucoDetector();
markers := detector.detect( ImageEnView1.IEBitmap.GetIEVisionImage(), IEVisionRect( 0, 0, 0, 0 )); // Found count: 1
for i := 0 to markers.size() - 1 do
begin
  marker := TIEVisionArucoMarker( markers.getObj( i ));
  r := marker.getBoundingBox();
  Memo1.Lines.Add( Format( 'Id: %d, Quality: %d, Rect: %d,%d,%d,%d', [ marker.getId(), marker.getQuality(), r.x, r.y, r.width, r.height ]));
end;

// Output:
// Id: 1, Quality: -1, Rect: 136,92,262,263