Example #1
0
 private void InitUV2XYParam()
 {
     try
     {
         _station.List_UV2XYResult = new List <HTuple>();
         tool_vision = new ToolKits.FunctionModule.Vision();
         for (int i = 0; i < _station.Num_Camera; i++)
         {
             HTuple Item_UV2XYResult = null;
             //if (!obj_camera[i].isEnable)
             //{
             //    Item_UV2XYResult = new HTuple(-1);
             //    _station.List_UV2XYResult.Add(Item_UV2XYResult);
             //    continue;
             //}
             if (File.Exists(_station.SystemUV2XYDir + "\\Camera_" + i + "\\" + "UV2XY" + ".dat"))
             {
                 tool_vision.read_hom2d(_station.SystemUV2XYDir + "\\Camera_" + i + "\\" + "UV2XY" + ".dat", out Item_UV2XYResult);
                 _station.List_UV2XYResult.Add(Item_UV2XYResult);
             }
             else
             {
                 Item_UV2XYResult = new HTuple(-1);
                 _station.List_UV2XYResult.Add(Item_UV2XYResult);
             }
         }
     }
     catch (Exception ex)
     {
         HTUi.PopError("无法读取UV-XY结果文件:" + ex.ToString());
     }
 }
Example #2
0
 public FormUV2XY()
 {
     InitializeComponent();
     tool_vision = new ToolKits.FunctionModule.Vision();
     aoiHoms     = new HTuple();
 }