コード例 #1
0
ファイル: Program.cs プロジェクト: kestutis100/ACIS_showcase
        static void Main(string[] args)
        {
            var             templates = new List <Mat>();
            AppDomain       domain    = Startup();
            ObjectDetection detector  = new ObjectDetection();
            var             img_path  = Path.Combine(SolutionDir.ToString(), Data.Constants.filename_bot + ".jpg");

            var img = CvInvoke.Imread(img_path, ImreadModes.AnyColor);

            templates = detector.Load_tempaltes(SolutionDir.ToString());
            detector.Init_detection(0.96);
            detector.Match_templates(img, templates);
        }