Exemplo n.º 1
0
        private void AddPersonPictureToTrainDlg()
        {
//             ImageAndPicturebox t=new ImageAndPicturebox();
//             ImageAndPicturebox tt=new ImageAndPicturebox();
//             foreach (ImageAndPicturebox imaAndPicbox in m_trainDlg.baseList)
//             {
//                 t=imaAndPicbox;
//             }
//             Point point=t.pictureBox.Location;
//             Size size=t.pictureBox.Size;
//             tt.pictureBox.Location=new Point();

//             PictureBoxLZ pictureBox = new PictureBoxLZ();
//             ImageList imageList = new ImageList();
//             string imagePath = m_faceBase.rootPath + m_selectedPersonName + "\\"+m_selectedPersonName+"10.bmp";
//             Image image = Image.FromFile(imagePath);
//             imageList.Images.Add(image);
//             pictureBox.Image = image;
//             m_trainDlg.m_imageList.Images.Add(image);
//
//             ImageAndPicturebox imgAndPicbox = new ImageAndPicturebox();
//             imgAndPicbox.pictureBox = pictureBox;
//             imgAndPicbox.imageList = imageList;
//             m_trainDlg.baseList.Add(imgAndPicbox);
//             m_trainDlg.Controls.Add(pictureBox);
//             m_trainDlg.SetPicLayout();

//             m_faceBase = new FaceBase(m_selectedPersonName);
//             m_trainDlg.m_faceBase.GetTrainPersonImagesInfo(out m_personImagesInfo);
//             FillImageList();
//             GetRectImageList();
//             SetPicLayout();
            /*ShowTrainDlg(m_selectedPersonName);*/
            //m_trainDlg.ReLoad(m_selectedPersonName);
            m_trainDlg.AddNewPicbox();
        }
Exemplo n.º 2
0
 private void AddPersonPictureToTrainDlg()
 {
     m_trainDlg.AddNewPicbox();
 }