The invention provides a device for two-dimensional positioning based on machine vision, which includes solid digital camera connected to the machine, connected to a digital camera processor; selected geometric features on the workpiece positioning characteristics of objects, digital map to obtain the object positioning characteristics of the digital camera image and transmitted to the processor, the image processor the template matching algorithm to locate the object on the workpiece recognition feature, edge detection algorithm is used to calculate the location of object feature coordinates in the camera field of view of the workpiece in the machine tool coordinate by coordinate transformation. The positioning device is intelligent and highly automated, and the positioning accuracy is not affected by the technical level and emotion of the operator. The invention is used for numerical control processing equipment, and automatic tool setting can be realized to replace the manual tool setting process.
【技术实现步骤摘要】
本专利技术涉及计算机数控技术,特别是一种基于机器视觉的二维定位装置。
技术介绍
机器视觉采用计算机图像处理技术,识别对象的几何形状,并根据对象的 几何特征及象素的比例关系计算对象的形状尺寸及位置坐标。数控机床加工时 需要确定工件在机床坐标系中的位置,目前的方法是人工对刀,这种方法效率 低、对操作人员的技术水平与工作情绪依赖较大。
技术实现思路
本专利技术的目的在于提供一种基于机器视觉的二维定位装置,以克服人工对 刀方式的不足。实现本专利技术的技术方案如下 一种基于机器视觉的二维定位装置,包括固 定于机床上的数字相机,与数字相机相连的处理器;选定工件上的几何特征作定位对象特征,所述数字相机获取该定位对象特征的数字图像信息并传送到处 理器,处理器采用图像的模板匹配算法识别工件上的定位对象特征,采用边缘 检测方法计算所述定位对象特征在相机视场中的坐标,通过坐标变换得到工件 在机床中的坐标。如附图1所示。相机对准工件上的定位几何特征,这些几何特征可以是圆、圆弧、直角边等,拍摄到的数字图像送处理器。处理器可以是PC (Personal Computer,个人计算机)或IP ...
【技术保护点】
一种基于机器视觉的二维定位装置,其特征在于包括固联于机床上的数字相机,与数字相机相连的处理器;选定工件上的几何特征作定位对象特征,所述数字相机获取该定位对象特征的数字图像信息并传送到处理器,处理器采用图像的模板匹配算法识别工件上的定位对象特征,采用边缘检测算法计算所述定位对象特征在相机视场中的坐标,通过坐标变换得到工件在机床中的坐标。
【技术特征摘要】
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。