Пример #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);
            }
Пример #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);
     }
 }
Пример #3
0
 public Editor(ArUcoThreeMarkerLocalizationSettings settings)
 {
     this.settings = settings;
 }