A numerical control machine tool cutter defect detection method and system based on image analysis

By using image analysis methods to detect defects in CNC machine tool cutting tools, the problems of workpiece damage and increased costs caused by tool defects have been solved, achieving effective detection and prevention and reducing scrap rates.

CN122265238APending Publication Date: 2026-06-23GUANGZHOU HEXING ELECTROMECHANICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU HEXING ELECTROMECHANICAL TECH CO LTD
Filing Date
2026-03-27
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

Defects in CNC machine tool cutting tools lead to damage to machined parts and increased production costs, and existing technologies are insufficient for effective detection and prevention.

Method used

Using an image analysis-based approach, defects are detected on the front and back of CNC machine tool cutting tools through image acquisition, feature analysis, and angle measurement. The sharpness of the cutting edge is also assessed to determine if it meets the standards. Data comparison and information exchange are performed using a defect detection terminal and image capturing equipment.

Benefits of technology

Effectively detect defects in CNC machine tool cutting tools to ensure normal machining, reduce scrap rate and production costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122265238A_ABST
    Figure CN122265238A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on image analysis's numerical control machine tool tool defect detection method and system, it is related to image analysis technical field, including control shooting equipment to numerical control machine tool tool image acquisition processing, obtains the front image of numerical control machine tool tool and the back image of numerical control machine tool tool.The application first by the standard image of numerical control machine tool tool of same shooting background to the front gray scale image of numerical control machine tool tool and the back gray scale image of numerical control machine tool tool data comparison processing, determine whether pixel value is same, if not same, then it indicates that numerical control machine tool tool surface exists defect, then, by the first angle of numerical control machine tool tool and the second angle of numerical control machine tool tool comparative analysis, determine whether the sharpness of numerical control machine tool tool meets standard, ensure that numerical control machine tool tool can normal machining, the above-mentioned mode ensures that numerical control machine tool tool can normal machining to workpiece, reduces scrap rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image analysis technology, specifically to a method and system for detecting defects in CNC machine tool cutting tools based on image analysis. Background Technology

[0002] A Computer Numerical Control (CNC) lathe is a lathe controlled by a computer, a highly efficient automated machine that automatically processes workpieces according to a pre-programmed numerical control program. CNC lathes are mainly used for cutting internal and external cylindrical surfaces, internal and external conical surfaces with arbitrary cone angles, complex rotating internal and external curved surfaces, and cylindrical and conical threads on shaft or disc-shaped parts. They can also perform grooving, drilling, reaming, boring, and other machining operations. The working principle of a CNC lathe is to compile the machining process route, process parameters, tool movement trajectory, displacement, cutting parameters, and auxiliary functions into a machining program sheet according to the instruction codes and program format specified by the CNC lathe. The contents of this program sheet are then recorded on a control medium and input into the CNC lathe's numerical control unit, thereby directing the lathe to process the parts.

[0003] CNC machine tools use cutting tools to process workpieces. If the cutting tools of a CNC machine tool are defective, continuing to use the defective cutting tools to process the workpiece may damage the workpiece, increase the scrap rate, and also increase production costs. Summary of the Invention

[0004] To address the aforementioned technical problems, this paper provides a method and system for detecting defects in CNC machine tool cutting tools based on image analysis. This technical solution solves the problems mentioned in the background section.

[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A method for detecting defects in CNC machine tool cutting tools based on image analysis, comprising: Based on the defect detection terminal, the image capturing device is controlled to perform image acquisition and processing on the CNC machine tool cutting tool, and to obtain the front image and the back image of the CNC machine tool cutting tool. Based on the defect detection terminal, feature analysis processing is performed on the front and back images of CNC machine tool cutting tools to determine whether there are defects on the front and back of the CNC machine tool cutting tools. If there are no defects on either the front or back of the CNC machine tool cutting tool, the cutting edge angle of the CNC machine tool cutting tool is measured using a defect detection terminal to determine whether the cutting edge sharpness of the CNC machine tool cutting tool meets the standard.

[0006] Preferably, the step of performing feature analysis processing on the front and back images of the CNC machine tool cutting tool based on the defect detection terminal to determine whether there are defects on the front and back of the CNC machine tool cutting tool specifically includes the following steps: Based on the defect detection terminal, standard images of CNC machine tool tools with the same shooting background are selected from the database system with the shooting angle of the CNC machine tool tool as a reference. Based on the defect detection terminal, the front and back images of the CNC machine tool tool are processed into grayscale to obtain the front grayscale image and the back grayscale image of the CNC machine tool tool. Based on the defect detection terminal, the grayscale images of the front and back sides of the CNC machine tool are compared and processed according to the standard images of CNC machine tool tools with the same shooting background to determine whether there are defects on the front and back sides of the CNC machine tool tool. The standard images of CNC machine tool tools with the same shooting background include a standard grayscale image of the front side of the CNC machine tool tool and a standard grayscale image of the back side of the CNC machine tool tool with the same shooting background.

[0007] Preferably, the step of using a defect detection terminal to compare the grayscale images of the front and back sides of a CNC machine tool with a standard image of the CNC machine tool taken against the same background to determine whether there are defects on the front and back sides of the CNC machine tool specifically includes the following steps: Based on the defect detection terminal, pixel value calculation processing is performed on the standard grayscale images of the front and back of the CNC machine tool with the same shooting background, as well as the grayscale images of the front and back of the CNC machine tool with the same shooting background. The total pixel value of the standard grayscale images of the front and back of the CNC machine tool with the same shooting background is obtained. Based on the defect detection terminal, the total pixel values ​​of the standard grayscale images of the front and back of the CNC machine tool tool under the same shooting background are compared and analyzed to determine whether there are defects on the front and back of the CNC machine tool tool.

[0008] Preferably, the step of using a defect detection terminal to compare and analyze the total pixel values ​​of the standard grayscale images of the front and back sides of a CNC machine tool tool under the same shooting background, and to determine whether defects exist on the front and back sides of the CNC machine tool tool, specifically includes the following steps: Based on the defect detection terminal, the sum of pixel values ​​of the standard grayscale image of the front of the CNC machine tool tool under the same shooting background and the sum of pixel values ​​of the front grayscale image of the CNC machine tool tool are judged and processed. If the total pixel value of the standard grayscale image of the front of the CNC machine tool tool under the same shooting background is equal to the total pixel value of the grayscale image of the front of the CNC machine tool tool, then there is no defect on the front of the CNC machine tool tool. If the total pixel value of the standard grayscale image of the front of the CNC machine tool tool under the same shooting background is not equal to the total pixel value of the grayscale image of the front of the CNC machine tool tool, there is a defect on the front of the CNC machine tool tool. Based on the defect detection terminal, the sum of pixel values ​​of the standard grayscale image of the reverse side of the CNC machine tool tool under the same shooting background and the sum of pixel values ​​of the grayscale image of the reverse side of the CNC machine tool tool are judged and processed. If the total pixel value of the standard grayscale image of the reverse side of the CNC machine tool tool under the same shooting background is equal to the total pixel value of the grayscale image of the reverse side of the CNC machine tool tool, then there is no defect on the reverse side of the CNC machine tool tool. If the total pixel value of the standard grayscale image of the reverse side of a CNC machine tool tool with the same shooting background is not equal to the total pixel value of the grayscale image of the reverse side of the CNC machine tool tool, then there is a defect on the reverse side of the CNC machine tool tool.

[0009] Preferably, if there are no defects on either the front or back of the CNC machine tool cutting tool, the angle measurement of the cutting edge of the CNC machine tool is performed based on the defect detection terminal to determine whether the sharpness of the cutting edge of the CNC machine tool meets the standard. This specifically includes the following steps: Based on the defect detection terminal, a three-dimensional rectangular coordinate system is constructed. The origin of the three-dimensional rectangular coordinate system is the center position of the cutting edge of the CNC machine tool. The X-axis of the three-dimensional rectangular coordinate system is the cutting edge direction of the CNC machine tool. The Y-axis of the three-dimensional rectangular coordinate system is perpendicular to the cutting edge direction of the CNC machine tool. The Z-axis of the three-dimensional rectangular coordinate system passes through the origin and is perpendicular to the X-axis and Y-axis. Based on the defect detection terminal, in a three-dimensional rectangular coordinate system, an arbitrary position is selected at the intersection of the front of the CNC machine tool and the cutting edge of the CNC machine tool to obtain the coordinates of the first reference point of the CNC machine tool. Based on the defect detection terminal, the coordinates of the first reference point of the CNC machine tool tool are mirrored to the opposite side of the CNC machine tool tool with the origin of the three-dimensional rectangular coordinate system as the symmetry point, so as to obtain the coordinates of the second reference point of the CNC machine tool tool. Based on the defect detection terminal, the coordinates of the first reference point and the second reference point of the CNC machine tool are calculated and processed to determine whether the cutting edge sharpness of the CNC machine tool meets the standard.

[0010] Preferably, the step of calculating and processing the coordinates of the first reference point and the second reference point of the CNC machine tool based on the defect detection terminal to determine whether the cutting edge sharpness of the CNC machine tool meets the standard specifically includes the following steps: Based on the defect detection terminal, a straight line is drawn from the origin of the three-dimensional rectangular coordinate system to the first reference point coordinate of the CNC machine tool, and the angle between the straight line and the Z-axis of the three-dimensional rectangular coordinate system is calculated to obtain the first included angle of the CNC machine tool. Based on the defect detection terminal, a straight line is drawn from the origin of the three-dimensional rectangular coordinate system to the second reference point coordinate of the CNC machine tool, and the angle between the straight line and the Z-axis of the three-dimensional rectangular coordinate system is calculated to obtain the second included angle of the CNC machine tool. Based on the defect detection terminal, the first included angle and the second included angle of the CNC machine tool tool are compared and analyzed to determine whether the cutting edge sharpness of the CNC machine tool tool meets the standard.

[0011] Preferably, the step of comparing and analyzing the first included angle and the second included angle of the CNC machine tool cutting tool based on the defect detection terminal to determine whether the cutting edge sharpness of the CNC machine tool cutting tool meets the standard specifically includes the following steps: Based on the defect detection terminal, the first included angle of the CNC machine tool tool and the set first included angle threshold are judged and processed; If the first included angle of the CNC machine tool tool is greater than or equal to the set first included angle threshold, the sharpness of the front cutting edge of the CNC machine tool tool does not meet the standard. Based on the defect detection terminal, the information that the front cutting edge of the CNC machine tool tool needs to be ground is sent to the electronic equipment of the maintenance personnel. The maintenance personnel then grind the front cutting edge of the CNC machine tool tool. If the first included angle of the CNC machine tool tool is less than the set first included angle threshold, the sharpness of the front cutting edge of the CNC machine tool tool meets the standard. Based on the defect detection terminal, the second included angle of the CNC machine tool tool and the set threshold value of the second included angle are judged and processed; If the second included angle of the CNC machine tool tool is greater than or equal to the set second included angle threshold, the sharpness of the reverse cutting edge of the CNC machine tool tool does not meet the standard. Based on the defect detection terminal, the information that the reverse cutting edge of the CNC machine tool tool needs to be ground is sent to the electronic equipment of the maintenance personnel. The maintenance personnel then grind the reverse cutting edge of the CNC machine tool tool. If the second included angle of the CNC machine tool tool is less than the set second included angle threshold, the sharpness of the reverse cutting edge of the CNC machine tool tool meets the standard.

[0012] Furthermore, an image analysis-based CNC machine tool defect detection system is proposed to implement the image analysis-based CNC machine tool defect detection method described above, including: The defect detection terminal is used to control various modules to capture images, analyze image features, and compare data of CNC machine tool cutting tools, and to determine whether there are defects on the front and back of the CNC machine tool cutting tools and whether the sharpness of the cutting edge of the CNC machine tool cutting tools meets the standards. The defect detection terminal is also used to control data transmission and information interaction between various modules. An image capturing device is used to acquire and process images of CNC machine tool cutting tools, and to obtain front and back images of the CNC machine tool cutting tools. A database system for storing various data about CNC machine tools; The feature comparison module performs data comparison processing on the front grayscale image and the back grayscale image of the CNC machine tool tool based on the standard image of the CNC machine tool tool with the same shooting background, to determine whether there are defects on the front and back of the CNC machine tool tool. An angle comparison module compares and analyzes the first included angle and the second included angle of the CNC machine tool cutting tool to determine whether the cutting edge sharpness of the CNC machine tool cutting tool meets the standard.

[0013] Compared with the prior art, the present invention provides a method and system for detecting defects in CNC machine tool tools based on image analysis, which has the following beneficial effects: This invention first compares the front and back grayscale images of a CNC machine tool using a standard image of a CNC machine tool taken against the same background to determine if the pixel values ​​are the same. If they are different, it indicates that there is a defect on the surface of the CNC machine tool. Then, by comparing and analyzing the first and second included angles of the CNC machine tool, it determines whether the sharpness of the cutting edge of the CNC machine tool meets the standard, ensuring that the CNC machine tool can process normally. The above method ensures that the CNC machine tool can process the workpiece normally and reduces the scrap rate. Attached Figure Description

[0014] Figure 1 This is a flowchart illustrating steps S100-S300 in the image analysis-based CNC machine tool defect detection method proposed in this invention. Figure 2 This is a structural block diagram of a CNC machine tool tool defect detection system based on image analysis proposed in this invention. Detailed Implementation

[0015] The following description is intended to disclose the invention and enable those skilled in the art to implement it. The preferred embodiments described below are merely examples, and other obvious variations will occur to those skilled in the art.

[0016] Reference Figure 1 As shown, a method for detecting defects in CNC machine tool cutting tools based on image analysis includes: S100: Based on the defect detection terminal, control the image capturing device to perform image acquisition and processing on the CNC machine tool cutting tool, and obtain the front image and the back image of the CNC machine tool cutting tool; S200: Based on the defect detection terminal, feature analysis processing is performed on the front image and the back image of the CNC machine tool cutting tool to determine whether there are defects on the front and back of the CNC machine tool cutting tool. S300. If there are no defects on the front and back of the CNC machine tool, the cutting edge of the CNC machine tool is measured and processed based on the defect detection terminal to determine whether the sharpness of the cutting edge of the CNC machine tool meets the standard. Those skilled in the art understand that when a CNC machine tool is machining a workpiece, the surface temperature of the CNC machine tool may rise or the surface of the CNC machine tool may collide with other objects as the machining time increases, resulting in defects on the front or back of the CNC machine tool or a decrease in the sharpness of the CNC machine tool's cutting edge. In order to avoid the impact of CNC machine tool defects on the workpiece, defect detection is performed on the CNC machine tool. When a defect is detected, the CNC machine tool is replaced or repaired in a timely manner. Example

[0017] Step S200: Based on the defect detection terminal, feature analysis processing is performed on the front and back images of the CNC machine tool cutting tool to determine whether there are defects on the front and back of the CNC machine tool cutting tool. This specifically includes the following steps: S201. Based on the defect detection terminal, select a standard image of a CNC machine tool with the same shooting background from the database system, using the shooting angle of the CNC machine tool as a reference. S202. Based on the defect detection terminal, perform grayscale processing on the front image and the back image of the CNC machine tool tool respectively to obtain the front grayscale image and the back grayscale image of the CNC machine tool tool. S203. Based on the defect detection terminal, the front grayscale image and the back grayscale image of the CNC machine tool are compared and processed according to the standard image of the CNC machine tool with the same shooting background to determine whether there are defects on the front and back of the CNC machine tool. Among them, the standard images of CNC machine tool tools with the same shooting background include a standard grayscale image of the front side of the CNC machine tool tool with the same shooting background and a standard grayscale image of the back side of the CNC machine tool tool with the same shooting background; Specifically, step S203, based on the defect detection terminal, involves comparing the grayscale images of the front and back sides of the CNC machine tool with standard images of CNC machine tool tools taken against the same background to determine whether defects exist on the front and back sides of the CNC machine tool tool. This includes the following steps: S2031. Based on the defect detection terminal, perform pixel value calculation processing on the standard grayscale images of the front and back of the CNC machine tool with the same shooting background, the standard grayscale images of the back of the CNC machine tool with the same shooting background, the grayscale images of the front and back of the CNC machine tool, and obtain the total pixel value of the standard grayscale images of the front and back of the CNC machine tool with the same shooting background, the total pixel value of the standard grayscale images of the back of the CNC machine tool with the same shooting background, the total pixel value of the front grayscale images of the CNC machine tool, and the total pixel value of the back grayscale images of the CNC machine tool. S2032. Based on the defect detection terminal, the total pixel value of the standard grayscale image of the front side of the CNC machine tool tool, the total pixel value of the standard grayscale image of the front side of the CNC machine tool tool, the total pixel value of the standard grayscale image of the back side of the CNC machine tool tool, and the total pixel value of the grayscale image of the back side of the CNC machine tool tool are compared and analyzed to determine whether there are defects on the front side and the back side of the CNC machine tool tool. Specifically, step S2032, based on the defect detection terminal, involves comparing and analyzing the total pixel values ​​of the standard grayscale images of the front and back sides of a CNC machine tool tool under the same shooting background to determine whether defects exist on the front and back sides of the CNC machine tool tool. This includes the following steps: S20321. Based on the defect detection terminal, the sum of pixel values ​​of the standard grayscale image of the front of the CNC machine tool tool under the same shooting background and the sum of pixel values ​​of the front grayscale image of the CNC machine tool tool are judged and processed. S20322. If the total pixel value of the standard grayscale image of the front of the CNC machine tool tool under the same shooting background is equal to the total pixel value of the grayscale image of the front of the CNC machine tool tool, there is no defect on the front of the CNC machine tool tool. S20323. If the total pixel value of the standard grayscale image of the front of the CNC machine tool tool with the same shooting background is not equal to the total pixel value of the grayscale image of the front of the CNC machine tool tool, there is a defect on the front of the CNC machine tool tool. S20324. Based on the defect detection terminal, the sum of pixel values ​​of the standard grayscale image of the reverse side of the CNC machine tool tool under the same shooting background and the sum of pixel values ​​of the grayscale image of the reverse side of the CNC machine tool tool are judged and processed. S20325. If the total pixel value of the standard grayscale image of the reverse side of the CNC machine tool tool under the same shooting background is equal to the total pixel value of the grayscale image of the reverse side of the CNC machine tool tool, then there is no defect on the reverse side of the CNC machine tool tool. S20326. If the total pixel value of the standard grayscale image of the reverse side of a CNC machine tool tool with the same shooting background is not equal to the total pixel value of the grayscale image of the reverse side of the CNC machine tool tool, then there is a defect on the reverse side of the CNC machine tool tool. In this embodiment, when a defect occurs in a CNC machine tool cutting tool, the pixel value of the CNC machine tool cutting tool image will change. Therefore, by comparing the pixel value with that of a standard image of a CNC machine tool cutting tool with the same shooting background, it is determined whether the pixel values ​​of the two are the same. If they are different, it indicates that a defect has occurred on the front or back of the CNC machine tool cutting tool. The defect of the CNC machine tool cutting tool should be detected in time, and it should be determined whether to replace the CNC machine tool cutting tool. It is worth noting that the shooting background of the standard image of the CNC machine tool cutting tool with the same shooting background is exactly the same as the shooting background of the front image and the back image of the CNC machine tool cutting tool, and the shooting parameters of the image shooting equipment are the same. Otherwise, pixel value comparison cannot be performed, and it is impossible to determine whether there is a defect in the CNC machine tool cutting tool. Example

[0018] Step S300: If there are no defects on either the front or back of the CNC machine tool cutting tool, the cutting edge angle of the CNC machine tool cutting tool is measured using a defect detection terminal to determine whether the cutting edge sharpness of the CNC machine tool cutting tool meets the standard. This specifically includes the following steps: S301. Based on the defect detection terminal, a three-dimensional rectangular coordinate system is constructed. The origin of the three-dimensional rectangular coordinate system is the center position of the cutting edge of the CNC machine tool. The X-axis of the three-dimensional rectangular coordinate system is the cutting edge direction of the CNC machine tool. The Y-axis of the three-dimensional rectangular coordinate system is perpendicular to the cutting edge direction of the CNC machine tool. The Z-axis of the three-dimensional rectangular coordinate system passes through the origin and is perpendicular to the X-axis and Y-axis. S302. Based on the defect detection terminal, select any position in the three-dimensional rectangular coordinate system at the intersection of the front of the CNC machine tool and the cutting edge of the CNC machine tool to obtain the coordinates of the first reference point of the CNC machine tool. S303. Based on the defect detection terminal, the coordinates of the first reference point of the CNC machine tool tool are mirrored to the opposite side of the CNC machine tool tool with the origin of the three-dimensional rectangular coordinate system as the symmetry point, so as to obtain the coordinates of the second reference point of the CNC machine tool tool. S304. Based on the defect detection terminal, calculate and process the coordinates of the first reference point and the second reference point of the CNC machine tool to determine whether the cutting edge sharpness of the CNC machine tool meets the standard. Specifically, step S304, based on the defect detection terminal, calculates and processes the coordinates of the first reference point and the second reference point of the CNC machine tool to determine whether the cutting edge sharpness of the CNC machine tool meets the standard. This includes the following steps: S3041. Based on the defect detection terminal, take the origin of the three-dimensional rectangular coordinate system as the starting point, draw a straight line to the first reference point coordinate of the CNC machine tool, and calculate the angle between the straight line and the Z-axis of the three-dimensional rectangular coordinate system to obtain the first included angle of the CNC machine tool. S3042. Based on the defect detection terminal, take the origin of the three-dimensional rectangular coordinate system as the starting point, draw a straight line to the second reference point coordinate of the CNC machine tool, and calculate the angle between the straight line and the Z-axis of the three-dimensional rectangular coordinate system to obtain the second included angle of the CNC machine tool. S3043. Based on the defect detection terminal, the first included angle and the second included angle of the CNC machine tool tool are compared and analyzed to determine whether the cutting edge sharpness of the CNC machine tool tool meets the standard. Specifically, step S3043, based on the defect detection terminal, involves comparing and analyzing the first included angle and the second included angle of the CNC machine tool cutting tool to determine whether the cutting edge sharpness of the CNC machine tool meets the standard. This includes the following steps: S30431. Based on the defect detection terminal, the first included angle of the CNC machine tool tool and the set first included angle threshold are judged and processed. S30432. If the first included angle of the CNC machine tool tool is greater than or equal to the set first included angle threshold, and the sharpness of the front cutting edge of the CNC machine tool tool does not meet the standard, the front cutting edge of the CNC machine tool tool needs to be ground by sending information to the electronic equipment of the maintenance personnel based on the defect detection terminal, and the maintenance personnel grind the front cutting edge of the CNC machine tool tool. S30433. If the first included angle of the CNC machine tool is less than the set first included angle threshold, the sharpness of the front cutting edge of the CNC machine tool meets the standard. S30434. Based on the defect detection terminal, the second included angle of the CNC machine tool tool and the set threshold value of the second included angle are judged and processed. S30435. If the second included angle of the CNC machine tool tool is greater than or equal to the set second included angle threshold, the sharpness of the reverse cutting edge of the CNC machine tool tool does not meet the standard. Based on the defect detection terminal, the reverse cutting edge of the CNC machine tool tool needs to be ground, and the maintenance personnel grind the reverse cutting edge of the CNC machine tool tool. S30436. If the second included angle of the CNC machine tool is less than the set second included angle threshold, the sharpness of the reverse cutting edge of the CNC machine tool meets the standard. In this embodiment, if the sharpness of the CNC machine tool cutting edge does not meet the standard, the error will increase when the CNC machine tool is machining the workpiece, which will in turn increase the scrap rate. Therefore, the sharpness of the CNC machine tool cutting edge is determined by the angle between the front and back of the CNC machine tool cutting edge and the cutting edge. The smaller the angle, the sharper the cutting edge of the CNC machine tool cutting edge. The larger the angle, the blunter the cutting edge of the CNC machine tool cutting edge. When the cutting edge of the CNC machine tool cutting edge is too blunt, the machining error will increase, which will in turn increase the scrap rate.

[0019] Reference Figure 2 As shown, an image analysis-based CNC machine tool defect detection system is used to implement the image analysis-based CNC machine tool defect detection method described above, including: The defect detection terminal is used to control various modules to capture images, analyze image features, and compare data of CNC machine tool cutting tools, and to determine whether there are defects on the front and back of the CNC machine tool cutting tools and whether the sharpness of the cutting edge of the CNC machine tool cutting tools meets the standards. The defect detection terminal is also used to control data transmission and information interaction between various modules. An image capturing device is used to acquire and process images of CNC machine tool cutting tools, and to obtain front and back images of the CNC machine tool cutting tools. A database system for storing various data about CNC machine tools; The feature comparison module performs data comparison processing on the front grayscale image and the back grayscale image of the CNC machine tool tool based on the standard image of the CNC machine tool tool with the same shooting background, to determine whether there are defects on the front and back of the CNC machine tool tool. An angle comparison module compares and analyzes the first included angle and the second included angle of the CNC machine tool cutting tool to determine whether the cutting edge sharpness of the CNC machine tool cutting tool meets the standard.

[0020] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the claimed invention. The scope of protection claimed by the appended claims and their equivalents is defined.

Claims

1. A method for detecting defects in CNC machine tool cutting tools based on image analysis, characterized in that, include: Based on the defect detection terminal, the image capturing device is controlled to perform image acquisition and processing on the CNC machine tool cutting tool, and to obtain the front image and the back image of the CNC machine tool cutting tool. Based on the defect detection terminal, feature analysis processing is performed on the front and back images of CNC machine tool cutting tools to determine whether there are defects on the front and back of the CNC machine tool cutting tools. If there are no defects on either the front or back of the CNC machine tool cutting tool, the cutting edge angle of the CNC machine tool cutting tool is measured using a defect detection terminal to determine whether the cutting edge sharpness of the CNC machine tool cutting tool meets the standard.

2. The method for detecting defects in CNC machine tool cutting tools based on image analysis according to claim 1, characterized in that, The process of using a defect detection terminal to perform feature analysis on the front and back images of a CNC machine tool cutting tool to determine whether defects exist on the front and back of the CNC machine tool cutting tool specifically includes the following steps: Based on the defect detection terminal, standard images of CNC machine tool tools with the same shooting background are selected from the database system with the shooting angle of the CNC machine tool tool as a reference. Based on the defect detection terminal, the front and back images of the CNC machine tool tool are processed into grayscale to obtain the front grayscale image and the back grayscale image of the CNC machine tool tool. Based on the defect detection terminal, the grayscale images of the front and back sides of the CNC machine tool are compared and processed according to the standard images of CNC machine tool tools with the same shooting background to determine whether there are defects on the front and back sides of the CNC machine tool tool. The standard images of CNC machine tool tools with the same shooting background include a standard grayscale image of the front side of the CNC machine tool tool and a standard grayscale image of the back side of the CNC machine tool tool with the same shooting background.

3. The method for detecting defects in CNC machine tool cutting tools based on image analysis according to claim 2, characterized in that, The defect detection terminal performs data comparison processing on the front grayscale image and the back grayscale image of the CNC machine tool based on a standard image of the CNC machine tool with the same shooting background to determine whether there are defects on the front and back of the CNC machine tool. Specifically, this includes the following steps: Based on the defect detection terminal, pixel value calculation processing is performed on the standard grayscale images of the front and back of the CNC machine tool with the same shooting background, as well as the grayscale images of the front and back of the CNC machine tool with the same shooting background. The total pixel value of the standard grayscale images of the front and back of the CNC machine tool with the same shooting background is obtained. Based on the defect detection terminal, the total pixel values ​​of the standard grayscale images of the front and back of the CNC machine tool tool under the same shooting background are compared and analyzed to determine whether there are defects on the front and back of the CNC machine tool tool.

4. The method for detecting defects in CNC machine tool cutting tools based on image analysis according to claim 3, characterized in that, The defect detection terminal performs comparative analysis on the sum of pixel values ​​of the front and back standard grayscale images of the CNC machine tool tool under the same shooting background, respectively, to determine whether defects exist on the front and back of the CNC machine tool tool. Specifically, this includes the following steps: Based on the defect detection terminal, the sum of pixel values ​​of the standard grayscale image of the front of the CNC machine tool tool under the same shooting background and the sum of pixel values ​​of the front grayscale image of the CNC machine tool tool are judged and processed. If the total pixel value of the standard grayscale image of the front of the CNC machine tool tool under the same shooting background is equal to the total pixel value of the grayscale image of the front of the CNC machine tool tool, then there is no defect on the front of the CNC machine tool tool. If the total pixel value of the standard grayscale image of the front of the CNC machine tool tool under the same shooting background is not equal to the total pixel value of the grayscale image of the front of the CNC machine tool tool, there is a defect on the front of the CNC machine tool tool. Based on the defect detection terminal, the sum of pixel values ​​of the standard grayscale image of the reverse side of the CNC machine tool tool under the same shooting background and the sum of pixel values ​​of the grayscale image of the reverse side of the CNC machine tool tool are judged and processed. If the total pixel value of the standard grayscale image of the reverse side of the CNC machine tool tool under the same shooting background is equal to the total pixel value of the grayscale image of the reverse side of the CNC machine tool tool, then there is no defect on the reverse side of the CNC machine tool tool. If the total pixel value of the standard grayscale image of the reverse side of a CNC machine tool tool with the same shooting background is not equal to the total pixel value of the grayscale image of the reverse side of the CNC machine tool tool, then there is a defect on the reverse side of the CNC machine tool tool.

5. The method for detecting defects in CNC machine tool cutting tools based on image analysis according to claim 4, characterized in that, If there are no defects on either the front or back of the CNC machine tool cutting tool, the cutting edge angle of the CNC machine tool cutting tool is measured using a defect detection terminal to determine whether the cutting edge sharpness of the CNC machine tool cutting tool meets the standard. The specific steps include the following: Based on the defect detection terminal, a three-dimensional rectangular coordinate system is constructed. The origin of the three-dimensional rectangular coordinate system is the center position of the cutting edge of the CNC machine tool. The X-axis of the three-dimensional rectangular coordinate system is the cutting edge direction of the CNC machine tool. The Y-axis of the three-dimensional rectangular coordinate system is perpendicular to the cutting edge direction of the CNC machine tool. The Z-axis of the three-dimensional rectangular coordinate system passes through the origin and is perpendicular to the X-axis and Y-axis. Based on the defect detection terminal, in a three-dimensional rectangular coordinate system, an arbitrary position is selected at the intersection of the front of the CNC machine tool and the cutting edge of the CNC machine tool to obtain the coordinates of the first reference point of the CNC machine tool. Based on the defect detection terminal, the coordinates of the first reference point of the CNC machine tool tool are mirrored to the opposite side of the CNC machine tool tool with the origin of the three-dimensional rectangular coordinate system as the symmetry point, so as to obtain the coordinates of the second reference point of the CNC machine tool tool. Based on the defect detection terminal, the coordinates of the first reference point and the second reference point of the CNC machine tool are calculated and processed to determine whether the cutting edge sharpness of the CNC machine tool meets the standard.

6. The method for detecting defects in CNC machine tool cutting tools based on image analysis according to claim 5, characterized in that, The process of calculating and processing the coordinates of the first reference point and the second reference point of the CNC machine tool based on the defect detection terminal to determine whether the cutting edge sharpness of the CNC machine tool meets the standard includes the following steps: Based on the defect detection terminal, a straight line is drawn from the origin of the three-dimensional rectangular coordinate system to the first reference point coordinate of the CNC machine tool, and the angle between the straight line and the Z-axis of the three-dimensional rectangular coordinate system is calculated to obtain the first included angle of the CNC machine tool. Based on the defect detection terminal, a straight line is drawn from the origin of the three-dimensional rectangular coordinate system to the second reference point coordinate of the CNC machine tool, and the angle between the straight line and the Z-axis of the three-dimensional rectangular coordinate system is calculated to obtain the second included angle of the CNC machine tool. Based on the defect detection terminal, the first included angle and the second included angle of the CNC machine tool tool are compared and analyzed to determine whether the cutting edge sharpness of the CNC machine tool tool meets the standard.

7. The method for detecting defects in CNC machine tool cutting tools based on image analysis according to claim 6, characterized in that, The process of comparing and analyzing the first and second included angles of the CNC machine tool cutting tool based on the defect detection terminal to determine whether the cutting edge sharpness of the CNC machine tool cutting tool meets the standard includes the following steps: Based on the defect detection terminal, the first included angle of the CNC machine tool tool and the set first included angle threshold are judged and processed; If the first included angle of the CNC machine tool tool is greater than or equal to the set first included angle threshold, the sharpness of the front cutting edge of the CNC machine tool tool does not meet the standard. Based on the defect detection terminal, the information that the front cutting edge of the CNC machine tool tool needs to be ground is sent to the electronic equipment of the maintenance personnel. The maintenance personnel then grind the front cutting edge of the CNC machine tool tool. If the first included angle of the CNC machine tool tool is less than the set first included angle threshold, the sharpness of the front cutting edge of the CNC machine tool tool meets the standard. Based on the defect detection terminal, the second included angle of the CNC machine tool tool and the set threshold value of the second included angle are judged and processed; If the second included angle of the CNC machine tool tool is greater than or equal to the set second included angle threshold, the sharpness of the reverse cutting edge of the CNC machine tool tool does not meet the standard. Based on the defect detection terminal, the information that the reverse cutting edge of the CNC machine tool tool needs to be ground is sent to the electronic equipment of the maintenance personnel. The maintenance personnel then grind the reverse cutting edge of the CNC machine tool tool. If the second included angle of the CNC machine tool tool is less than the set second included angle threshold, the sharpness of the reverse cutting edge of the CNC machine tool tool meets the standard.

8. A CNC machine tool tool defect detection system based on image analysis, used to implement the CNC machine tool tool defect detection method based on image analysis as described in any one of claims 1-7, characterized in that, include: The defect detection terminal is used to control various modules to capture images, analyze image features, and compare data of CNC machine tool cutting tools, and to determine whether there are defects on the front and back of the CNC machine tool cutting tools and whether the sharpness of the cutting edge of the CNC machine tool cutting tools meets the standards. The defect detection terminal is also used to control data transmission and information interaction between various modules. An image capturing device is used to acquire and process images of CNC machine tool cutting tools, and to obtain front and back images of the CNC machine tool cutting tools. A database system for storing various data about CNC machine tools; The feature comparison module performs data comparison processing on the front grayscale image and the back grayscale image of the CNC machine tool tool based on the standard image of the CNC machine tool tool with the same shooting background, to determine whether there are defects on the front and back of the CNC machine tool tool. An angle comparison module compares and analyzes the first included angle and the second included angle of the CNC machine tool cutting tool to determine whether the cutting edge sharpness of the CNC machine tool cutting tool meets the standard.