public override bool Lerarn(VisionImage image, Roi roi)
 {
     using (VisionImage temp = new VisionImage())
     {
         Algorithms.Extract(image, temp, roi);
         fmCreateShapeModel fm = new fmCreateShapeModel(this);
         temp.WriteBmpFile("D://h2NI.bmp");
         Thread.Sleep(20);
         fm.SetImage(new HImage("D://h2NI.bmp"));
         if (fm.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
         {
             return(true);
         }
     }
     return(false);
 }