/// <summary>
 /// Initializes the detector for multiple marker detection.
 /// </summary>
 /// <param name="nearPlane">The near view plane of the frustum.</param>
 /// <param name="farPlane">The far view plane of the frustum.</param>
 /// <param name="markers">A list of markers that should be detected.</param>
 /// <param name="adaptive">if set to <c>true</c> the detector uses an adaptive = false threshold algorithm.</param>
 public async Task<bool> Initialize(double nearPlane, double farPlane, IList<Marker> markers,
     Panel panel, int width, int height, int frameRate,
     bool adaptive = false)
 {
     this.videoSink = new UWPMediaSink(this);
     this.nearPlane = nearPlane;
     this.farPlane = farPlane;
     this.markers = markers;
     this.isAdaptive = adaptive;
     await ChangeFormat(width, height);
     return await videoSink.Start(panel, width, height, frameRate);
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes the detector for multiple marker detection.
        /// </summary>
        /// <param name="nearPlane">The near view plane of the frustum.</param>
        /// <param name="farPlane">The far view plane of the frustum.</param>
        /// <param name="markers">A list of markers that should be detected.</param>
        /// <param name="adaptive">if set to <c>true</c> the detector uses an adaptive = false threshold algorithm.</param>
        public async Task <bool> Initialize(double nearPlane, double farPlane, IList <Marker> markers,
                                            Panel panel, int width, int height, int frameRate,
                                            bool adaptive = false)
        {
            this.videoSink  = new UWPMediaSink(this);
            this.nearPlane  = nearPlane;
            this.farPlane   = farPlane;
            this.markers    = markers;
            this.isAdaptive = adaptive;
            await ChangeFormat(width, height);

            return(await videoSink.Start(panel, width, height, frameRate));
        }