CN116000701A - Tool detection device and method that can be integrated on tool magazine - Google Patents
Tool detection device and method that can be integrated on tool magazine Download PDFInfo
- Publication number
- CN116000701A CN116000701A CN202211632154.3A CN202211632154A CN116000701A CN 116000701 A CN116000701 A CN 116000701A CN 202211632154 A CN202211632154 A CN 202211632154A CN 116000701 A CN116000701 A CN 116000701A
- Authority
- CN
- China
- Prior art keywords
- tool
- image
- side edge
- bottom edge
- image acquisition
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Length Measuring Devices By Optical Means (AREA)
Abstract
本发明公开了一种可集成在刀库上的刀具检测装置和方法,装置包括图像采集模块,清洗模块,控制模块等;所述图像采集模块包括图像采集支撑装置、底刃图像采集装置、侧刃图像采集装置、外壳结构等,照明模块由两个环形光源组成,控制模块由控制器、存储器等组成;所述图像采集支撑装置可实现底刃图像采集装置和侧刃图像采集装置上下移动,以及侧刃图像采集装置整周回转,进而通过视觉检测方法,实现刀库上的刀具种类以及刀具磨损程度的检测。
The invention discloses a tool detection device and method that can be integrated on a tool magazine. The device includes an image acquisition module, a cleaning module, a control module, etc.; the image acquisition module includes an image acquisition support device, a bottom edge image acquisition device, a side Edge image acquisition device, shell structure, etc., the lighting module is composed of two ring-shaped light sources, the control module is composed of a controller, a memory, etc.; the image acquisition support device can realize the bottom edge image acquisition device and the side edge image acquisition device to move up and down, And the side edge image acquisition device rotates throughout the circle, and then through the visual detection method, the detection of the type of tool on the tool magazine and the degree of tool wear is realized.
Description
技术领域technical field
本发明属于机械自动化领域,特别是一种可集成在刀库上的刀具检测装置和方法。The invention belongs to the field of mechanical automation, in particular to a tool detection device and method which can be integrated on a tool magazine.
背景技术Background technique
高精度、高效率、多功能复合加工中心是数控设备一个主要的发展方向。刀库及自动换刀装置配套在大中型复合加工中心中,有助于实现加工中心的高效能、高精度、高集成。而在机械加工过程中,刀具的磨损是影响产品加工精度、加工质量与效率的关键问题之一。随着社会与科学技术的发展,对产品的制造质量要求越来越高,使加工过程中刀具磨损的检测显得更加重要。因此在刀库换刀过程中,系统能够自动判断刀具的磨损程度并及时更换刀具,对于避免由于刀具磨损量过大造成的加工质量下降或其它损失,同时提高生产效率,降低劳动力成本有着十分重要的意义。High-precision, high-efficiency, multi-functional compound machining center is a main development direction of CNC equipment. The tool magazine and automatic tool changer are matched in large and medium-sized compound machining centers, which help to realize the high efficiency, high precision and high integration of the machining center. In the machining process, the wear of the tool is one of the key issues affecting the machining accuracy, machining quality and efficiency of the product. With the development of society and science and technology, the requirements for the manufacturing quality of products are getting higher and higher, which makes the detection of tool wear in the processing process more important. Therefore, during the tool change process of the tool magazine, the system can automatically judge the wear degree of the tool and replace the tool in time, which is very important for avoiding the decline in processing quality or other losses caused by excessive tool wear, while improving production efficiency and reducing labor costs. meaning.
目前国内对于刀具磨损检测的研究不足,特别是检测刀库内刀具的磨损。At present, there is insufficient research on tool wear detection in China, especially the detection of tool wear in the tool magazine.
CN201822210994.6公开了一种机床监控与数据测量系统,利用应变片但检测机床刀盘内刀具长度的磨损,精确度不够。目前的检测装置和方法都大部分是针对机床刀具磨损检测,没有将刀库与刀具磨损检测相结合,无法在提高刀库换刀准确度的同时检测刀具磨损并及时更换刀具。CN201822210994.6 discloses a machine tool monitoring and data measurement system, which uses strain gauges to detect the wear of the tool length in the machine tool head, but the accuracy is not enough. Most of the current detection devices and methods are aimed at the detection of machine tool tool wear, without combining the tool magazine with tool wear detection, and cannot detect tool wear and replace the tool in time while improving the accuracy of tool change in the tool magazine.
发明内容Contents of the invention
本发明的目的在于提供一种可集成在刀库上的刀具检测装置和方法,以实现换刀准确度的提升以及刀库刀具磨损的检测。The object of the present invention is to provide a tool detection device and method that can be integrated on a tool magazine, so as to improve the accuracy of tool changing and detect tool wear in the tool magazine.
实现本发明目的的技术解决方案为:The technical solution that realizes the object of the present invention is:
一种可集成在刀库上的刀具检测装置,包括图像采集模块,控制模块;所述图像采集模块包括:A tool detection device that can be integrated on a tool magazine, including an image acquisition module and a control module; the image acquisition module includes:
底刃图像采集装置,用于采集刀具底刃的图像;The bottom edge image acquisition device is used to collect the image of the bottom edge of the tool;
侧刃图像采集装置,用于采集刀具测刃的图像;The side edge image acquisition device is used to acquire the image of the tool edge measurement;
图像采集支撑装置,能够同时驱动底刃图像采集装置和侧刃图像采集装置的旋转和升降;通过升降使得刀具底刃位于底刃图像采集装置镜头的景深内,并使得侧刃图像采集装置获得刀具每刃的标准位置图片;通过旋转使得侧刃图像采集装置能够获得刀具底刃的标准位置图片;The image acquisition support device can drive the rotation and lifting of the bottom edge image acquisition device and the side edge image acquisition device at the same time; through the lifting, the bottom edge of the tool is located in the depth of field of the lens of the bottom edge image acquisition device, and the side edge image acquisition device obtains the tool The standard position picture of each edge; through rotation, the side edge image acquisition device can obtain the standard position picture of the bottom edge of the tool;
所述侧刃图像采集装置相对图像采集支撑装置的水平距离可调,用于调整刀具侧刃位于侧刃相机镜头的景深内;The horizontal distance of the side edge image acquisition device relative to the image acquisition support device is adjustable, and is used to adjust the tool side edge to be located within the depth of field of the side edge camera lens;
所述控制模块用于控制图像采集支撑装置的旋转和升降。The control module is used to control the rotation and lifting of the image acquisition support device.
一种可集成在刀库上的刀具检测装置的刀具磨损检测方法,包括参数获取和磨损测量两个过程;A tool wear detection method of a tool detection device that can be integrated on a tool magazine, including two processes of parameter acquisition and wear measurement;
参数获取过程,用于在加工活动未开始前录入新刀具的信息,包括刀具的型号,刃数,直径以及图像模板;The parameter acquisition process is used to enter the information of the new tool before the processing activity starts, including the model of the tool, the number of edges, the diameter and the image template;
磨损测量过程,用于刀具加工工件后回到刀库中并在下一次加工活动前,通过机械臂将刀具取出进行磨损检测,将磨损的刀具阈值图像与未磨损的图像模板进行掩膜处理,进行磨损区域的提取,计算磨损区域的平均像素值并转化为实际平均磨损量尺寸。The wear measurement process is used to return the tool to the tool magazine after processing the workpiece and take out the tool through the mechanical arm for wear detection before the next processing activity. Mask the worn tool threshold image and the unworn image template to perform The extraction of the wear area calculates the average pixel value of the wear area and converts it into the actual average wear size.
本发明与现有技术相比,其显著优点是:Compared with the prior art, the present invention has the remarkable advantages of:
(1)本发明的刀具检测装置集成化程度高,可以实现对刀具磨损量的快速、高效、准确地自动测量,可应用于不同种类的刀库。(1) The tool detection device of the present invention has a high degree of integration, can realize fast, efficient and accurate automatic measurement of tool wear, and can be applied to different types of tool magazines.
(2)与刀库相结合,不仅能够提高刀库换刀的准确性,而且能够通过监测磨损精度及时替换磨损过多的刀具,提高加工精度。(2) Combined with the tool magazine, it can not only improve the accuracy of the tool change in the tool magazine, but also replace the excessively worn tools in time by monitoring the wear accuracy, so as to improve the machining accuracy.
附图说明Description of drawings
图1为刀库及磨损检测装置整体构成图。Figure 1 is a diagram of the overall structure of the tool magazine and wear detection device.
图2为磨损检测装置图。Figure 2 is a diagram of the wear detection device.
图3为图像采集支撑装置剖面图。Fig. 3 is a cross-sectional view of the image acquisition support device.
图4为图像采集支撑装置图。Figure 4 is a diagram of the image acquisition support device.
图5为底刃图像采集装置图。Fig. 5 is a diagram of the bottom edge image acquisition device.
图6为侧刃图像采集装置图。Fig. 6 is a diagram of a side edge image acquisition device.
图7为参数标定板安装示意图。其中附图(a)为侧刃相机标定示意图,附图(b)为底刃相机标定示意图。Figure 7 is a schematic diagram of the installation of the parameter calibration board. Attachment (a) is a schematic diagram of side edge camera calibration, and Figure (b) is a schematic diagram of bottom edge camera calibration.
图8为镜头与刀具坐标图。Figure 8 is a coordinate diagram of the lens and tool.
图9为刀具定位图。Figure 9 is a tool positioning diagram.
图10为刀具角度与比标准位置示意图。其中附图(a)为未旋转前刀具底刃图,附图(b)为旋转后标准位置刀具底刃图。Fig. 10 is a schematic diagram of tool angle and relative standard position. Accompanying drawing (a) is a drawing of the bottom edge of the tool before rotation, and drawing (b) is a drawing of the bottom edge of the tool in the standard position after rotation.
图11为底刃模板提取过程图。其中附图(a)为未磨损刀具底刃图,附图(b)为刀具底刃部分截取图。Figure 11 is a diagram of the extraction process of the bottom edge template. Accompanying drawing (a) is a drawing of the bottom edge of an unworn tool, and accompanying drawing (b) is a partial cutaway view of a cutting tool bottom edge.
图12为侧刃模板提取过程图。其中附图(a)为未磨损刀具侧刃图,附图(b)为刀具侧刃部分截取图。Fig. 12 is a diagram of the extraction process of the side edge template. Wherein, accompanying drawing (a) is a side edge view of an unworn tool, and accompanying drawing (b) is a cutaway view of a side edge of a tool.
图13为侧刃磨损部位提取过程图。其中附图(a)为侧刃磨损阈值图,附图(b)为侧刃磨损模板图,附图(c)为侧刃掩膜图,附图(d)为侧刃磨损带图。Figure 13 is a diagram of the process of extracting the worn part of the side edge. Attached drawing (a) is a side edge wear threshold map, drawing (b) is a side edge wear template map, drawing (c) is a side edge mask map, and drawing (d) is a side edge wear zone map.
图14为底刃磨损部位提取过程图。其中附图(a)为底刃磨损阈值图,附图(b)为底刃磨损模板图,附图(c)为底刃掩膜图,附图(d)为底刃磨损带图。Figure 14 is a diagram of the extraction process of the worn part of the bottom edge. Attached drawing (a) is a wear threshold diagram of the bottom edge, drawing (b) is a wear template map of the bottom edge, drawing (c) is a mask map of the bottom edge, and drawing (d) is a wear zone map of the bottom edge.
图15为磨损量图。其中附图(a)为刀具侧刃磨损带VB示意图,附图(b)为刀具底刃磨损带示意图。Fig. 15 is a graph of the amount of wear. The accompanying drawing (a) is a schematic diagram of the wear zone VB of the side edge of the tool, and the accompanying drawing (b) is a schematic diagram of the wear zone of the bottom edge of the tool.
具体实施方式Detailed ways
下面结合附图及具体实施例对本发明做进一步的介绍。The present invention will be further introduced below in conjunction with the accompanying drawings and specific embodiments.
结合图1,本发明首先对检测对象刀库内的刀具进行介绍,所述刀库包括链式刀库1、刀库底座2、换刀臂3、刀柄及刀具4;刀具被安装在刀柄以内,刀柄存储在刀库中,当需要调用时,刀库将相应刀柄运至倒刀位后倒刀,通过换刀臂将机床刀柄与刀库刀柄互换。In conjunction with Fig. 1, the present invention first introduces the knives in the tool magazine of the detection object. The tool magazine includes a chain tool magazine 1, a
结合图2-图6,本发明的设计的一种应用于刀库上的刀具磨损检测装置5包括图像采集模块,清洗模块,控制模块;所述图像采集模块包括图像采集支撑装置6、底刃图像采集装置7、侧刃图像采集装置8、外壳结构9;In conjunction with Fig. 2-Fig. 6, a kind of tool wear detection device 5 applied to the tool magazine of the present invention includes an image acquisition module, a cleaning module, and a control module; the image acquisition module includes an image
所述图像采集支撑装置6包括固定架6-1、垂直驱动电缸6-2、导向装置6-3、支撑平台6-4、旋转驱动装置6-5、小齿轮6-6、大齿轮6-7、中空轴套6-8、连接轴套6-9、编码器6-10、编码器支撑轴6-11、编码器连接轴套6-12;The image
所述垂直驱动电缸6-2固接在固定架6-1上,垂直驱动电缸6-2的驱动端与支撑平台6-4固接,从而驱动支撑平台6-4可以相对于固定架6-1上下移动,导向装置6-3固定端与固定架6-1固接,导向移动端与支撑平台6-4固接;The vertical drive electric cylinder 6-2 is fixedly connected to the fixed frame 6-1, and the driving end of the vertical drive electric cylinder 6-2 is fixedly connected to the support platform 6-4, so that the drive support platform 6-4 can be fixed relative to the fixed frame 6-1 moves up and down, the fixed end of the guiding device 6-3 is fixedly connected to the fixed frame 6-1, and the moving end of the guiding device is fixedly connected to the support platform 6-4;
所述旋转驱动装置6-5(电机)固接在支撑平台6-4的下方,其驱动端与所述小齿轮6-6固接,所述小齿轮6-6与大齿轮6-7构成齿轮传动,所述大齿轮6-7旋转地连接在中空轴套6-8上,所述中空轴套6-8固接在支撑平台6-4的上方,所述编码器支撑轴6-11固接在支撑平台6-4的下方,且所述中空轴套6-8与所述编码器支撑轴6-11同轴;所述编码器6-10固接在所述编码器支撑轴6-11上;The rotary driving device 6-5 (motor) is fixedly connected under the support platform 6-4, and its drive end is fixedly connected with the pinion 6-6, and the pinion 6-6 and the bull gear 6-7 form a Gear transmission, the large gear 6-7 is rotatably connected to the hollow bushing 6-8, the hollow bushing 6-8 is fixed above the supporting platform 6-4, and the encoder supporting shaft 6-11 It is fixed under the support platform 6-4, and the hollow sleeve 6-8 is coaxial with the encoder support shaft 6-11; the encoder 6-10 is fixed on the encoder support shaft 6 -11 on;
所述连接轴套6-9固接在大齿轮6-7上,所述编码器连接轴套6-12固接在连接轴套6-9的下方内部,且编码器连接轴套6-12内嵌在中空轴套6-8的内腔中,所述编码器6-10的输出轴固接在编码器连接轴套6-12上;The connecting shaft sleeve 6-9 is fixedly connected to the bull gear 6-7, the encoder connecting shaft sleeve 6-12 is fixedly connected to the lower part of the connecting shaft sleeve 6-9, and the encoder connecting shaft sleeve 6-12 Embedded in the inner cavity of the hollow shaft sleeve 6-8, the output shaft of the encoder 6-10 is fixedly connected to the encoder connecting shaft sleeve 6-12;
所述大齿轮6-7的轴线、连接轴套6-9的轴线、编码器连接轴6-12、编码器6-10的输出轴同轴线;The axis of the bull gear 6-7, the axis of the connecting shaft sleeve 6-9, the encoder connecting shaft 6-12, and the output shaft of the encoder 6-10 are coaxial;
所述底刃图像采集装置7包括底刃环形光源7-1、底刃光源支撑部件7-2、底刃相机7-3、底刃相机支撑件7-4;所述底刃相机支撑件7-4固接在连接轴套6-9的下方内部,底刃相机7-3固接在底刃相机支撑件7-4上,底刃光源支撑部件7-2固接在连接轴套6-9上,底刃环形光源7-1固接在底刃光源支撑部件7-2上,为底刃相机7-3提供光源;The bottom edge image acquisition device 7 includes a bottom edge ring light source 7-1, a bottom edge light source support part 7-2, a bottom edge camera 7-3, and a bottom edge camera support 7-4; the bottom edge camera support 7 -4 is affixed to the lower part of the connecting shaft sleeve 6-9, the bottom edge camera 7-3 is affixed to the bottom edge camera support 7-4, and the bottom edge light source support part 7-2 is affixed to the connecting shaft sleeve 6- 9, the bottom edge ring light source 7-1 is fixedly connected to the bottom edge light source supporting part 7-2 to provide light source for the bottom edge camera 7-3;
所述侧刃图像采集装置8包括侧刃环形光源8-1、侧刃光源支撑件8-2、侧刃相机8-3、侧刃相机支撑件;所述侧刃相机支撑件包括导轨安装板8-4、含钳制器的导轨副8-5、支撑杆8-6;所述侧刃环形光源8-1通过侧刃光源支撑部件8-2与侧刃相机8-3固接,为侧刃相机8-3提供光源;所述导轨安装板8-4固接在连接轴套6-9上,含钳制器的导轨副8-5固接在导轨安装板8-4上,支撑杆8-6固接在含钳制器的导轨副8-5的滑块上;所述侧刃相机8-3固接在支撑杆8-6上。The side edge
所述图像采集模块的相机模块包括底刃相机7-3、侧刃相机8-3,一个放置于刀具的正下方用于采集刀具底刃的清晰图片,一个放置于刀具侧方用于采集刀具测刃的图像;通过所获得图像的像素点与放大倍数来计算得刀具的实际尺寸。The camera module of the image acquisition module includes a bottom edge camera 7-3 and a side edge camera 8-3, one is placed directly below the tool for collecting clear pictures of the bottom edge of the tool, and the other is placed on the side of the tool for collecting The image of the measured edge; the actual size of the tool is calculated by the pixels of the obtained image and the magnification.
所述图像采集模块的照明模块包括底刃环形光源7-1、侧刃环形光源8-1,用于提供良好的照明,提高获取图像的清晰度;环形光源与相机同轴,可上下移动位置获得最佳光照;环形光源垂直于刀具,通过刀具表面的光反射,在相机内部成像获得图像。The lighting module of the image acquisition module includes a bottom edge ring light source 7-1 and a side edge ring light source 8-1, which are used to provide good lighting and improve the clarity of the captured image; the ring light source is coaxial with the camera and can move up and down Obtain the best lighting; the ring light source is perpendicular to the tool, and through the light reflection on the tool surface, it is imaged inside the camera to obtain an image.
所述图像采集模块的运动支撑模块包括旋转驱动装置6-5、垂直驱动电缸6-2、钳制器的导轨副8-5及若干组件。所述支撑模块能够实现底刃相机结构的自动调整:上下移动与旋转以及侧刃相机结构的手动调整。所述垂直驱动电缸6-2用于实现底刃相机结构的上下移动;通过活塞杆的上下运动,利用导向装置6-3,推动图像采集结构进行垂直运动,使得刀具底刃位于镜头的景深内,实现底刃相机的聚焦;所述旋转驱动装置6-5为底刃相机7-3提供旋转力,使得底刃相机结构低速旋转;旋转底刃相机7-3获得刀具底刃的标准位置图片,为后续图像处理提供基础;所述标准位置即刀具刀尖与刀具底面中心连线所构成的直线平行于底刃图像的竖直边;所述侧刃相机8-3通过侧刃相机支撑件固接于底刃相机结构,使得底刃相机结构能够带动侧刃相机结构旋转,旋转底刃相机7-3获得刀具每刃的标准位置图片。同时,侧刃相机结构能通过导轨人工调整与底刃相机结构的距离;到达合适位置(刀具侧刃位于侧刃相机镜头的景深内)后通过钳制器限制侧刃相机结构的位置。The motion support module of the image acquisition module includes a rotary drive device 6-5, a vertical drive electric cylinder 6-2, a clamp rail pair 8-5 and several components. The support module can realize the automatic adjustment of the bottom edge camera structure: up and down movement and rotation and manual adjustment of the side edge camera structure. The vertical drive electric cylinder 6-2 is used to realize the up and down movement of the bottom edge camera structure; through the up and down movement of the piston rod, the guide device 6-3 is used to push the image acquisition structure to move vertically, so that the bottom edge of the tool is positioned at the depth of field of the lens Inside, the focus of the bottom edge camera is realized; the rotary driving device 6-5 provides the rotation force for the bottom edge camera 7-3, so that the bottom edge camera structure rotates at a low speed; the rotation of the bottom edge camera 7-3 obtains the standard position of the bottom edge of the tool The picture provides the basis for subsequent image processing; the standard position is that the straight line formed by the line between the tool tip and the center of the bottom surface of the tool is parallel to the vertical edge of the bottom edge image; the side edge camera 8-3 is supported by the side edge camera The parts are fixed to the bottom edge camera structure, so that the bottom edge camera structure can drive the side edge camera structure to rotate, and the bottom edge camera 7-3 is rotated to obtain a standard position picture of each edge of the tool. At the same time, the distance between the side edge camera structure and the bottom edge camera structure can be manually adjusted through the guide rail; after reaching a suitable position (the side edge of the tool is within the depth of field of the side edge camera lens), the position of the side edge camera structure is limited by the clamp.
所述清洗模块由机床清洗模块所代替,用于切削液清洗刀具,减少切削屑,保证所采集到的图像的有效性。The cleaning module is replaced by a machine tool cleaning module, which is used for cleaning the tool with cutting fluid, reduces cutting chips, and ensures the validity of the collected images.
所述控制模块包括工控机,编码器,运动控制卡,伺服驱动器;伺服驱动器用于实现推杆电机的驱动,伺服电机的驱动;绝对值编码器用于与伺服电机组成反馈系统,提高底刃相机旋转定位精度;运动控制卡用于接受发生和存储指令;工控机用于数据的运算。通过模糊PID控制法控制伺服电机的转速,使系统实现平稳、快速的响应,并且抗干扰能力强。并利用S曲线算法对输入的位置信号做过轨迹规划,使得电机实现梯形加减速,运行更加平稳。The control module includes an industrial computer, an encoder, a motion control card, and a servo driver; the servo driver is used to drive the push rod motor and the servo motor; the absolute encoder is used to form a feedback system with the servo motor to improve the bottom edge camera Rotation positioning accuracy; motion control card is used to receive generation and storage instructions; industrial computer is used for data calculation. The speed of the servo motor is controlled by the fuzzy PID control method, so that the system can achieve a stable and fast response, and has strong anti-interference ability. And use the S-curve algorithm to plan the trajectory of the input position signal, so that the motor can achieve trapezoidal acceleration and deceleration, and the operation is more stable.
结合图7-图15,本发明的设计的一种基于刀具检测装置的刀具磨损检测方法,其特征在于,包括参数获取和磨损测量两个过程。参数获取发生在在一切加工活动未开始前,刀库每录入一把新刀具的信息时,所述磨损检测装置需录入该刀具的信息。该信息包括刀具的型号,刃数,直径以及图像模板。磨损测量则是当刀具用于加工工件后回到刀库中并在下一次加工活动前,通过机械臂将刀具取出进行磨损检测。Referring to Fig. 7-Fig. 15, a tool wear detection method based on a tool detection device designed in the present invention is characterized in that it includes two processes of parameter acquisition and wear measurement. The acquisition of parameters takes place before all processing activities start. When the information of a new tool is recorded in the tool magazine, the wear detection device needs to record the information of the tool. This information includes the model of the tool, number of flutes, diameter and image template. Wear measurement means that when the tool is used to process the workpiece, it returns to the tool magazine and before the next processing activity, the tool is taken out by the mechanical arm for wear detection.
所述的参数获取,其特征在于,该过程包括以下步骤:以下步骤为基于铣刀的刀具磨损检测参数获取步骤,其他类型刀具初始化步骤以此为例。The parameter acquisition is characterized in that the process includes the following steps: the following steps are based on milling cutter tool wear detection parameter acquisition steps, and other types of tool initialization steps are taken as an example.
步骤1、相机参数的标定:对底刃相机7-3和侧刃相机8-3分别进行标定:Step 1. Calibration of camera parameters: Calibrate the bottom edge camera 7-3 and the side edge camera 8-3 respectively:
通过工装在底刃相机景深内放置底刃相机参数标定板,使底刃相机参数标定板正对着底刃相机7-3;打开底刃环形光源7-1,并上下移动底刃环形光源7-1,为底刃相机7-3提供良好的光照,并通过在相机内部成像的清晰度情况来判断底刃环形光源7-1位置的合理性。利用底刃相机7-3采集3张底刃相机参数标定板的照片,选择最为清晰的照片进行相机矫正,得到底刃相机7-3的内参数值,消除镜头畸变引起的误差;Place the bottom edge camera parameter calibration plate in the depth of field of the bottom edge camera through the tooling, so that the bottom edge camera parameter calibration plate is facing the bottom edge camera 7-3; turn on the bottom edge ring light source 7-1, and move the bottom edge ring light source 7 up and down -1, provide good light for the bottom edge camera 7-3, and judge the rationality of the position of the bottom edge ring light source 7-1 according to the clarity of the imaging inside the camera. Use the bottom edge camera 7-3 to collect 3 photos of the bottom edge camera parameter calibration board, select the clearest photo for camera correction, obtain the internal parameter value of the bottom edge camera 7-3, and eliminate the error caused by lens distortion;
通过工装在侧刃相机景深内放置侧刃相机参数标定板,使侧刃相机参数标定板正对着侧刃相机,打开侧刃环形光源8-1,并上下移动侧刃环形光源8-1,为侧刃相机8-3提供良好的光照,并通过在相机内部成像的清晰度情况来判断侧刃环形光源8-1位置的合理性。利用侧刃相机8-3采集3张侧刃相机参数标定板的照片,选择最为清晰的照片进行相机矫正,得到侧刃相机8-3的内参数值,消除镜头畸变引起的误差;Place the side edge camera parameter calibration plate in the depth of field of the side edge camera through the tooling, make the side edge camera parameter calibration plate face the side edge camera, turn on the side edge ring light source 8-1, and move the side edge ring light source 8-1 up and down, Provide good lighting for the side edge camera 8-3, and judge the rationality of the position of the side edge ring light source 8-1 according to the clarity of the imaging inside the camera. Use the side edge camera 8-3 to collect 3 photos of the side edge camera parameter calibration board, select the clearest photo for camera correction, obtain the internal parameter value of the side edge camera 8-3, and eliminate the error caused by lens distortion;
步骤2、图像采集装置的位置初始化:首先通过调整滑块在导轨上的位置,将侧刃图像采集装置8移动至距底刃相机中心线的最远位置,其次,接通电源,通过控制模块控制垂直驱动电缸6-2运转,将支撑平台6-4下降至最低位置,从而带动底刃图像采集装置7和侧刃图像采集装置8下降至最低位置;
同时通过控制模块控制旋转驱动装置6-5运转,将侧刃图像采集装置8旋转至初始位置,在此,可将侧刃图像采集装置8的导轨移动方向与刀具倒刀所在平面垂直时作为其初始位置。Simultaneously by controlling the operation of the rotary drive device 6-5 through the control module, the side edge
步骤3、刀具磨损检测装置的安装:利用刀库及换刀机械手将一标准刀具运至刀具检测点,同时将刀具磨损检测装置放置在刀具检测点正下方。Step 3. Installation of the tool wear detection device: use the tool magazine and the tool changer to transport a standard tool to the tool detection point, and place the tool wear detection device directly below the tool detection point.
步骤4、图像采集装置的初步调整:通过垂直驱动电缸6-2调节底刃图像采集装置7和侧刃图像采集装置8的高度,使刀具底刃在底刃相机镜头景深范围之内,当底刃相机位置调整到位后,打开导轨副中钳制器开关,通过移动滑块调整侧刃相机8-3与刀具中心线的距离,使得刀具侧刃在侧刃相机8-3的景深范围之内,然后闭合钳制器开关,从而固定侧刃相机8-3的位置。Step 4, preliminary adjustment of the image acquisition device: adjust the height of the bottom edge image acquisition device 7 and the side edge
步骤5、像素当量的标定:通过底刃相机7-3获取未磨损刀具底刃的图像,并对图像预处理。在此,所述图像预处理过程为:将图像先后进行灰度化和滤波处理、再调整图像对比度,完成图像的预处理。Step 5. Calibration of pixel equivalent: Obtain the image of the bottom edge of the unworn tool through the bottom edge camera 7-3, and preprocess the image. Here, the image preprocessing process is as follows: the image is grayscaled and filtered successively, and then the contrast of the image is adjusted to complete the image preprocessing.
图像经过预处理后通过霍夫圆检测法提取图中刀具的直径,设刀具直径在图像中的大小为N个像素,该刀具直径的实际尺寸为D,则像素当量为 After the image is preprocessed, the diameter of the tool in the image is extracted by the Hough circle detection method. Assuming that the size of the tool diameter in the image is N pixels, and the actual size of the tool diameter is D, the pixel equivalent is
步骤6、刀具底刃与底刃相机相对位置的计算:通过侧刃相机8-3拍摄刀具侧刃的图像,将图像预处理,再通过图像分析得出刀具底刃的具体位置坐标;所述的图像分析计算刀具底刃的具体位置坐标的方法为:以底刃相机镜头中心建立坐标系σ0(O0X0Y0Z0),所述坐标系O0为底刃相机镜头中心,Z0轴方向竖直向上,Y0轴与侧刃导轨延长线平行;在该坐标系下,设侧刃相机镜头中心坐标为O1(X1Y1Z1),刀具底面中心坐标为O2(X2Y2Z2)。利用侧刃相机8-3拍摄刀具图像,在该图像的像素原点OP1建立像素坐标系σ1(OP1-U1V1),以U1轴为水平直线,V1轴为竖直直线,使得图像不与坐标轴重合的所有像素点在该坐标轴第一象限。并设该图像中心点在坐标系σ1下的坐标为O3(W3H3)。通过最小外接矩形法分析图像,得出刀具图像的外接矩形,设该外接矩形四边中平行刀具底面且与刀具底面最近的一边的中心点在该坐标系内的坐标为O2(W2H2)。由此可得刀具底刃与底刃相机相对位置:Z=H3-H2+Z1。存储刀具的具体位置坐标,当下一次测量该刀具时,通过自动调用该数据,实现底刃相机位置的快速调整。
步骤7、侧刃相机的定位:通过底刃相机7-3获取刀具底刃的图像,将图像预处理后,通过图像分析得出刀具最接近刀具圆心的特征点,根据特征点连线构成的直线角度求得该直线与图像竖直直线的最小角度θ。所述角度θ的求解方法为,在刀具底刃的图像的像素原点OP2建立像素坐标系σ2(OP2-U2V2),U2轴为水平直线,V2轴为竖直直线,使得图像不与坐标轴重合的所有像素点在该坐标轴第一象限。通过霍夫圆算法检测算法处理图像获取图像中刀具外轮廓,轮廓为圆形;设该圆的圆心在该图像上的坐标为O4(W4H4)。通过亚像素级别角点检测方法检测出刀具特征点,根据不同刀具选择不同特征点,选择最接近刀具底面圆心的特征点;连接相对的特征点,构造直线。通过在图像上经过图像中心点O4点构造出竖直线,求出竖直线与相对特征点连线的最小锐角γ。距离标准位置的最小角度:θ=γ-α,其中α为固定刀具特征角。Step 7. Positioning of the side edge camera: Obtain the image of the bottom edge of the tool through the bottom edge camera 7-3. After the image is preprocessed, the feature point of the tool closest to the center of the tool circle is obtained through image analysis. Line angle Calculate the minimum angle θ between the line and the vertical line of the image. The method for solving the angle θ is to establish a pixel coordinate system σ 2 (O P2 -U 2 V 2 ) at the pixel origin OP2 of the image of the tool bottom edge, the U 2 axis is a horizontal straight line, and the V 2 axis is a vertical straight line , so that all pixels of the image that do not coincide with the coordinate axis are in the first quadrant of the coordinate axis. The image is processed by the Hough circle algorithm detection algorithm to obtain the outer contour of the tool in the image, which is a circle; the coordinates of the center of the circle on the image are O 4 (W 4 H 4 ). The tool feature points are detected by the sub-pixel level corner point detection method, and different feature points are selected according to different tools, and the feature point closest to the center of the bottom surface of the tool is selected; the opposite feature points are connected to construct a straight line. By constructing a vertical line through the image center point O 4 points on the image, find the minimum acute angle γ between the vertical line and the line connecting the relative feature point. The minimum angle from the standard position: θ=γ-α, where α is the characteristic angle of the fixed tool.
设该坐标系中顺时针为正。若该角度θ>0°,则通过伺服电机驱动连接轴套6-9顺时针旋转θ;若该角度θ≤0°,则逆时针旋转θ;Let clockwise be positive in this coordinate system. If the angle θ>0°, the servo motor drives the connecting sleeve 6-9 to rotate θ clockwise; if the angle θ≤0°, then rotate θ counterclockwise;
当侧刃图像采集装置8旋转到位后,再次获取底刃图像。图像处理底刃图像并读取角度θ,若θ处于0±Δδ范围内,则表示已经完成刀具侧刃定位,其中Δδ根据具体精度要求制定;若θ不符合标准,则再次调整,若调整次数超过三次,则发出警报,通知工作人员机器故障。After the side edge
步骤8、刀具底刃模板的制造:当相机位置完成调整后,通过底刃相机7-3获取底刃图像。首先将图像预处理,获得清晰的图像。再通过霍夫圆算法检测算法处理图像获取图像中刀具外轮廓,轮廓为圆形;设该圆圆心Q1。以霍圆心Q1为中心截取边长为X1的正方形,截取正方形内部图像;X1大小等于刀具直径在图像中所对应的像素值;设刀刃图像为前景,除刀刃外的图像为后景。通过OTUS阈值检测将截取图像中未磨损刀具底面图像的前景提取出,将前景区像素置为255,其他部分像素置为0,所得图片存储为该刀具底刃模板。
步骤9、刀具侧刃模板的制造:当相机位置完成调整后,通过侧刃相机8-3获取侧刃图像。首先将图像预处理,获得清晰的图像。再通过canny边缘检测处理图像获得刀具侧刃轮廓图像。通过最小外接矩形算法识别得出侧刃最小外接矩形,取最小外接矩形下边中点为Q2,以Q2为基础在预处理过后的刀具侧刃图像截取长、宽分别为X2、Y2的矩形,截取矩形内部图像;X2大小等于刀具直径在图像中所对应的像素值的1/2,Y2=2X2;在截取的图像中,在该图像的像素原点OP3建立像素坐标系σ3(OP3-U3V3),以U3轴为水平直线,V3轴为竖直直线,使得图像不与坐标轴重合的所有像素点在该坐标轴第一象限;Q2点在坐标系σ3下的坐标为通过霍夫直线检测识别出图像中存在的直线,并利用角度信息提取出所需的刀具侧刃边缘直线。设刀刃图像为前景,除刀刃外的图像为后景。将未磨损刀具侧刃图像的前景像素置为255,其他部分像素置为0,所得图片存储为该刀具侧刃模板。Step 9. Manufacture of the tool side edge template: After the camera position is adjusted, the side edge image is acquired through the side edge camera 8-3. Firstly, the image is preprocessed to obtain a clear image. Then process the image through canny edge detection to obtain the profile image of the tool side edge. The minimum circumscribed rectangle of the side edge is identified by the minimum circumscribed rectangle algorithm, and the midpoint of the lower side of the minimum circumscribed rectangle is taken as Q 2 . Based on Q 2 , the length and width of the tool side edge image after preprocessing are intercepted as X 2 and Y 2 , respectively. Rectangular, intercepting the internal image of the rectangle; X 2 is equal to 1/2 of the corresponding pixel value of the tool diameter in the image, Y 2 =2X 2 ; in the intercepted image, establish pixel coordinates at the pixel origin O P3 of the image System σ 3 (O P3 -U 3 V 3 ), with the U 3 axis as a horizontal line and the V 3 axis as a vertical line, so that all pixels of the image that do not coincide with the coordinate axis are in the first quadrant of the coordinate axis; Q 2 The coordinates of the point in the coordinate system σ 3 are The straight line in the image is identified by Hough line detection, and the required straight line of the side edge of the tool is extracted by using the angle information. Let the blade image be the foreground, and the image other than the blade be the background. Set the foreground pixels of the side edge image of the unworn tool to 255, and set the other pixels to 0, and the resulting image is stored as the tool side edge template.
所述的磨损测量,其特征在于,该过程包括以下步骤:以下步骤为基于铣刀的刀具磨损检测步骤,其他类型刀具磨损测量步骤以此为列。The wear measurement described above is characterized in that the process includes the following steps: the following steps are milling cutter-based tool wear detection steps, and other types of tool wear measurement steps are listed here.
步骤1、装置的初始化:与上述初始化步骤2相同。Step 1. Initialization of the device: same as the
步骤2、刀具的到位:利用刀库及换刀机械手将一标准刀具运至刀具检测点。
步骤3、底刃相机的位置调整:刀库获得被测刀具的信号,调取存储值Z,通过垂直驱动电缸6-2调节底刃图像采集装置7和侧刃图像采集装置8的高度;底刃相机7-3获取刀具的底刃的图像,通过Laplacian梯度方法判断底刃图像的清晰度,如若清晰度得分低于S,则表示刀库换刀错误,终止流程,反馈数据;其中S为依据算法设定的清晰图像得分。Step 3. Position adjustment of the bottom edge camera: the tool magazine obtains the signal of the tool under test, retrieves the stored value Z, and adjusts the height of the bottom edge image acquisition device 7 and the side edge
步骤4、刀具种类的判断:当相机位置完成调整后,通过底刃相机7-3获取刀具的底刃的图像。通过图像预处理获得清晰的刀具底刃图像,将其与数据库中的刀具模板信息进行模板匹配,获得与之最匹配的图像,该图像即为该刀具未磨损的刀具模板。如若图像识别得到的刀具信息与刀库应换刀具的数据不相符,则表示刀库换刀错误,终止流程,反馈数据。Step 4. Judgment of the type of tool: After the camera position is adjusted, the image of the bottom edge of the tool is acquired by the bottom edge camera 7-3. Obtain a clear image of the bottom edge of the tool through image preprocessing, and perform template matching with the tool template information in the database to obtain the most matching image, which is the unworn tool template of the tool. If the tool information obtained by image recognition does not match the tool change data in the tool magazine, it means that the tool change in the tool magazine is wrong, the process is terminated, and the data is fed back.
步骤5、侧刃相机的定位:与上述参数获取步骤7相同,通过获得的θ角度,旋转侧刃图像采集装置8,使得侧刃相机镜头平面与任一刀具底刃平面上刀尖与刀具中心连线垂直;底刃相机采集到的刀具图像是刀具在标准状态下的图像。Step 5. Positioning of the side edge camera: the same as the above parameter acquisition step 7, through the obtained θ angle, rotate the side edge
步骤6、底刃磨损部位图像获取:与上述调取所得刀具底刃的图像。将图像经过预处理后识别出刀具的霍夫圆。以霍夫圆圆形Q1为中心截取边长为X1的正方形,截取正方形内部图像。
步骤7、底刃磨损部位图像处理:通过OTUS阈值检测将正方形内部图像中磨损区域提取出,将磨损区像素置为255,其他部分像素置为0。Step 7. Image processing of the wear part of the bottom edge: extract the wear area in the inner image of the square through OTUS threshold detection, set the pixels of the wear area to 255, and set the pixels of other parts to 0.
步骤8、底刃磨损区域的提取:将磨损的刀具阈值图像与已有的未磨损刀具模板进行掩膜处理,将所需提取的当前刀刃之外的图像像素置为0;
步骤9、侧刃磨损部位图像获取:与上述参数获取步骤9相同,通过图像剪裁获取刀具侧刃磨损部位图像截图。Step 9. Acquisition of the image of the worn part of the side edge: the same as the above parameter acquisition step 9, a screenshot of the image of the worn part of the side edge of the tool is obtained by image clipping.
步骤10、侧刃磨损部位图像处理:通过OTUS阈值检测将将获得的矩形内部图像磨损区域提取出,将磨损区像素置为255,其他部分像素置为0。Step 10. Image processing of the wear part of the side edge: extract the wear area of the obtained rectangular inner image through OTUS threshold detection, set the pixels of the wear area to 255, and set the pixels of other parts to 0.
步骤11、侧刃磨损区域的提取:将磨损的刀具阈值图像与已有的未磨损刀具模板进行掩膜处理,将所需提取的当前刀刃之外的图像像素置为0;将磨损区域以刀尖为中心逆时针旋转,旋转的角度为角刀具的螺旋角,使得磨损区域程垂直带状。重复多次,提取所有侧刃磨损区域。Step 11. Extraction of the worn area of the side edge: Mask the worn tool threshold image and the existing unworn tool template, set the image pixels other than the current edge to be extracted to 0; set the worn area as a knife The tip is rotated counterclockwise from the center, and the angle of rotation is the helix angle of the corner cutter, so that the wear area is vertically banded. Repeat several times to extract all flank wear areas.
步骤12、计算磨损量;Step 12, calculating the amount of wear;
对于处理好的底刃以及侧刃磨损图像,通过一条水平直线从下到上扫描,计算得出磨损区域的水平方向平均像素值a,带入公式VB=M×a将其转化为实际平均磨损量尺寸VB,底刃磨损量尺寸为VB1,侧刃磨损量尺寸为VB2。计算每个底刃和侧刃的磨损量,存储数据。For the processed bottom edge and side edge wear images, scan from bottom to top with a horizontal line to calculate the average pixel value a in the horizontal direction of the wear area, and put it into the formula VB=M×a to convert it into the actual average wear The measurement dimension is VB, the bottom edge wear dimension is VB 1 , and the side edge wear dimension is VB 2 . Calculates the wear amount of each bottom edge and side edge, and stores the data.
步骤13、磨损评价;损伤特征指标Step 13, wear evaluation; damage characteristic index
若的刀具任意一VB1或者VB2大于Lmm则该刀具磨损过度,向加工中心系统发出警报,停止使用该刀具;其中L为依据国标所定磨钝标准。If any VB 1 or VB 2 of the tool is greater than Lmm, the tool wears excessively, and an alarm is sent to the machining center system to stop using the tool; where L is the bluntness standard set according to the national standard.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211632154.3A CN116000701A (en) | 2022-12-19 | 2022-12-19 | Tool detection device and method that can be integrated on tool magazine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211632154.3A CN116000701A (en) | 2022-12-19 | 2022-12-19 | Tool detection device and method that can be integrated on tool magazine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116000701A true CN116000701A (en) | 2023-04-25 |
Family
ID=86032696
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211632154.3A Pending CN116000701A (en) | 2022-12-19 | 2022-12-19 | Tool detection device and method that can be integrated on tool magazine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116000701A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118664402A (en) * | 2024-08-23 | 2024-09-20 | 湘潭大学 | Visual detection device and method for abrasion state of numerical control cutter |
-
2022
- 2022-12-19 CN CN202211632154.3A patent/CN116000701A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118664402A (en) * | 2024-08-23 | 2024-09-20 | 湘潭大学 | Visual detection device and method for abrasion state of numerical control cutter |
CN118664402B (en) * | 2024-08-23 | 2024-11-22 | 湘潭大学 | A visual detection device and method for wear status of numerical control tools |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109612390B (en) | Large-size workpiece automatic measuring system based on machine vision | |
CN107717631B (en) | A kind of HSC Milling Tools abrasion automatic monitoring method | |
CN109201413B (en) | Visual positioning point glue system and method thereof | |
CN111230593B (en) | Milling cutter abrasion loss visual measurement method based on dynamic image sequence | |
CN102501140B (en) | Method for positioning and monitoring wear of ball nose end mill cutter | |
TWI380872B (en) | Tool nose position detection method and tool nose position detection device | |
CN109702290B (en) | Steel plate groove cutting method based on visual identification | |
CN105666246B (en) | Cutter parameter measuring device and its measuring method based on CCD | |
CN112264839A (en) | Cutting tool abrasion in-situ measuring device and method for manufacturing Internet of things | |
CN110091217B (en) | Turning flutter acceleration acquisition system and method based on machine vision | |
CN110108236B (en) | Rapid visual measurement system and method for line reconstruction size of high-temperature forging | |
CN102114607A (en) | Method for polishing glass and polishing machine | |
CN103192397A (en) | Off-line visual programming method and system for robot | |
CN103801823A (en) | Wafer alignment positioning device and method | |
CN108062072A (en) | A kind of dual camera image collecting device and the flat-bottom milling cutter of image mosaic abrasion online test method | |
CN107957245A (en) | Engine link dimension measuring device and its measuring method based on machine vision | |
CN109978940A (en) | A kind of SAB air bag size vision measuring method | |
CN106378663A (en) | Machine tool auxiliary tool setting system based on machine vision | |
CN107804708A (en) | A kind of pivot localization method of placement equipment feeding rotary shaft | |
CN108188835B (en) | Test device and test method for thermal elongation of CNC machine tool spindle based on machine vision | |
CN107160241A (en) | A kind of vision positioning system and method based on Digit Control Machine Tool | |
CN118314138B (en) | Laser processing method and system based on machine vision | |
CN114425719A (en) | A ball-end milling cutter detection device and milling cutter detection method based on CCD camera | |
CN115164752A (en) | A kind of self-adaptive measuring equipment and method for gap and step difference of large parts | |
CN114383505A (en) | An automatic detection device for the size of short shaft parts |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |