Пример #1
0
        public ExhaustiveTemplateMatchingInspector()
        {
            var imageRetriever = new ImageRetriever();

            imageRetriever.ImageRetrievedEvent += (sender, args) =>
            {
                _image = ((ImageRetrievedEventArgs)args).Image;

                _lastSimilarity = GetSimilarity();
            };
            imageRetriever.Start();
        }
Пример #2
0
        public MotionDetectingInspector()
        {
            _objectsProcessing = new BlobCountingObjectsProcessing()
            {
                HighlightColor         = Color.Red,
                HighlightMotionRegions = true,
                MinObjectsHeight       = 5,
                MinObjectsWidth        = 5
            };

            _motionDetector = new MotionDetector(new TwoFramesDifferenceDetector(true)
            {
            }, _objectsProcessing);

            var imageRetriever = new ImageRetriever();

            imageRetriever.ImageRetrievedEvent += OnImageRetrieved;

            imageRetriever.Start();
        }