Example #1
0
        public static VideoFrames FromMultipleScreenshots(List<System.Drawing.Bitmap> screenshots)
        {
            VideoFrames frames = new VideoFrames();
            frames._mode = Mode.MultipleFrames;
            frames._multipleScreenshots = new List<System.Drawing.Bitmap>(screenshots);

            return frames;
        }
Example #2
0
        public static VideoFrames FromAnnotations(LayerInterpretationLogic logic)
        {
            VideoFrames frames = new VideoFrames();
            frames._mode = Mode.Annotations;

            frames._annotationImages = GetAllImageIdsUsingAllLibrariesFromLayers(logic);

            return frames;
        }
Example #3
0
        public static VideoFrames FromMultipleScreenshots(List <System.Drawing.Bitmap> screenshots)
        {
            VideoFrames frames = new VideoFrames();

            frames._mode = Mode.MultipleFrames;
            frames._multipleScreenshots = new List <System.Drawing.Bitmap>(screenshots);

            return(frames);
        }
Example #4
0
        public static VideoFrames FromAnnotations(LayerInterpretationLogic logic)
        {
            VideoFrames frames = new VideoFrames();

            frames._mode = Mode.Annotations;

            frames._annotationImages = GetAllImageIdsUsingAllLibrariesFromLayers(logic);

            return(frames);
        }
Example #5
0
        public static VideoInterpreter FromAnnotations(LayerInterpretationLogic logic)
        {
            VideoInterpreter i = new VideoInterpreter(logic);


            i._frames = VideoFrames.FromAnnotations(logic);

            i._interpretFrame          = new Thread(i._interpretFrame_DoWork);
            i._interpretFrame.Priority = ThreadPriority.Highest;
            i._interpretFrame.Start();

            i._framesCollection = new VirtualizingCollection <BitmapSource>(i.FrameCount, i.GetFramesInRange);

            return(i);
        }
Example #6
0
        public static VideoInterpreter FromMultipleScreenshots(IEnumerable <string> files, PrefabInterpretationLogic logic)
        {
            VideoInterpreter             i           = new VideoInterpreter(logic);
            List <System.Drawing.Bitmap> screenshots = new List <System.Drawing.Bitmap>();

            foreach (string file in files)
            {
                System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(file);
                screenshots.Add(bmp);
            }


            i._frames                  = VideoFrames.FromMultipleScreenshots(screenshots);
            i._interpretFrame          = new Thread(i._interpretFrame_DoWork);
            i._interpretFrame.Priority = ThreadPriority.Highest;
            i._interpretFrame.Start();
            i._framesCollection = new VirtualizingCollection <BitmapSource>(i.FrameCount, i.GetFramesInRange);

            return(i);
        }