Workpiece machining method, device and equipment and storage medium
Through the processor, the three-dimensional models and paths of workpieces for CNC machine tools are generated and controlled, and the accuracy of assembly parts caused by manual measurement errors is solved, and the high accuracy of workpiece error detection and machining efficiency are improved.
Patent Information
- Application Number
- CN202510242569.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-03
- Publication Date
- 2025-05-30
AI Technical Summary
During workpiece processing, manual measurement errors make it difficult to ensure the accuracy of the assembly, and the errors caused by the differences in experience and concentration of different measuring personnel have a great impact.
The three-dimensional model of the workpiece is obtained through the processor, the machining path is generated, and the CNC machine tool is controlled for processing, the point cloud model is obtained for error analysis, and the preset specifications and machining path of the second workpiece are determined to ensure the precise matching of the second workpiece and the first workpiece.
It improves the accuracy of workpiece error detection, ensures the accuracy of assembly, reduces deviations caused by manual measurement, and improves processing efficiency.
Smart Images

Figure CN120065916A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of workpiece processing, and particularly to a workpiece processing method, device, equipment and storage medium. Background Art
[0002] In the field of industrial design and manufacturing, accuracy is a key indicator for measuring the quality of workpieces. However, in the actual production process, the workpieces manufactured by lathes often inevitably have tiny errors. These errors may stem from various factors such as the non-uniformity of raw materials, the accuracy limitations of processing equipment, or improper control of process parameters. These errors may have a significant impact on the overall performance and service life of the workpieces, especially in the assembled parts. An assembled part is a complete combined workpiece formed by assembling multiple workpieces together.
[0003] During the manufacturing process of assembled parts, it is necessary for workers to measure the errors of any one or more workpieces in the assembled parts, and then compensate for and process the errors of other workpieces according to the measured errors of the workpieces to accurately match each workpiece into an assembled part. However, due to differences in experience, skills, and concentration among different measurement personnel, this may lead to deviations in their measurement of workpieces, thereby affecting the accuracy of the assembled parts.
[0004] Therefore, the poor accuracy of manually detecting the errors generated by workpieces is an urgent problem to be solved. Summary of the Invention
[0005] In view of this, the purpose of the present application is to provide a workpiece processing method, device, equipment and storage medium to solve the above problems and improve the accuracy of detecting the errors generated by workpieces.
[0006] In a first aspect, an embodiment of the present application provides a workpiece processing method, in which a first workpiece and a second workpiece are installed in a matching manner; the method includes: A processor obtains a three-dimensional model of the first workpiece; The processor generates a first processing path corresponding to the three-dimensional model of the first workpiece; The processor scans the first workpiece obtained by processing a first blank by a numerical control machine tool according to the first processing path to obtain a point cloud model of the first workpiece; The processor performs error analysis on the point cloud model of the first workpiece through a preset point cloud model to obtain a preset specification of the second workpiece; The processor generates a three-dimensional model of the second workpiece according to the preset specification of the second workpiece; The processor generates a second processing path corresponding to the three-dimensional model of the second workpiece; The processor controls the numerical control machine tool to machine the second blank according to the second machining path to obtain the second workpiece.
[0007] Preferably, the step in which the processor generates the first machining path corresponding to the three-dimensional model of the first workpiece includes: The processor analyzes the three-dimensional model of the first workpiece to generate a first original machining path; The processor performs simulated machining on the three-dimensional model of the blank according to the first original machining path to obtain a simulated machining result; If the simulated machining result indicates that the tool damage rate of the numerical control machine tool is greater than or equal to a preset damage rate threshold, the processor modifies the first original machining path to obtain the first machining path.
[0008] Preferably, the step in which the processor performs error analysis on the point cloud model of the first workpiece through a preset point cloud model to obtain the preset specifications of the second workpiece includes: The processor analyzes the preset point cloud model to obtain a first set of coordinate values; wherein, the first set of coordinate values includes the coordinate values of each data point of the preset point cloud model; The processor analyzes the point cloud model of the first workpiece to obtain a second set of coordinate values; wherein, the second set of coordinate values includes the coordinate values of each data point of the point cloud model of the first workpiece; The processor obtains the lengths of the connections between each data point of the preset point cloud model according to the first set of coordinate values; The processor obtains the lengths of the connections between each data point of the point cloud model of the first workpiece according to the second set of coordinate values; The processor obtains the preset specifications of the second workpiece according to the lengths of the connections between each data point of the preset point cloud model and the lengths of the connections between each data point of the point cloud model of the first workpiece.
[0009] Preferably, the step in which the processor generates the three-dimensional model of the second workpiece according to the preset specifications of the second workpiece includes: The processor generates a point cloud model of the second workpiece according to the preset specifications of the second workpiece; The processor inputs the point cloud model of the second workpiece into a trained convolutional network model to obtain the three-dimensional model of the second workpiece; The training process of the convolutional network model is as follows: Obtain a model sample set of the second workpiece; wherein, the model sample set of the second workpiece includes: a point cloud model sample of the second workpiece and a three-dimensional model sample of the second workpiece; Input the model sample set of the second workpiece into the original convolutional network model for training to obtain the convolutional network model.
[0010] Preferably, the method further includes: If the simulation machining result indicates that the tool damage rate of the numerical control machine tool is less than the preset damage rate threshold, the processor determines the first original machining path as the first machining path.
[0011] Preferably, the method further includes: The processor obtains the detection result of the optical measuring instrument for detecting the mating surface of the first workpiece and the second workpiece.
[0012] The workpiece machining method provided by this application brings the following beneficial effects: This application provides a workpiece machining method. In this method, the processor scans the first workpiece obtained by machining the first blank part by the numerical control machine tool according to the first machining path to obtain the point cloud model of the first workpiece. The error analysis of the point cloud model of the first workpiece is carried out through the preset point cloud model to obtain the preset specifications of the second workpiece. The second machining path corresponding to the three-dimensional model of the second workpiece is generated according to the preset specifications of the second workpiece, and the numerical control machine tool is controlled to machine the second blank part according to the second machining path to obtain the second workpiece. Among them, the preset point cloud model has strong adaptability. For different machining and assembly scenarios, the preset point cloud model can provide accurate error analysis and machining specification determination. This method can accurately identify the error of the first workpiece and plan the machining path of the second workpiece, that is, the second machining path, to ensure that the subsequent machined second workpiece can accurately fit the first workpiece, thereby achieving the accuracy of the assembly of the first workpiece and the second workpiece.
[0013] In a second aspect, this application also provides a workpiece machining device, where the first workpiece and the second workpiece are assembled together; the device includes: An acquisition module, configured to acquire the three-dimensional model of the first workpiece; A control module, configured to generate the first machining path corresponding to the three-dimensional model of the first workpiece; The control module is further configured to scan the first workpiece obtained by machining the first blank part by the numerical control machine tool according to the first machining path to obtain the point cloud model of the first workpiece; carry out error analysis on the point cloud model of the first workpiece through the preset point cloud model to obtain the preset specifications of the second workpiece; generate the three-dimensional model of the second workpiece according to the preset specifications of the second workpiece; generate the second machining path corresponding to the three-dimensional model of the second workpiece; control the numerical control machine tool to machine the second blank part according to the second machining path to obtain the second workpiece.
[0014] The workpiece processing device provided by the embodiments of the present application has the same technical features as the workpiece processing method provided by the above embodiments, so it can also solve the same technical problems and achieve the same technical effects.
[0015] In a third aspect, the present application provides a computing device, including a memory and a processor; wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device is caused to execute the method as described in any one of the first aspect.
[0016] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program for executing the method as described in any one of the first aspect.
[0017] In a fifth aspect, the present application provides a computer program product including one or more computer instructions, and when the computer instructions are executed by a computer, the computer executes the method as described in any one of the first aspect.
[0018] Other features and advantages of the present application will be described in the subsequent description, and some of them will become obvious from the description, or be understood by implementing the present application. The objectives and other advantages of the present application are achieved and obtained by the structures specifically pointed out in the description and the drawings.
[0019] To make the above objectives, features, and advantages of the present application more obvious and understandable, the following specific preferred embodiments are given, and in conjunction with the accompanying drawings, the detailed description is as follows. Description of the Drawings
[0020] To more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the following drawings are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0021] Figure 1 It is a schematic flowchart of a workpiece processing method provided by an embodiment of the present application; Figure 2 It is a schematic structural diagram of a workpiece processing device provided by an embodiment of the present application; Figure 3 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed Embodiments
[0022] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are some, but not all, of the embodiments of this application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts fall within the scope of protection of this application.
[0023] To facilitate the understanding of this embodiment, the embodiments of this application will be introduced in detail below.
[0024] The embodiments of this application provide a workpiece processing method, in which a first workpiece and a second workpiece are installed in a matching manner; as Figure 1 shown, Figure 1 is a schematic flowchart of a workpiece processing method provided by the embodiments of this application. The method includes the following steps: S101, the processor acquires the three-dimensional model of the first workpiece.
[0025] Specifically, the above-mentioned processor uses three-dimensional modeling software to model the first workpiece. In order to ensure the stability and functional integrity of the assembly formed by the first workpiece processed subsequently and the second workpiece to be processed, appropriate constraint relationships, the gaps between parts (the first workpiece and the second workpiece), connection methods, and possible movement or deformation situations need to be considered, so as to solve potential problems at an early stage in the design phase. Finally, the three-dimensional model of the complete first workpiece is output as a file in STL (Stereo Lithography) format for subsequent analysis, manufacturing, or printing of the first workpiece.
[0026] S102, the processor generates a first processing path corresponding to the three-dimensional model of the first workpiece.
[0027] Specifically, the above-mentioned processor uses the file import function of the software to import the three-dimensional model of the first workpiece into the numerical control machining programming software, processes information such as the shape, size, material, and processing requirements of the imported three-dimensional model, and then determines a suitable processing strategy and tool path planning scheme, that is, the first processing path.
[0028] With such a setting, it is convenient for the subsequent numerical control machine tool to process the first workpiece according to the first processing path, improving the accuracy of the first workpiece and the processing efficiency of the numerical control machine tool.
[0029] S103, the processor scans the first workpiece obtained by processing the first blank by the numerical control machine tool according to the first processing path to obtain the point cloud model of the first workpiece.
[0030] Specifically, after the CNC machine tool processes the first blank workpiece according to the first machining path to obtain the first workpiece, the above-mentioned processor starts the contour measurement program in the CNC machine tool, and scans each surface of the first workpiece along the preset scanning path through the sensor at the head of the CNC machine tool. After the scanning is completed, the CNC machine tool converts the shape information of each surface of the first workpiece into point cloud data, and saves the point cloud data in a preset file format for subsequent processing and analysis to obtain the point cloud model of the first workpiece. It can be seen from this that the point cloud data in the point cloud model of the first workpiece contains the geometric information of the first workpiece.
[0031] S104. The processor performs error analysis on the point cloud model of the first workpiece through the preset point cloud model to obtain the preset specifications of the second workpiece.
[0032] Specifically, the above-mentioned preset point cloud model is the point cloud model of the assembly after the first workpiece and the second workpiece that meet the preset standard specifications are assembled and installed. The above-mentioned processor takes the preset point cloud model as the standard and analyzes the errors existing in the first workpiece, so as to confirm the processing specifications required for the second workpiece (the preset specifications of the second workpiece) that are assembled and installed with the first workpiece.
[0033] With such a setting, the processor takes the preset point cloud model as the standard and compares the point cloud data of the first workpiece, so as to accurately identify the errors existing in the first workpiece. Through the high-precision point cloud data registration technology, the accuracy of error analysis can be ensured, providing a reliable basis for the subsequent processing of the second workpiece.
[0034] S105. The processor generates a three-dimensional model of the second workpiece according to the preset specifications of the second workpiece.
[0035] Specifically, the above-mentioned preset specifications of the second workpiece are the results obtained by the processor after performing error analysis on the first workpiece and meet the standards of the assembly. It can be seen from this that the three-dimensional model of the second workpiece meets the standards of the assembly.
[0036] S106. The processor generates a second machining path corresponding to the three-dimensional model of the second workpiece.
[0037] Specifically, since the three-dimensional model of the second workpiece meets the standards of the assembly, the second machining path planned according to the three-dimensional model of the second workpiece has high precision, so as to improve the accuracy of the second workpiece obtained by subsequent machining according to the second machining path.
[0038] S107. The processor controls the CNC machine tool to process the second blank workpiece according to the second machining path to obtain the second workpiece.
[0039] Specifically, the second workpiece obtained by machining the second blank according to the second machining path can compensate for the errors of the first workpiece, and can be appropriately assembled with the first workpiece, thereby ensuring the accuracy of the assembled part after installation.
[0040] An embodiment of the present application provides a workpiece machining method. In this method, the processor scans the first workpiece obtained by machining the first blank according to the first machining path to obtain a point cloud model of the first workpiece. The error analysis of the point cloud model of the first workpiece is performed through a preset point cloud model to obtain the preset specifications of the second workpiece. The second machining path corresponding to the three-dimensional model of the second workpiece is generated according to the preset specifications of the second workpiece, and the numerical control machine tool is controlled to machine the second blank according to the second machining path to obtain the second workpiece. Among them, the preset point cloud model has strong adaptability. For different machining and assembly scenarios, the preset point cloud model can provide accurate error analysis and machining specification determination. This method can accurately identify the errors of the first workpiece and plan the machining path of the second workpiece, that is, the second machining path, to ensure that the subsequently machined second workpiece can accurately fit the first workpiece, thereby achieving the accuracy of the assembled part formed by the first workpiece and the second workpiece. In the prior art, the second workpiece is machined based on the measurement results of manually measuring the errors of the first workpiece, thereby completing the error compensation of the second workpiece for the first workpiece. Compared with the prior art, this method avoids the problem that the deviation occurs during the manual measurement of the first workpiece, which affects the accuracy of the assembled part, improves the accuracy of the accuracy measurement of the first workpiece, and further improves the accuracy of the subsequently machined second workpiece. In addition, this method improves the efficiency of manually measuring the accuracy of the first workpiece and saves the time for measuring the accuracy of the first workpiece.
[0041] The following introduces the method for the processor to generate the first machining path corresponding to the three-dimensional model of the first workpiece. The processor analyzes the three-dimensional model of the first workpiece to generate a first original machining path; the three-dimensional model of the first blank is simulatedly machined according to the first original machining path to obtain a simulated machining result; if the simulated machining result indicates that the tool damage rate of the numerical control machine tool is greater than or equal to the preset damage rate threshold, the first original machining path is modified to obtain the first machining path. If the simulated machining result indicates that the tool damage rate of the numerical control machine tool is less than the preset damage rate threshold, the first original machining path is determined as the first machining path.
[0042] Specifically, the first original machining path obtained by the above processor does not consider the collision interference between the tool, fixture and the first workpiece of the numerically controlled machine tool. Therefore, it is necessary to simulate the machining of the three-dimensional model of the first blank according to the first original machining path to comprehensively consider the collision situation between the tool, fixture and the first workpiece of the numerically controlled machine tool in the actual machining scenario. After the simulation machining, the processor can accurately determine the tool damage rate of the numerically controlled machine tool. If the tool damage rate of the numerically controlled machine tool is greater than or equal to the preset damage rate threshold, it indicates that the first original machining path does not meet the machining standard of the first workpiece. At this time, it is necessary to optimize (modify) the first original machining path to meet the machining standard of the first workpiece. If the tool damage rate of the numerically controlled machine tool is less than the preset damage rate threshold, it indicates that the first original machining path meets the machining standard of the first workpiece. At this time, the first original machining path can be determined as the actual machining path, that is, the first machining path.
[0043] In this method, through the simulation machining, the processor can intuitively judge the matching degree between the first original machining path and the three-dimensional model of the first workpiece, so as to check whether the generated first original machining path is accurate and error-free, and can avoid material waste and cost loss caused by the deviation of the first original machining path. The staff can observe the machining effect of the first workpiece through the simulation machining, so as to optimize the first original machining path.
[0044] Next, the method by which the processor analyzes the error of the point cloud model of the first workpiece through the preset point cloud model to obtain the preset specifications of the second workpiece will be introduced. The processor analyzes the preset point cloud model to obtain the first coordinate value set. Among them, the first coordinate value set includes the coordinate values of each data point of the preset point cloud model. The point cloud model of the first workpiece is analyzed to obtain the second coordinate value set. Among them, the second coordinate value set includes the coordinate values of each data point of the point cloud model of the first workpiece. The lengths of the connections between each data point of the preset point cloud model are obtained according to the first coordinate value set. The lengths of the connections between each data point of the point cloud model of the first workpiece are obtained according to the second coordinate value set. The preset specifications of the second workpiece are obtained according to the lengths of the connections between each data point of the preset point cloud model and the lengths of the connections between each data point of the point cloud model of the first workpiece.
[0045] Specifically, each data point of the above preset point cloud model and each data point of the point cloud model of the first workpiece are in one-to-one correspondence. Therefore, the coordinate values of each data point of the preset point cloud model and the coordinate values of each data point of the point cloud model of the first workpiece can be used to evaluate the geometric differences between the first workpiece and the preset model, and the differences include dimensional deviation and shape distortion. The processor analyzes the differences to obtain the preset specifications of the second workpiece.
[0046] The following is an example to introduce the process by which the processor obtains the preset specifications of the second workpiece based on the lengths of the connections between each data point of the preset point cloud model and the lengths of the connections between each data point of the point cloud model of the first workpiece.
[0047] The first side length formed by the connection line between the first data point and the second data point of the point cloud model of the first workpiece is 38 mm, and the second side length formed by the connection line between the third data point and the fourth data point of the point cloud model of the first workpiece is 42 mm. The first side length formed by the connection line between the first data point and the second data point of the preset point cloud model is 40 mm, and the first side length formed by the connection line between the third data point and the fourth data point of the preset point cloud model is 40 mm. The shapes of both the first workpiece and the preset point cloud model are cuboids, and the other side lengths of the first workpiece are the same as those of the preset point cloud model.
[0048] It can be seen from this that there are errors in the first side length and the second side length of the point cloud model of the first workpiece. Therefore, it is necessary to compare the first side length of the point cloud model of the first workpiece with the first side length of the preset point cloud model to obtain the first error value, which is 2 mm; compare the second side length of the point cloud model of the first workpiece with the second side length of the preset point cloud model to obtain the second error value, which is 2 mm.
[0049] As can be seen from the above, the first side length of the second workpiece is increased by the first error value of 2 mm, and the second side length of the second workpiece is decreased by the second error value of 2 mm. The other side lengths are the same as those of the preset point cloud model. That is, the preset specifications of the second workpiece are that the first side length of the second workpiece is 42 mm, the second side length of the second workpiece is 38 mm, and the other side lengths are the same as those of the preset point cloud model.
[0050] This method can comprehensively compare the side lengths formed by the connections between each data point of the point cloud model of the first workpiece with the preset point cloud model, accurately evaluate the overall shape deviation of the first workpiece, and thus obtain a more comprehensive error analysis result to support subsequent processing to compensate for the errors of the first workpiece with the second workpiece, so that the assembly formed by the first workpiece and the second workpiece when assembled meets the standards.
[0051] The following is an introduction to the method by which the processor generates the three-dimensional model of the second workpiece according to the preset specifications of the second workpiece. The processor generates the point cloud model of the second workpiece according to the preset specifications of the second workpiece; inputs the point cloud model of the second workpiece into the trained convolutional network model to obtain the three-dimensional model of the second workpiece; the training process of the convolutional network model is as follows: obtain the model sample set of the second workpiece; among them, the model sample set of the second workpiece includes: the point cloud model sample of the second workpiece and the three-dimensional model sample of the second workpiece; input the model sample set of the second workpiece into the original convolutional network model for training to obtain the convolutional network model.
[0052] Specifically, the above-mentioned processor filters, registers, and reconstructs the point cloud data of the point cloud model of the second workpiece based on the feature recognition algorithm of the convolutional network model to generate a three-dimensional model of the second workpiece. In addition, it is necessary to import the three-dimensional model of the second workpiece into the SurfMill software in the form of an STL file, set the machining parameters, select the cutting tool, and optimize the machining path to obtain the second machining path.
[0053] In this method, the convolutional network model can automatically extract the features of the second workpiece from the point cloud data of the point cloud model of the second workpiece, and perform filtering according to the features of the second workpiece, without manually setting complex filtering parameters. This method uses the deep learning of the convolutional network model to identify and retain the key features of the point cloud model of the second workpiece, while removing noise and outliers, improving the accuracy of the three-dimensional model of the second workpiece.
[0054] In one implementation, the processor obtains the detection results of the optical measuring instrument for detecting the mating surface of the first workpiece and the second workpiece.
[0055] Specifically, the above-mentioned optical measuring instrument includes at least one of the following: an optical projector and an optical image measuring instrument. After the second workpiece is processed, it is necessary to assemble the second workpiece and the first workpiece into an assembly, and ensure that the mating surfaces of the second workpiece and the first workpiece are in full contact and in the correct position. Attention should be paid to alignment and positioning during the assembly process to ensure the mating accuracy between the second workpiece and the first workpiece. The process of the above-mentioned optical measuring instrument detecting the mating surface of the first workpiece and the second workpiece is as follows: (1) Align the optical measuring instrument with the mating surface of the assembly to obtain the image or numerical data of the mating surface.
[0056] (2) The processor analyzes the gap situation between the mating surfaces of the assembly according to the image or numerical data of the mating surface to obtain an analysis result; wherein, the gap situation between the mating surfaces includes the width, depth, and shape of the gap.
[0057] (3) The processor compares the analysis result with the design requirements to obtain a comparison result.
[0058] (4) If the comparison result indicates that the gap situation between the mating surfaces is within the design requirements, the processor detects the mating accuracy of the assembly according to the gap situation between the mating surfaces to obtain a detection result.
[0059] (5) If the comparison result indicates that the gap situation between the mating surfaces exceeds the design requirements, the processor determines that the assembly fails and controls the numerical control machine tool to reprocess to obtain the first workpiece and the second workpiece.
[0060] (6) If the detection result indicates that the mating accuracy of the assembly meets the preset requirements, the processor determines that the assembly is successfully assembled.
[0061] (7) If the mating accuracy of the assembly does not meet the preset requirements, the processor determines that the assembly fails to be assembled and controls the numerical control machine tool to reprocess to obtain the first workpiece and the second workpiece.
[0062] In this method, the optical measuring instrument can provide a measurement accuracy of micron or sub-micron level to ensure the precise detection of the mating surfaces of the assembly formed by the first workpiece and the second workpiece installed in combination, meeting the strict requirements of precision engineering for measurement accuracy.
[0063] Based on the above embodiments of the workpiece processing method, an embodiment of the present application further provides a workpiece processing device, where the first workpiece and the second workpiece are installed in combination. Figure 2 It is a schematic structural diagram of a workpiece processing device provided by an embodiment of the present application. The device includes: an acquisition module 21 and a control module 22. Among them, the functions of each module are as follows: The acquisition module 21 is used to acquire the three-dimensional model of the first workpiece. The control module 22 is used to generate a first processing path corresponding to the three-dimensional model of the first workpiece. The control module 22 is further used to scan the first workpiece obtained by processing the first blank by the numerical control machine tool according to the first processing path to obtain a point cloud model of the first workpiece; perform error analysis on the point cloud model of the first workpiece through a preset point cloud model to obtain the preset specifications of the second workpiece; generate a three-dimensional model of the second workpiece according to the preset specifications of the second workpiece; generate a second processing path corresponding to the three-dimensional model of the second workpiece; control the numerical control machine tool to process the second blank according to the second processing path to obtain the second workpiece.
[0064] Preferably, the control module 22 is specifically used to analyze the three-dimensional model of the first workpiece to generate a first original processing path; perform simulation processing on the three-dimensional model of the blank according to the first original processing path to obtain a simulation processing result; if the simulation processing result indicates that the tool damage rate of the numerical control machine tool is greater than or equal to a preset damage rate threshold, the processor modifies the first original processing path to obtain the first processing path.
[0065] Preferably, the control module 22 is specifically configured to parse the preset point cloud model to obtain a first set of coordinate values, where the first set of coordinate values includes the coordinate values of each data point of the preset point cloud model; parse the point cloud model of the first workpiece to obtain a second set of coordinate values, where the second set of coordinate values includes the coordinate values of each data point of the point cloud model of the first workpiece; obtain the lengths of the connections between each data point of the preset point cloud model according to the first set of coordinate values; obtain the lengths of the connections between each data point of the point cloud model of the first workpiece according to the second set of coordinate values; and obtain the preset specifications of the second workpiece according to the lengths of the connections between each data point of the preset point cloud model and the lengths of the connections between each data point of the point cloud model of the first workpiece.
[0066] Preferably, the control module 22 is specifically configured to generate a point cloud model of the second workpiece according to the preset specifications of the second workpiece; input the point cloud model of the second workpiece into the trained convolutional network model to obtain a three-dimensional model of the second workpiece; the training process of the convolutional network model is as follows: obtain a model sample set of the second workpiece, where the model sample set of the second workpiece includes: a point cloud model sample of the second workpiece and a three-dimensional model sample of the second workpiece; input the model sample set of the second workpiece into the original convolutional network model for training to obtain the convolutional network model.
[0067] Preferably, if the tool damage rate of the numerical control machine tool characterized by the simulation machining result is less than the preset damage rate threshold, the control module 22 is further configured to determine the first original machining path as the first machining path.
[0068] Preferably, the acquisition module 21 is further configured to acquire the detection result of the optical measuring instrument for detecting the mating surface of the first workpiece and the second workpiece.
[0069] The workpiece processing device provided by the embodiment of the present application has the same technical features as the workpiece processing method provided by the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0070] The embodiment of the present application further provides a computing device. As Figure 3 shown, this figure is a schematic diagram of a computing device provided by the embodiment of the present application. The computing device 400 includes a bus 401, a processor 402, a communication interface 403, and a memory 404. The processor 402, the memory 404, and the communication interface 403 communicate with each other through the bus 401.
[0071] The bus 401 can be a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 3 only a thick line is used to represent it in Figure 3 , but it does not mean that there is only one bus or one type of bus.
[0072] The processor 402 can be any one or more of processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0073] The communication interface 403 is used for external communication. The memory 404 can include volatile memory, such as random access memory (RAM). The memory 404 can also include non-volatile memory, such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0074] Executable code is stored in the memory 404, and the processor 402 executes the executable code to perform the foregoing method.
[0075] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center including one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state drive), etc. The computer-readable storage medium includes instructions that instruct the computing device to execute the above workpiece processing method.
[0076] The embodiment of the present application also provides a computer program product, and the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the processes or functions according to the embodiments of the present application are fully or partially generated.
[0077] The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, or data center to another website, computer, or data center by wired means (such as coaxial cable, optical fiber) or wireless means (such as infrared, wireless, microwave, etc.).
[0078] When the computer program product is executed by a computer, the computer executes any one of the foregoing workpiece processing methods. The computer program product can be a software installation package. In the case where any one of the foregoing workpiece processing methods needs to be used, the computer program product can be downloaded and executed on the computer.
[0079] The descriptions of the processes or structures corresponding to the above respective drawings have their own focuses. For parts not detailed in a certain process or structure, reference can be made to the relevant descriptions of other processes or structures.
[0080] As described above, the above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered by the protection scope of the present application.
Claims
1. A workpiece processing method, characterized in that: The first workpiece and the second workpiece are installed together; the method includes: The processor obtains a three-dimensional model of the first workpiece; The processor generates a first processing path corresponding to the three-dimensional model of the first workpiece; The processor scans the first workpiece obtained by machining the first blank by the CNC machine tool according to the first machining path to obtain a point cloud model of the first workpiece; The processor performs error analysis on the point cloud model of the first workpiece by using a preset point cloud model to obtain preset specifications of the second workpiece; The processor generates a three-dimensional model of the second workpiece according to preset specifications of the second workpiece; The processor generates a second processing path corresponding to the three-dimensional model of the second workpiece; The processor controls the CNC machine tool to process the second blank according to the second processing path to obtain the second workpiece.
2. The workpiece processing method according to claim 1, characterized in that: The step of the processor generating a first processing path corresponding to the three-dimensional model of the first workpiece includes: The processor analyzes the three-dimensional model of the first workpiece to generate a first original processing path; The processor simulates processing of the three-dimensional model of the blank according to the first original processing path to obtain a simulated processing result; If the simulation processing result indicates that the tool damage rate of the CNC machine tool is greater than or equal to a preset damage rate threshold, the processor modifies the first original processing path to obtain the first processing path.
3. The workpiece processing method according to claim 1, characterized in that: The processor performs error analysis on the point cloud model of the first workpiece by using a preset point cloud model to obtain preset specifications of the second workpiece, including: The processor parses the preset point cloud model to obtain a first coordinate value set; wherein the first coordinate value set includes the coordinate value of each data point of the preset point cloud model; The processor parses the point cloud model of the first workpiece to obtain a second coordinate value set; wherein the second coordinate value set includes the coordinate value of each data point of the point cloud model of the first workpiece; The processor obtains the length of the line between each data point of the preset point cloud model according to the first coordinate value set; The processor obtains the length of a line between each data point of the point cloud model of the first workpiece according to the second coordinate value set; The processor obtains the preset specification of the second workpiece according to the length of the connection line between each data point of the preset point cloud model and the length of the connection line between each data point of the point cloud model of the first workpiece.
4. The workpiece processing method according to claim 1, characterized in that: The step of the processor generating a three-dimensional model of the second workpiece according to the preset specifications of the second workpiece includes: The processor generates a point cloud model of the second workpiece according to preset specifications of the second workpiece; The processor inputs the point cloud model of the second workpiece into the trained convolutional network model to obtain a three-dimensional model of the second workpiece; The training process of the convolutional network model is as follows: Acquire a model sample set of the second workpiece; wherein the model sample set of the second workpiece includes: a point cloud model sample of the second workpiece and a three-dimensional model sample of the second workpiece; The model sample set of the second workpiece is input into the original convolutional network model for training to obtain the convolutional network model.
5. The workpiece processing method according to claim 2, characterized in that: The method further comprises: If the simulation processing result indicates that the tool damage rate of the CNC machine tool is less than the preset damage rate threshold, the processor determines that the first original processing path is the first processing path.
6. The workpiece processing method according to claim 1, characterized in that: The method further comprises: The processor obtains a detection result of the optical measuring instrument detecting the matching surfaces of the first workpiece and the second workpiece.
7. A workpiece processing device, characterized in that: The first workpiece and the second workpiece are installed together; the device comprises: An acquisition module, used for acquiring a three-dimensional model of the first workpiece; A control module, configured to generate a first processing path corresponding to the three-dimensional model of the first workpiece; The control module is also used to scan the first workpiece obtained by the CNC machine tool processing the first blank according to the first processing path to obtain a point cloud model of the first workpiece; perform error analysis on the point cloud model of the first workpiece through a preset point cloud model to obtain preset specifications of the second workpiece; generate a three-dimensional model of the second workpiece according to the preset specifications of the second workpiece; generate a second processing path corresponding to the three-dimensional model of the second workpiece; and control the CNC machine tool to process the second blank according to the second processing path to obtain the second workpiece.
8. A computing device, characterized in that including memory and processor; One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The computer program product comprises one or more computer instructions. When the computer instructions are executed by a computer, the computer performs the method according to any one of claims 1 to 6.