Exemple #1
0
        public Video()
        {
            Camera = new CameraWrapper(0, null);
            Gender = new LibCaffeWrapper(0);
            Age    = new LibCaffeWrapper(1);
            //ANG = new LibCaffeWrapper(0);
            Gender.Predict(StartLoc + "\\m\\deploy_gender.prototxt",
                           StartLoc + "\\m\\gender_500001229.caffemodel",
                           StartLoc + "\\m\\g_mean1229.binaryproto",
                           StartLoc + "\\example_image.jpg");
            Age.Predict(StartLoc + "\\m\\deploy_age.prototxt",
                        StartLoc + "\\m\\age_net.caffemodel",
                        StartLoc + "\\m\\g_mean1229.binaryproto",
                        StartLoc + "\\example_image.jpg");

            //ANG.ANGPredict(Application.StartupPath + "\\m\\deploy_age.prototxt",
            //       Application.StartupPath + "\\m\\age_net.caffemodel",
            //       Application.StartupPath + "\\m\\g_mean1229.binaryproto",
            //       Application.StartupPath + "\\m\\deploy_gender.prototxt",
            //        Application.StartupPath + "\\m\\gender_500001229.caffemodel",
            //        Application.StartupPath + "\\m\\g_mean1229.binaryproto",
            //       Application.StartupPath + "\\example_image.jpg");
            //MessageBox.Show(Application.StartupPath);
            InitializeComponent();
            axWindowsMediaPlayer2.windowlessVideo = false;
            axWindowsMediaPlayer2.uiMode          = "none";
        }
Exemple #2
0
 public UploadMode()
 {
     InitializeComponent();
     //Gender = new LibCaffeWrapper(0);
     //Age = new LibCaffeWrapper(1);
     ANG = new LibCaffeWrapper(0);
     axWindowsMediaPlayer2.windowlessVideo = false;
     axWindowsMediaPlayer2.uiMode          = "none";
 }