增加卡尺工具,修复了一些bug

This commit is contained in:
liu.wenjie
2019-08-13 13:57:51 +08:00
committed by liu.wenjie
parent 4dbab27caf
commit ca7c7ec644
132 changed files with 1315 additions and 259 deletions
+4
View File
@@ -46,6 +46,10 @@
<Compile Include="VisionToolList.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CaliperTool\CaliperTool.csproj">
<Project>{AABF8D49-FA00-4E25-9410-4A573D48DAB1}</Project>
<Name>CaliperTool</Name>
</ProjectReference>
<ProjectReference Include="..\CommonMethods\CommonHelper.csproj">
<Project>{1C8D0DDC-2086-48A9-9586-F2B643E2FC54}</Project>
<Name>CommonHelper</Name>
+30
View File
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CaliperTool;
using CommonMethods;
using FindLineTool;
using HalconTool;
@@ -67,6 +68,35 @@ namespace VisionJobFactory
}
}
[VisionToolAttribute(ToolType.Caliper)]
public class CaliperInterface : IToolInfo
{
ToolIO inputImage = new ToolIO("InputImage", null, DataType.Image);
ToolIO inputCenterRow = new ToolIO("inputCenterRow", null, DataType.IntValue);
ToolIO inputCenterColumn = new ToolIO("inputCenterColumn", null, DataType.IntValue);
ToolIO inputPhi = new ToolIO("inputPhi", null, DataType.IntValue);
ToolIO outputCenterRow = new ToolIO("outputCenterRow", null, DataType.IntValue);
ToolIO outputCenterColumn = new ToolIO("outputCenterColumn", null, DataType.IntValue);
public CaliperInterface(string toolName)
{
enable = true;
toolType = ToolType.Caliper;
this.toolName = toolName;
tool = new Caliper();
FormToolName = "CaliperTool.FormCaliper";
FormTool = null;
toolInput = new List<ToolIO>() { inputImage, inputCenterRow, inputCenterColumn, inputPhi };
toolOutput = new List<ToolIO>() { outputCenterRow, outputCenterColumn };
}
/// <summary>
/// 只获取选择工具的描述信息
/// </summary>
public CaliperInterface()
{
toolDescription = "卡尺工具";
}
}
[VisionToolAttribute(ToolType.BlobAnalyse)]
public class BlobAnalyseToolInterface : IToolInfo
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.