コード例 #1
0
        private VideoSurveillanceTarget(VideoSurveillanceDecider decider, int id, VideoTargetType targetType)
        {
            _decider = decider;
            TargetType = targetType;
            ID = id;

            // prepare some items to help drawing the object on Image:
            this.imgWidth = _decider.imgWidth;
            this.imgHeight = _decider.imgHeight;
            switch (targetType)
            {
                case VideoTargetType.ColorBlob:
                    drawingRectangeColor = new Bgr(64.0, 64.0, 255.0);
                    drawingRectangeColorMain = new Bgr(32.0, 32.0, 255.0);
                    drawingLabelColor = new Bgr(255.0, 255.0, 128.0);
                    break;

                case VideoTargetType.SurveillanceBlob:
                    drawingRectangeColor = new Bgr(64.0, 255.0, 64.0);
                    drawingRectangeColorMain = new Bgr(32.0, 32.0, 255.0);
                    drawingLabelColor = new Bgr(255.0, 255.0, 128.0);
                    break;
            }
        }
コード例 #2
0
 public VideoSurveillanceTarget(VideoSurveillanceDecider decider, int id, ContourContainer contour, double currentPanKinect, double currentTiltKinect)
     : this(decider, id, VideoTargetType.ColorBlob)
 {
     Update(contour, currentPanKinect, currentTiltKinect);
 }
コード例 #3
0
 public VideoSurveillanceTarget(VideoSurveillanceDecider decider, int id, MCvBlob blob, double currentPanKinect, double currentTiltKinect)
     : this(decider, id, VideoTargetType.SurveillanceBlob)
 {
     Update(blob, currentPanKinect, currentTiltKinect);
 }