当前位置: 首页 > wzjs >正文

广西水利工程建设管理网站wordpress 关掉缓存

广西水利工程建设管理网站,wordpress 关掉缓存,WordPress报价表,海珠建网站公效果图 重点工具使用流程 CogFindLineTool工具 步骤一:使用找线工具将传感器左边特征给寻找出来; 步骤二:使用找线工具将传感器右边特征给寻找出来; 步骤三:使用找线工具将传感器上边特征给寻找出来; 步骤…

效果图

 

 

 

 

重点工具使用流程

CogFindLineTool工具

步骤一:使用找线工具将传感器左边特征给寻找出来;

 步骤二:使用找线工具将传感器右边特征给寻找出来;

 步骤三:使用找线工具将传感器上边特征给寻找出来;

 步骤四:使用找线工具将传感器下边特征给寻找出来;

CogIntersectLineLineTool工具

步骤一:将左边直线和上直线进行交叉处理;

 步骤二:将右边直线和上直线进行交叉处理;

 步骤三:将左边直线和下直线进行交叉处理;

步骤四:将右边直线和下直线进行交叉处理; 

CogCreateSegmentTool工具

步骤一:将右边直线和上直线进行交叉与左边直线和下直线进行交叉,实现右倾斜进行测量···

 步骤二:将右边直线和上直线进行交叉和右边直线和下直线进行交叉,实现右倾斜进行测量···

CogIntersectSegmentSegmentTool工具

将CogCreateSegmentTool工具1和CogCreateSegmentTool工具2计算两条线段(Segment)的交点坐标,然后计算出传感器所需要的宽高。

传感器脚本

#region namespace imports
using System;
using System.Collections;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using Cognex.VisionPro;
using Cognex.VisionPro.ToolBlock;
using Cognex.VisionPro3D;
using Cognex.VisionPro.ImageProcessing;
using Cognex.VisionPro.PMAlign;
using Cognex.VisionPro.CalibFix;
using Cognex.VisionPro.Caliper;
using Cognex.VisionPro.Dimensioning;
#endregionpublic class CogToolBlockAdvancedScript : CogToolBlockAdvancedScriptBase
{#region Private Member Variablesprivate Cognex.VisionPro.ToolBlock.CogToolBlock mToolBlock;private CogDistanceSegmentLineTool width;private CogDistanceSegmentLineTool length;private CogGraphicLabel widthLabel;private CogGraphicLabel lengthLabel;#endregion/// <summary>/// Called when the parent tool is run./// Add code here to customize or replace the normal run behavior./// </summary>/// <param name="message">Sets the Message in the tool's RunStatus.</param>/// <param name="result">Sets the Result in the tool's RunStatus</param>/// <returns>True if the tool should run normally,///          False if GroupRun customizes run behavior</returns>public override bool GroupRun(ref string message, ref CogToolResultConstants result){width = new CogDistanceSegmentLineTool();length = new CogDistanceSegmentLineTool();widthLabel = new CogGraphicLabel();lengthLabel = new CogGraphicLabel();// To let the execution stop in this script when a debugger is attached, uncomment the following lines.// #if DEBUG// if (System.Diagnostics.Debugger.IsAttached) System.Diagnostics.Debugger.Break();// #endif// Run each tool using the RunTool functionforeach(ICogTool tool in mToolBlock.Tools)mToolBlock.RunTool(tool, ref message, ref result);width = mToolBlock.Tools["CogDistanceSegmentLineTool_width"]as CogDistanceSegmentLineTool;length = mToolBlock.Tools["CogDistanceSegmentLineTool_length"]as CogDistanceSegmentLineTool;widthLabel.Color = CogColorConstants.Green;lengthLabel.Color = CogColorConstants.Green;widthLabel.SetXYText(200, 200, "width:" + width.Distance.ToString("0.00"));lengthLabel.SetXYText(200, 250, "length:" + length.Distance.ToString("0.00"));return false;}#region When the Current Run Record is Created/// <summary>/// Called when the current record may have changed and is being reconstructed/// </summary>/// <param name="currentRecord">/// The new currentRecord is available to be initialized or customized.</param>public override void ModifyCurrentRunRecord(Cognex.VisionPro.ICogRecord currentRecord){}#endregion#region When the Last Run Record is Created/// <summary>/// Called when the last run record may have changed and is being reconstructed/// </summary>/// <param name="lastRecord">/// The new last run record is available to be initialized or customized.</param>public override void ModifyLastRunRecord(Cognex.VisionPro.ICogRecord lastRecord){mToolBlock.AddGraphicToRunRecord(widthLabel, lastRecord, "CogImageConvertTool1.OutputImage", "script");mToolBlock.AddGraphicToRunRecord(lengthLabel, lastRecord, "CogImageConvertTool1.OutputImage", "script");}#endregion#region When the Script is Initialized/// <summary>/// Perform any initialization required by your script here/// </summary>/// <param name="host">The host tool</param>public override void Initialize(Cognex.VisionPro.ToolGroup.CogToolGroup host){// DO NOT REMOVE - Call the base class implementation first - DO NOT REMOVEbase.Initialize(host);// Store a local copy of the script hostthis.mToolBlock = ((Cognex.VisionPro.ToolBlock.CogToolBlock)(host));}#endregion}

http://www.dtcms.com/wzjs/596055.html

相关文章:

  • 网站维护英文网页设计制作方案
  • 高端网站建设公司好不好天元建设集团有限公司第十建筑工程公司
  • 南安市城乡住房建设局网站电话销售怎么做 网站
  • 设计师采集网站乐清站在哪
  • seo优化网站查询长沙企业展厅设计公司
  • 自助申请海外网站微网站如何做推广方案设计
  • 网站贴子推广怎么做资讯门户类网站
  • 新房装修图片网站排名优化培训课程
  • 深圳网站搭建价格百度网盘做视频网站
  • 网站备案 空间备案 域名备案wordpress 免费APP
  • 网站 ipc 备案汕头seo网络推广
  • 手机网站开源系统深圳网站建设luony
  • 企业网站个人备案亚网互联网站设计
  • 黑龙江省建设银行网站怎么做网络推广品牌哪家强
  • 上海网站建设 网页做网络运维工程师招聘
  • 用jquery做的网站1w粉丝接广告多少钱
  • 公司官网建设方案商丘网站建设优化推广
  • 能看网站的浏览器湖南怀化市住房城乡建设局网站
  • 做网站哪家公司比较好2017年网站建设市场分析
  • net网站开发框架深圳网络营销和推广方案
  • 专业智能建站网站友情链接交换平台
  • 厦门海投工程建设有限公司网站资料网站模板
  • 乾安网站建设公司电话长寿做网站的电话
  • 网站建设网络推广书生牙科医院网站建设
  • 鄂州网站设计效果建立全国统一的突发事件信息系统
  • 亚马逊网站运营怎么做网站开发与设计岗位职责
  • 桐乡做网站网站开发成本报表
  • 企业网站seo优ppt做书模板下载网站
  • 德阳住房和城乡建设局网站做电商能赚钱吗
  • 网站设计的性能需求完整的网络营销推广方案包括