mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-04-01 14:46:39 +08:00
1、添加手眼标定工具,可选择4点或者9点标定,输出标定矩阵
2、修正Halcon引擎运行工具 3、添加相机SDK工具,但需完善 4、HalconTool取图工具增加选择文件夹功能 5、实现Job窗体可添加多个流程
This commit is contained in:
@@ -54,6 +54,10 @@
|
||||
<Project>{1C8D0DDC-2086-48A9-9586-F2B643E2FC54}</Project>
|
||||
<Name>CommonHelper</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\EyeHandCalibTool\EyeHandCalibTool.csproj">
|
||||
<Project>{46ee89bb-5ec9-4ead-9e32-3e57288a0bf7}</Project>
|
||||
<Name>EyeHandCalibTool</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\FindCircle\FindCircleTool.csproj">
|
||||
<Project>{3d2739db-5618-49bf-bf5c-5cccd6a55c64}</Project>
|
||||
<Name>FindCircleTool</Name>
|
||||
@@ -66,10 +70,18 @@
|
||||
<Project>{F5669FB7-77EC-44B9-898B-6D575B7D26EA}</Project>
|
||||
<Name>HalconTool</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\HDevEngineTool\HDevEngineTool.csproj">
|
||||
<Project>{6112406a-a986-4a68-9d22-f0d7f0f81e02}</Project>
|
||||
<Name>HDevEngineTool</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\PMAlignTool\PMAlignTool.csproj">
|
||||
<Project>{C1C08195-2EC8-42E9-93BB-D5331E6C6687}</Project>
|
||||
<Name>PMAlignTool</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SDKCameraTool\SDKCameraTool.csproj">
|
||||
<Project>{1c61f57d-1a36-4a98-b7dd-a65f2dbbe468}</Project>
|
||||
<Name>SDKCameraTool</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using CaliperTool;
|
||||
using CommonMethods;
|
||||
using EyeHandCalibTool;
|
||||
using FindLineTool;
|
||||
using HalconTool;
|
||||
using HDevEngineTool;
|
||||
using PMAlignTool;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -32,7 +34,6 @@ namespace VisionJobFactory
|
||||
toolInput = new List<ToolIO>();
|
||||
toolOutput = new List<ToolIO>() { outputImage };
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 只获取选择工具的描述信息..
|
||||
/// </summary>
|
||||
@@ -41,6 +42,39 @@ namespace VisionJobFactory
|
||||
toolDescription = "Halcon采集图像接口,可直接连接网口、USB等相机";
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
[VisionToolAttribute(ToolType.SDKBasler)]
|
||||
public class SDKBaslerInterface : IToolInfo
|
||||
{
|
||||
// 必添加输出项
|
||||
ToolIO outputImage = new ToolIO("OutputImage", null, DataType.Image);
|
||||
/// <summary>
|
||||
/// 获取工具的所有信息
|
||||
/// </summary>
|
||||
/// <param name="生成的工具名称"></param>
|
||||
public SDKBaslerInterface(string toolName)
|
||||
{
|
||||
enable = true;
|
||||
toolType = ToolType.HalconTool;
|
||||
this.toolName = toolName;
|
||||
tool = new HalconTool.HalconTool();
|
||||
FormTool = null;
|
||||
FormToolName = "SDKBaslerTool.FormSDKBaslerTool";
|
||||
toolInput = new List<ToolIO>();
|
||||
toolOutput = new List<ToolIO>() { outputImage };
|
||||
}
|
||||
/// <summary>
|
||||
/// 只获取选择工具的描述信息..
|
||||
/// </summary>
|
||||
public SDKBaslerInterface()
|
||||
{
|
||||
toolDescription = "Basler相机采集图像接口,可直接连接网口、USB等Basler相机";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
[Serializable]
|
||||
[VisionToolAttribute(ToolType.FindLine)]
|
||||
public class FindLineToolInterface : IToolInfo
|
||||
@@ -108,6 +142,34 @@ namespace VisionJobFactory
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
[VisionToolAttribute(ToolType.HDevEngineTool)]
|
||||
public class HDevEngineToolToolInterface : IToolInfo
|
||||
{
|
||||
ToolIO inputImage = new ToolIO("InputImage", null, DataType.Image);
|
||||
ToolIO inputPos = new ToolIO("InputPos", null, DataType.Pose);
|
||||
ToolIO outObject = new ToolIO("OutObject", null, DataType.Object);
|
||||
public HDevEngineToolToolInterface(string toolName)
|
||||
{
|
||||
enable = true;
|
||||
toolType = ToolType.HDevEngineTool;
|
||||
this.toolName = toolName;
|
||||
tool = new HDevEngineCode();
|
||||
FormToolName = "HDevEngineTool.FormHDevEngineTool";
|
||||
FormTool = null;
|
||||
toolInput = new List<ToolIO>() { inputImage, inputPos };
|
||||
toolOutput = new List<ToolIO>() { outObject };
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 只获取选择工具的描述信息
|
||||
/// </summary>
|
||||
public HDevEngineToolToolInterface()
|
||||
{
|
||||
toolDescription = "使用Halcon引擎直接调用Halcon hdev代码";
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
[VisionToolAttribute(ToolType.PMAlignTool)]
|
||||
public class PMAlignToolToolInterface : IToolInfo
|
||||
@@ -138,4 +200,31 @@ namespace VisionJobFactory
|
||||
toolDescription = "模板匹配工具,可得到根据图像捕获特征的姿态";
|
||||
}
|
||||
}
|
||||
[Serializable]
|
||||
[VisionToolAttribute(ToolType.EyeHandCalib)]
|
||||
public class EyeHandCalibrationInterface : IToolInfo
|
||||
{
|
||||
ToolIO inputPoint = new ToolIO("InputPoint", null, DataType.Point);
|
||||
ToolIO outPose = new ToolIO("GetPose", null, DataType.Pose);
|
||||
ToolIO outPoint = new ToolIO("OutPoint", null, DataType.Point);
|
||||
public EyeHandCalibrationInterface(string toolName)
|
||||
{
|
||||
enable = true;
|
||||
toolType = ToolType.EyeHandCalib;
|
||||
this.toolName = toolName;
|
||||
tool = new EyeHandCalib();
|
||||
FormToolName = "EyeHandCalibTool.FormEyeHandCalib";
|
||||
FormTool = null;
|
||||
toolInput = new List<ToolIO> { inputPoint };
|
||||
toolOutput = new List<ToolIO>() { outPose,outPoint};
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 只获取选择工具的描述信息
|
||||
/// </summary>
|
||||
public EyeHandCalibrationInterface()
|
||||
{
|
||||
toolDescription = "手眼标定工具,根据输入的图像坐标和机械坐标可测得姿态";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user