Beispiel #1
0
            public LocalizationSession(ArUcoThreeMarkerSpatialLocalizer localizer, ArUcoThreeMarkerLocalizationSettings settings, IPeerConnection peerConnection) : base()
            {
                this.localizer      = localizer;
                this.settings       = settings;
                this.peerConnection = peerConnection;

                this.localizer.markerDetector.SetMarkerSize(settings.MarkerSize);
                this.coordinateService = new MarkerDetectorCoordinateService(this.localizer.markerDetector, this.localizer.debugLogging);
            }
Beispiel #2
0
 public static bool TryDeserialize(BinaryReader reader, out ArUcoThreeMarkerLocalizationSettings settings)
 {
     try
     {
         settings = new ArUcoThreeMarkerLocalizationSettings
         {
             TopMarkerID    = reader.ReadInt32(),
             MiddleMarkerID = reader.ReadInt32(),
             BottomMarkerID = reader.ReadInt32(),
             MarkerSize     = reader.ReadSingle(),
         };
         return(true);
     }
     catch
     {
         settings = null;
         return(false);
     }
 }
Beispiel #3
0
 public Editor(ArUcoThreeMarkerLocalizationSettings settings)
 {
     this.settings = settings;
 }