예제 #1
0
        private void btnLoad_Click(object sender, EventArgs e)
        {
            eCalibration.Load(visionPath + "\\" + visionFile + "\\Calibration");
            eCalibration.ShowResult();
            eCalibrFindPattern.Load(visionPath + "\\" + visionFile + "\\CalibrationFindPattern");
            eCalibrFindPattern.ShowTrainImage(picCalibrTrainImage);
            eFindPattern.Load(visionPath + "\\" + visionFile + "\\FindPattern");
            eFindPattern.ShowTrainImage(picTrainImage);
            eFindLine_1.Load(visionPath + "\\" + visionFile + "\\FindLine_1");
            eFindLine_2.Load(visionPath + "\\" + visionFile + "\\FindLine_2");

            frmEVision_Load(sender, e);
        }
예제 #2
0
 public void Load()
 {
     try
     {
         eCalibration.Load(visionPath + "\\" + visionFile + "\\" + fileName + "\\Calibration");
         eCalibrFindPattern.Load(visionPath + "\\" + visionFile + "\\" + fileName + "\\CalibrationFindPattern");
         eFindPattern.Load(visionPath + "\\" + visionFile + "\\" + fileName + "\\FindPattern");
         eFindCorner[CornerLine.Line_1].Load(visionPath + "\\" + visionFile + "\\" + fileName + "\\FindLine_1");
         eFindCorner[CornerLine.Line_2].Load(visionPath + "\\" + visionFile + "\\" + fileName + "\\FindLine_2");
     }
     catch (EException exc)
     {
         StackFrame[] stackFrames = new StackTrace(true).GetFrames();
         clsLogFile.LogTryCatch(stackFrames, exc.Message, true, true);
     }
     catch (Exception ex)
     {
         StackFrame[] stackFrames = new StackTrace(true).GetFrames();
         clsLogFile.LogTryCatch(stackFrames, ex.Message, true, true);
     }
 }