Laser processing file generation method, processing equipment, system and storage medium

By obtaining and processing the perspective information and modes of the target processing model, suitable laser processing files are generated, which solves the material deformation problem caused by the suspended structure in relief processing, improves processing quality and flexibility, and meets user needs.

CN119272362APending Publication Date: 2025-01-07SHENZHEN MAKER WORKS TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411245939.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

During relief processing, the existing laser processing technology has high requirements for processing materials, which leads to the hanging structure easily deforming or breaking of materials, affecting the processing quality, and it is difficult to generate suitable processing files according to user needs.

Method used

By obtaining the model file of the target processing model, determining its perspective information, and generating processing bitmaps based on the perspective information, and generating laser processing files based on different processing modes, controlling the processing equipment to reduce the requirements for processing materials and avoiding the emergence of suspended structures.

Benefits of technology

Improve processing quality and flexibility, meet different user needs, reduce the requirements for processing materials, avoid processing errors caused by inappropriate perspectives, and optimize customer experience and processing effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119272362A_ABST
    Figure CN119272362A_ABST
Patent Text Reader

Abstract

The invention discloses a generation method of a laser processing file, processing equipment, a system and a storage medium, and relates to the technical field of computers, the generation method of the laser processing file comprises the following steps: obtaining a model file of a target processing model, and displaying a preview of the target processing model on an editing interface; determining visual angle information of the target processing model; generating a processing bitmap according to the determined visual angle information of the target processing model; and determining a processing mode of the target processing model, and generating a laser processing file according to the processing bitmap and the processing mode. The machining effect can be optimized, and the problem that machining is not ideal is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method for generating a laser processing file, a processing device, a system and a storage medium. Background Art

[0002] At present, the existing laser processing technology can only generate processing files and control processing according to the processing materials such as the provided specific model files. However, for some processing techniques that have high requirements for processing materials, when the provided processing materials are not suitable, the processed models are difficult to achieve satisfactory results for users. Take relief processing as an example. Because relief processing is a subtractive processing that removes materials, it has high requirements for processing materials. If the processing material has a suspended structure in the default processing angle, it is easy to cause the processing material to deform and break, affecting the processing quality.

[0003] Therefore, how to generate corresponding processing files to control processing and optimize processing effects while reducing the requirements for processing materials has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The main purpose of this application is to provide a method for generating laser processing files, processing equipment, system and storage medium, aiming to reduce the requirements for processing materials and solve the problem of unsatisfactory processing effects.

[0005] To achieve the above object, the present application provides a method for generating a laser processing file, comprising the following steps:

[0006] Obtaining a model file of a target processing model, and displaying a preview image of the target processing model on an editing interface;

[0007] Determining viewing angle information of the target processing model;

[0008] Generating a processing bitmap according to the determined viewing angle information of the target processing model;

[0009] A processing mode of the target processing model is determined, and a laser processing file is generated according to the processing bitmap and the processing mode.

[0010] In one embodiment, before executing the step of determining the viewing angle information of the target processing model, the method for generating the laser processing file further includes the following steps:

[0011] Acquiring processing parameter setting information, and extracting actual processing features of a target processing model according to the processing parameter setting information;

[0012] Extracting model features of the target processing model, and comparing the actual processing features with the model features;

[0013] When the actual processing features do not match the model features, a modification prompt message is displayed in the editing interface;

[0014] When the actual processing feature matches the model feature, the step of determining the viewing angle information of the target processing model is performed.

[0015] In one embodiment, the step of comparing the actual processing feature with the model feature; and displaying modification prompt information on the editing interface when the actual processing feature does not match the model feature comprises:

[0016] Performing machining feature detection on the actual machining feature, and comparing the actual machining feature with the model feature, wherein the model feature includes that the area of ​​the model region of the next machining layer is not less than the area of ​​the model region of the previous machining layer, and the contour of the model region of the next machining layer at least includes the contour of the model region of the previous machining layer;

[0017] When the actual processing feature does not meet the requirement that the model area of ​​the next processing layer is not less than the model area of ​​the previous processing layer, and / or the model area contour of the next processing layer at least includes the model area contour of the previous processing layer, it is determined that the actual processing feature does not match the model feature, and a modification prompt message is displayed on the editing interface.

[0018] In one embodiment, the processing parameter setting information includes at least one of viewing angle information, processing path, processing angle, and processing power; and / or the modification prompt information includes at least one of viewing angle modification information and processing angle modification information.

[0019] In one embodiment, the step of determining the processing mode of the target processing model and generating a laser processing file according to the processing bitmap and the processing mode comprises:

[0020] Obtaining a mode setting instruction of a target processing model;

[0021] When the processing mode is determined to be the first processing mode according to the mode setting instruction, the target processing model is rendered in layers according to the viewing angle information, so as to display a processing bitmap having multiple processing layers on an editing interface;

[0022] Identify the image features of each processing layer of the processing bitmap and generate laser processing files.

[0023] In one embodiment, the image feature includes a grayscale value, and the step of identifying the image features of each processing layer of the processing bitmap and generating a laser processing file includes:

[0024] Identify the grayscale value of each processing layer of the processing bitmap, determine the processing sequence and processing parameters of multiple processing layers, and generate a laser processing file.

[0025] In one embodiment, the processing parameters include a processing path and a processing angle, and the step of identifying the grayscale value of each processing layer of the processing bitmap and determining the processing order and processing parameters of the multiple processing layers includes:

[0026] Identify the grayscale value of each processing layer of the processing bitmap and determine the processing order of multiple processing layers;

[0027] Identify the gray value of each pixel of the processing bitmap, determine all pixels whose gray value is not greater than a preset image feature range as processing pixels, and determine the processing path according to the processing pixels;

[0028] The processing angles of the multiple processing layers are determined according to the processing sequence and processing path of the multiple processing layers, so that the difference between the processing angle at which the previous processing layer ends processing and the processing angle at which the next processing layer starts processing in adjacent processing layers is not less than a preset difference range.

[0029] In one embodiment, the step of rendering the target processing model in layers according to the viewing angle information to display a processing bitmap having multiple processing layers in an editing interface includes:

[0030] Layering the target processing model according to the viewing angle information to display grayscale images with different grayscale values ​​on an editing interface;

[0031] A slicing setting instruction is obtained, and the processing layer is rendered in layers according to the obtained slicing setting instruction and the generated grayscale image with different grayscale values, so as to display a processing bitmap with multiple processing layers on an editing interface.

[0032] In one embodiment, the step of determining the processing mode of the target processing model and generating a laser processing file according to the processing bitmap and the processing mode comprises:

[0033] Obtaining a mode setting instruction of a target processing model;

[0034] When the processing mode is determined to be the second processing mode according to the mode setting instruction, processing parameters are determined according to the grayscale value of the identified processing bitmap, and a laser processing file is generated; the processing parameters include a processing path and a processing depth.

[0035] In one embodiment, before executing the step of determining the processing mode of the target processing model and generating a laser processing file according to the processing bitmap and the processing mode, the step further includes:

[0036] A machining bitmap selection instruction is obtained, and a machining bitmap corresponding to the target machining model is determined according to the machining bitmap selection instruction.

[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a processing device, which includes:

[0038] Slide rails;

[0039] a processing head, the processing head being slidably disposed on the slide rail;

[0040] A communication component, the communication component is used to receive a processing file obtained according to the method for generating a laser processing file as described above;

[0041] A controller controls the processing head to move on a slide rail to process the surface of a processing material based on the processing file.

[0042] In addition, to achieve the above objectives, the present application also provides a system, including:

[0043] A processing device, the processing device comprising a processing device bottom plate and a processing head, the processing device bottom plate is used to place processing materials, and the processing head is used to move on the processing device bottom plate; and

[0044] A terminal device that communicates with the processing device, and the terminal device is used to execute the method for generating the laser processing file as described above.

[0045] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a laser processing file generation program is stored. When the laser processing file generation program is executed by a processor, the steps of the laser processing file generation method as described above are implemented.

[0046] The embodiment of the present application adopts the method of obtaining a model file of a target processing model, and displays a preview of the target processing model in an editing interface to show the model features, so as to facilitate setting the viewing angle information of the target processing model. The processing viewing angle is adjustable, and is used to avoid model features that are difficult to process by setting appropriate viewing angle information, so as to avoid the situation where the relief processing can only be carried out according to the processing viewing angle of a suspended structure, thereby affecting the processing quality; a processing bitmap is generated according to the determined viewing angle information of the target processing model, so as to ensure that the model area of ​​the next processing layer is not less than the model area of ​​the previous processing layer during the relief processing, so as to meet the laser processing process requirements and improve the processing quality; a processing mode of the target processing model is determined, and a laser processing file is generated according to the processing bitmap and the processing mode. The operation of the laser processing equipment is controlled by the generated laser processing file, so as to be able to Make processing more flexible and reliable, avoid processing errors that affect processing effects when processing materials such as model files can only be processed according to specific viewing angles; the processing viewing angle is adjustable, which reduces the requirements for the model file of the target processing model while meeting processing and user needs, and avoids the need to provide different model files for different processing viewing angles or only being able to control processing according to the model file of the same fixed processing viewing angle, which affects the processing parameter setting when suitable model files and other processing materials cannot be provided. The appropriate processing viewing angle can reduce difficult-to-process model features such as suspended structures, so as to process the target processing model, optimize customer experience and improve customer satisfaction; by providing different processing modes, generating laser processing files according to the processing bitmap and the determined processing mode, and further controlling the processing, it can meet the different requirements of actual production and processing and expand the scope of application. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0048] Figure 1 A flowchart of an embodiment of a method for generating a laser processing file provided by the present application;

[0049] Figure 2 One of the flowcharts of an embodiment of step S400 of the method for generating a laser processing file provided by the present application;

[0050] Figure 3 This is a second flowchart of step S400 of an embodiment of the method for generating a laser processing file provided by the present application;

[0051] Figure 4 This is a flowchart of step S400 of an embodiment of the method for generating a laser processing file provided by the present application;

[0052] Figure 5 A flowchart of another embodiment of step S400 of the method for generating a laser processing file provided by the present application;

[0053] Figure 6 One of the specific flow charts of an embodiment of the method for generating a laser processing file provided in the present application before executing step S200;

[0054] Figure 7 This is a specific flow chart 2 of an embodiment of the method for generating a laser processing file provided by the present application before executing step S200;

[0055] Figure 8 This is a specific flow chart 3 of an embodiment of the method for generating a laser processing file provided in the present application before executing step S200;

[0056] Fig. 9 A preview image of a target processing model of an embodiment of the method for generating a laser processing file provided in the present application;

[0057] Fig.10 A grayscale image generated by an embodiment of the method for generating a laser processing file provided by the present application;

[0058] Fig.11 This is a layered effect diagram of an embodiment of the method for generating a laser processing file provided in the present application;

[0059] Fig.12 This is a layered rendering of another embodiment of the method for generating a laser processing file provided in the present application.

[0060] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0062] It should be noted that if all directional indications in the embodiments of the present application are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture, if the specific posture changes, the directional indication will also change accordingly.

[0063] If the description of "first", "second", etc. in this application is only used for descriptive purposes, it cannot be understood as indicating or suggesting its relative importance, or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. If the description of "A and / or B" is involved in this application, it means that it includes solution A or solution B, or includes solution A and solution B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0064] When laser performs relief processing on the processing material, a three-dimensional relief image can be formed on the processing material. However, laser relief processing is a subtractive manufacturing, and light propagates in a straight line. Therefore, along the direction of laser emission, the cross-sectional area of ​​the subtracted part of the processing material is required to gradually decrease or remain unchanged. That is, for the relief image body, along the direction of laser emission, the cross-sectional area (model area) of the relief image is required to gradually increase or remain unchanged, and between any two adjacent sections, the projection area of ​​the upper section is completely within the projection area of ​​the lower section. Based on this, if the processing angle of the model file provided by the user is not appropriate, it is difficult to produce a satisfactory effect on the processing material.

[0065] In order to solve the problem in the prior art that it is difficult to achieve the desired processing effect when the angle of the model file for processing is not suitable, refer to Figures 1 to 12 The present application provides a method for generating a laser processing file, a processing device, a system and a storage medium, which are used to process a model file to solve the problem of unsatisfactory processing effect. The storage medium is specifically a computer-readable storage medium, and the system includes a processing device, a terminal device communicating with the processing device, the processing device includes a processing device bottom plate and a processing head, the processing device bottom plate is used to place processing materials, and the processing head is used to move on the processing device bottom plate; the terminal device communicating with the processing device, the terminal device is used to execute the following method for generating a laser processing file.

[0066] The method for generating the laser processing file shown in the present application can preset one or more processing modes to provide the user with one or more other processing modes to achieve different processing requirements. Before generating the laser processing file to control the execution of the corresponding processing mode, it is optional to first obtain the uploaded processing material, or first determine the processing mode, that is, before generating the laser processing file for controlling the execution of the processing, it is allowed to first determine the processing material and then determine the processing mode, or first determine the processing mode and then determine the processing material.

[0067] The method for generating laser processing files provided in the present application can be applied to laser processing equipment such as engraving machines, or can be implemented by terminal equipment such as a host computer storing a program for generating laser processing files and other control devices. Processing materials such as model files can be obtained by at least one of the following or multiple other methods: setting a control device such as a processing device or a computer device to have a material library, which is used to obtain the model file of the target processing model selected by the user in the material library before generating the laser processing file; setting a control device such as a processing device or a computer device to have a communication terminal or other connection interface, which is used to obtain the model file of the target processing model uploaded by the user through the connection interface before generating the laser processing file; setting a control device such as a processing device or a computer device to be connected to a cloud database (or a material website), and providing the model file of the target processing model stored in the cloud database (or the material website) to the user for selection.

[0068] The model file shown can be presented in any form suitable for actual use, such as, but not limited to, a two-dimensional model (such as 2D images such as bitmaps and vector graphics), a three-dimensional model (3D stereoscopic model, such as 3D files in .stp, .stl and other formats), a picture, a photo, etc. of the target processing model.

[0069] Reference Figure 1 The method for generating a laser processing file provided in the present application comprises the following steps:

[0070] Step S100: acquiring a model file of a target processing model, and displaying a preview image of the target processing model on an editing interface.

[0071] Reference Fig. 9 , by displaying a preview of the target processing model in the editing interface to show the model features, it is convenient for users to set the viewing angle information of the target processing model according to the model features of the target processing model. The processing viewing angle is adjustable, which is used to avoid difficult-to-process model features by setting appropriate viewing angle information, and avoid the situation where relief processing can only be performed according to the processing viewing angle of the suspended structure, which affects the processing quality.

[0072] Step S200: Determine the viewing angle information of the target processing model.

[0073] The processing viewing angle is used to specify the emission direction of the laser during the processing process. The viewing angle information is mainly used to determine the processing viewing angle, which can be determined by specifying multiple directions such as the Z-axis direction, the Y-axis direction, the X-axis direction, or by specifying a front view, a side view, a top view or an axonometric view as the processing plane. The determined viewing angle information of the target processing model includes at least one of the viewing angle information of the target processing model determined according to the received viewing angle selection instruction, the viewing angle information of the target processing model determined according to the received viewing angle modification instruction, and the viewing angle information of the target processing model determined according to the preset processing viewing angle. The viewing angle information of the target processing model of the present application can be, but is not limited to, the viewing angle information determined according to the viewing angle selection instruction directly input by the user through the laser processing equipment, computer device, etc., the viewing angle information determined according to the viewing angle modification instruction input after the user modifies the viewing angle, and the viewing angle information determined according to the preset or default processing viewing angle of the laser processing equipment, computer device, etc. The perspective selection instruction may be, but is not limited to, a corresponding perspective selection instruction generated according to a perspective customized by a user after opening a model file of a target processing model; a corresponding perspective selection instruction generated according to a perspective option selected by a user from a plurality of preset reference perspective options after opening a model file of a target processing model; a corresponding perspective selection instruction generated according to a perspective customized by a user after opening a model file of a target processing model in a canvas or other editing interface, operation interface, or display interface; a corresponding perspective selection instruction generated according to perspective information such as perspective coordinates directly calibrated by a user in a model file of a target processing model. The perspective modification instruction may include perspective information input by a user received after generating a modification prompt message; and perspective information continued to be received after determining a processing mode. The preset processing viewing angle may be, but is not limited to, a preset or default processing viewing angle (such as Z-axis direction, Y-axis direction, X-axis direction, front view, side view, top view or axonometric view, etc.) of a processing device, a computer device or the like; one or more viewing angle options preset by a processing device, a computer device or the like; a default processing viewing angle (or one or more preset viewing angle options) preset by a processing device, a computer device or the like for model files of the same type of model files or model files of the same type of target processing models.

[0074] It is understandable that when the laser performs relief processing on the processing material, the model file is a 3D stereo model. When it is detected that the processing is performed at the current processing angle, if the model file cannot meet the condition that "between any two adjacent sections, the projection area of ​​the section located above is completely within the projection area of ​​the section located below" (that is, the model area area of ​​the next processing layer is not less than the model area area of ​​the previous processing layer and the model area contour of the next processing layer at least includes the model area contour of the previous processing layer), the user will be reminded to adjust the processing angle of the target model file until the user adjusts the processing angle of the model file to meet the above conditions, and the viewing angle information of the target processing model is determined. Step S300, generating a processing bitmap according to the determined viewing angle information of the target processing model.

[0075] Reference Fig.10 , Fig.11 , Fig.12 Specifically, when executing step S300, it can be used to convert a model file such as a 3D file into a processing bitmap suitable for laser processing equipment to perform relief processing according to the determined viewing angle information of the target processing model. It can be understood that the processing bitmap is a 2D image, and the processing bitmap is used to determine the two-dimensional cross-section of the model at a specific height or depth along the processing viewing angle, and the processing layer is determined by the two-dimensional cross-section. The processing bitmap can be used to define the model area and processing area on the processing layer. Among them, the model area corresponds to the area where the model to be processed is projected or split on the processing layer, and the model area is used to determine the final contour and detail features of the processed workpiece; the processing area of ​​the processing layer is determined by the model area, and the processing area is used to determine the part of the processing layer that needs to be machined to ensure that enough processing material can be removed and the contour and detail features of the model can be clearly formed. Specifically, the model data of the 3D file (such as 3D files in .stp, .stl and other formats) can be parsed by CAM (computer-aided manufacturing) software, and the three-dimensional target processing model can be disassembled into

[0076] The two-dimensional level of the series, this type of hierarchical algorithm can be specifically but not limited to contour extraction, processing path planning, the hierarchical algorithm is based on the image features of the target processing model, specifically, based on the geometric shape, height and other model data of the target processing model, the moving path of the laser and other processing equipment is calculated layer by layer, so as to finally generate a G-code laser processing file containing a 2D processing path diagram of each layer.

[0077] Specifically, the present application can also display the generated processing bitmap in the editing interface according to the determined viewing angle information of the target processing model, which can be convenient for users to view, so as to generate laser processing files and further control processing according to the determined viewing angle information of the target processing model. Such a setting can also help users to check the selected processing viewing angle through the generated processing bitmap to a certain extent, especially in the case of relief processing, to confirm the edge or detail of the relief, and ensure that there will be no processing failure due to the existence of a suspended structure. Generating a processing bitmap from the 3D file of the target processing model according to the set viewing angle information can make the processing more flexible and reliable, avoid processing errors that affect the processing effect when processing materials can only be processed according to a specific viewing angle, and reduce the requirements for processing materials, avoid the need to provide different model files for different processing viewing angles or control processing according to model files with the same fixed processing viewing angle, resulting in the influence of processing parameter settings when processing materials such as suitable model files cannot be provided, and the appropriate processing viewing angle can reduce difficult-to-process model features such as suspended structures, so as to process the target processing model, optimize customer experience and improve customer satisfaction.

[0078] Step S400: determine the processing mode of the target processing model, and generate a laser processing file according to the processing bitmap and the processing mode.

[0079] Optionally, the processing mode includes but is not limited to a plurality of processing modes such as a layered mode and a grayscale mode, and the plurality of processing modes are distinguished by "a first mode", "a second mode" and the like. The layered mode includes but is not limited to layering by using image features such as color scale to generate a processing bitmap with multiple processing layers and further generate a laser processing file; the grayscale mode is used to further generate a laser processing file by adjusting processing parameters such as processing power after identifying the image features of the processing bitmap. After determining the processing mode of the target processing model, the embodiment of the present application generates a laser processing file according to the processing bitmap and the processing mode, and controls the processing of the processing equipment by sending the laser processing file to the processing equipment, so that the processing equipment controls the movement and switching of the processing head according to the data of each pixel in the processing bitmap after receiving the laser processing file, so as to realize the processing of the processing material and process the target processing model.

[0080] In the present application, the laser processing file is generated, which can be but not limited to generating G code, T code, etc. Specifically, it is used to generate G-code (G code). G-code is a language used to program CNC machinery. It can guide the equipment to perform specific movements, such as moving to a specific position, cutting, drilling, etc.

[0081] In other embodiments of the present application, the model file of the target processing model may be a processing bitmap or any other form of processing material in addition to the 3D file of the target processing model. Specifically, when the model file obtained is a three-dimensional model such as a 3D file of the target processing model, the specific implementation method of the laser processing file generation method can be implemented through the aforementioned steps S100, S200, S300, and S400; when the model file of the target processing model obtained is a two-dimensional model such as a processing bitmap, only the aforementioned steps S100 and S400 may be executed, and the aforementioned steps S200 and S300 may not be executed; specifically, at least some of the aforementioned steps may be executed according to the type of the model file obtained, which is not limited here.

[0082] In addition, it should be noted that when executing step S400, determining the processing mode of the target processing model, and generating a laser processing file according to the processing bitmap and the processing mode, it can also be the step of determining the processing mode of the target processing model, and generating a laser processing file according to at least a portion of the processing bitmaps of the selected multiple processing layers and the processing mode, wherein at least a portion of the processing bitmaps of the selected multiple processing layers may be processing bitmaps corresponding to multiple consecutive processing layers selected starting from the first processing layer; the specific setting may be based on the actual setting and is not limited here.

[0083] In the present application, one or more processing modes may be provided for generating laser processing files and performing processing according to the processing bitmap and the determined processing mode. By providing different processing modes and generating laser processing files according to the determined processing modes, different requirements of actual production processing can be met, and the system is applicable to different laser processing equipment, thus expanding the scope of application.

[0084] The method for generating laser processing files shown in the present application is applied to terminal devices such as upper computers. In actual processing, the laser processing files are sent to laser equipment, and the processing equipment controls the execution of processing; or, in actual processing, the processing equipment storing the generation program of the corresponding laser processing files generates the laser processing files by itself, and controls the processing head to execute the processing. Terminal equipment and other devices pre-store multiple processing modes such as layered mode and grayscale mode. Specifically, it can be, but not limited to, obtaining the processing mode of the determined target processing model by providing mechanical buttons and / or non-mechanical buttons corresponding to multiple processing modes, providing connection terminals such as interfaces corresponding to multiple processing modes, providing signal transmission channels corresponding to multiple processing modes, providing different operation interfaces corresponding to multiple processing modes, providing operation options corresponding to multiple processing modes through the operation interface, providing different trigger methods corresponding to multiple processing modes, and providing different operation platforms corresponding to multiple control modes.

[0085] As an embodiment of the present application, in order to ensure the three-dimensional effect of processing and optimize the processing effect, the first processing mode is used to control the execution of processing. Specifically, after the model file such as the 3D file of the target processing model is sliced ​​into layers to obtain a processing bitmap with multiple processing layers, the corresponding laser processing file is generated according to the processing bitmap of the multiple processing layers as an example of the first processing mode. Figure 2 Step S400, determining the processing mode of the target processing model, and generating a laser processing file according to the processing bitmap and the processing mode include:

[0086] Step S410, obtaining a mode setting instruction of a target processing model;

[0087] Step S420: When the processing mode is determined to be the first processing mode according to the mode setting instruction, the target processing model is rendered in layers according to the viewing angle information to display a processing bitmap having multiple processing layers in the editing interface.

[0088] It can be understood that the determined viewing angle information of the target processing model is used to specify the processing angle. When controlling the execution of processing, the processing angle is set perpendicular to the processing layer. The processing angle is the emission direction of the laser during the processing. By parsing the 3D file and other model files of the target processing model, the model file of the target processing model is layered by the layering algorithm. During the layering process, the model will be divided into multiple processing layers in the form of being perpendicular to the processing surface according to the set viewing angle information and the set slicing rules. Specifically, each processing layer is a 2D file such as a processing bitmap for guiding the movement of processing equipment such as lasers on the plane of the corresponding processing layer. During relief processing, each processing layer includes a model area and a processing area. The model area corresponds to the area on which the model to be processed is projected or divided on the processing layer. The model area is used to determine the final contour and detail features of the processed workpiece; the processing area of ​​the processing layer is determined by the model area, and the processing area is used to determine the part of the processing layer that needs to be machined to ensure that enough processing materials can be removed and the contour and detail features of the model can be clearly formed. The determination of the processing area can also be further determined by processing parameters and processing strategies.

[0089] Step S430, identifying the image features of each processing layer of the processing bitmap and generating a laser processing file.

[0090] In some specific embodiments of the present application, the first processing mode is a 3D slicing mode, which is mainly used to layer the grayscale image using color levels, etc., to generate a G-code laser processing file according to the layered processing bitmap. When the processing mode is determined to be the first processing mode according to the mode setting instruction, the model file of the target processing model needs to be layered and rendered according to the set viewing angle information to generate a processing bitmap with multiple processing layers. Specifically, the image features of the model file of the target processing model can be determined according to the set viewing angle information, and then the model file of the target processing model can be divided into a processing bitmap with multiple processing layers according to the set slicing rules and image features; or, directly according to the set slicing rules, the model file of the target processing model generates a processing bitmap with multiple processing layers according to the set viewing angle information, and then determines the image features of the generated multiple processing layers. After obtaining the model file of the target processing model imported or obtained in other ways, the viewing angle information and projection mode (such as front view, side view, top view or axonometric view) adjusted as needed, the processing bitmap with multiple processing layers is displayed in the editing interface through the real-time rendering function of the software to help preview the 2D effect under different viewing angles. When a specific viewing angle or projection is confirmed, that is, after the viewing angle information of the target processing model is determined, the corresponding 2D processing layer and other processing bitmaps will be generated according to the depth information under the viewing angle. In addition, the G-code laser processing file is generated according to the layered processing bitmap, and the laser processing file can be generated by identifying the image features of all processing layers of the processing bitmap; or, the laser processing file can be generated by identifying the image features of at least part of the processing layers of the processing bitmap; or, the laser processing file can be generated by identifying the image features of all processing layers of the processing bitmap and according to the image features of at least part of the processing layers.

[0091] The slicing rules shown are used to limit the number of slices. Specifically, the slicing rules shown may be, but are not limited to, specifying the number of processing layers of the target processing model, specifying the layer thickness of the processing layer, and specifying the grayscale value of the processing layer.

[0092] The step S430 of identifying the image features of each processing layer of the processing bitmap can be specifically used to identify and obtain the image features of the color, texture, shape, image space relationship, etc. of the image of each processing layer, which is not limited here.

[0093] Image features include grayscale values. Taking the grayscale value of the processing bitmap as an example, in the present application, the processing order of multiple processing layers can be determined when the target processing model is rendered in layers according to the viewing angle information during the execution of step S420; or the processing order of multiple processing layers can be further determined during the process of identifying the image features of each processing layer of the processing bitmap during the execution of step S430.

[0094] Optionally, step S430, the step of identifying the image features of each processing layer of the processing bitmap and generating a laser processing file includes:

[0095] Identify the grayscale value of each processing layer of the processing bitmap, determine the processing sequence and processing parameters of multiple processing layers, and generate a laser processing file.

[0096] Specifically, it can be implemented in any of the following ways or in multiple other ways:

[0097] After identifying the grayscale values ​​of all processing layers of the processing bitmap and determining the processing order and processing parameters of multiple processing layers, a laser processing file is generated. It is used to generate a laser processing file after simultaneously identifying the grayscale values ​​of all processing layers of the processing bitmap and determining the processing parameters of all processing layers;

[0098] Determine the processing order of multiple processing layers of the processing bitmap, identify the gray value of each processing layer in turn according to the processing order and determine the processing parameters of the corresponding processing layer, until the gray value of all processing layers is identified and the processing parameters of all processing layers are determined, and then generate a laser processing file. Used to identify each processing layer one by one according to the processing order and generate a laser processing file after determining the processing parameters of all processing layers;

[0099] Determine the processing order of multiple processing layers of the processing bitmap, divide the multiple processing layers into multiple processing layer groups according to the processing order and the set processing parameters, each processing layer group includes at least one processing layer, the processing parameters of the processing layers in the same processing layer group are the same, the processing parameters of different processing layer groups can be the same or different, and the processing parameters can be but not limited to processing power and processing angle. After dividing the multiple processing layers into multiple processing layer groups according to the processing order and the set processing parameters, generate a laser processing file containing the processing parameters of the multiple processing layer groups.

[0100] In actual processing, if the processing angle between the upper and lower processing layers varies greatly, processing errors are likely to occur, and the processing effect and efficiency are likely to be affected. Figure 3 In one embodiment, the processing parameters include a processing path and a processing angle. Specifically, the processing angle includes an angle at which processing of the processing layer starts (ie, a processing start angle) and an angle at which processing of the processing layer ends (ie, a processing end angle).

[0101] The above-mentioned steps of identifying the grayscale value of each processing layer of the processing bitmap and determining the processing order and processing parameters of the multiple processing layers include:

[0102] Step S431, identifying the grayscale value of each processing layer of the processing bitmap, and determining the processing order of multiple processing layers;

[0103] Step S432, identifying the gray value of each pixel of the processing bitmap, determining all pixels whose gray value is not greater than a preset image feature range as processing pixels, and determining a processing path according to the processing pixels;

[0104] Step S433, determining the processing angles of the multiple processing layers according to the processing order and processing path of the multiple processing layers, so that the difference between the processing angle at which the previous processing layer ends processing and the processing angle at which the next processing layer starts processing in adjacent processing layers is not less than a preset difference range.

[0105] The difference between the processing angle at which the previous processing layer in the adjacent processing layers ends processing and the processing angle at which the next processing layer starts processing is not less than the preset difference range. Specifically, the processing angle at which the previous processing layer in the adjacent processing layers ends processing is determined as the processing angle at which the next processing layer starts processing, or the processing angle at which the previous processing layer in the adjacent processing layers ends processing is determined as the processing angle at which the next processing layer starts processing. In this way, it is possible to avoid the problem of multiple adjustments of the processing angle from the previous processing layer to the next processing layer or even the problem of excessive adjustment of the processing angle, so as to reduce the influence of the processing angle adjustment on the processing effect, obtain a smooth transition effect, save angle adjustment time, and improve processing efficiency. The preset difference range can be specifically set according to actual conditions and is not limited here.

[0106] The preset image feature range may be, but is not limited to, a preset grayscale range or other image feature ranges. Specifically, the preset image grayscale range is N. When executing step S432, the grayscale value of each pixel of the processing bitmap is identified, and all pixels whose grayscale values ​​are not greater than the set value N are determined as processing pixels, and the parts determined as processing pixels are set to black, and all pixels whose grayscale values ​​are greater than N are set to white. The parts set to black are determined as parts that need to be processed, and the parts set to white are determined as parts that do not need to be processed, and the processing path is determined for the parts that need to be processed. In this way, the steps for determining the processing path can be simplified, and it is convenient to control the processing according to the determined processing path. The processing bitmap is displayed through the editing interface, and the parts that need to be processed and the parts that do not need to be processed are distinguished by black and white, so as to intuitively display the processing pixels and the processing path. When the generated laser processing file is issued and the processing equipment is controlled for processing, it is also convenient for users to monitor the processing progress.

[0107] In a possible embodiment of the present application, when executing step S433, the step of determining the processing angles of multiple processing layers according to the processing order and processing path of the multiple processing layers, it can also be that the processing point where the previous processing layer in adjacent processing layers ends processing is made to correspond to the position of the processing point where the next processing layer starts processing, so as to further determine the processing path of the multiple processing layers and reduce processing errors.

[0108] Specifically, the pixels waiting to be processed in the graphics to be processed in each processing layer can be determined as processing pixels, and the processing pixels of each processing layer can be analyzed by angle. The multiple processing points of the next processing layer can be determined through the processing points of the previous processing layer. The angles between the multiple processing points of the next processing layer and the processing points of the previous processing layer can be calculated through the motion path from the previous processing layer to the next processing layer. The processing angle with the smallest difference between the processing angle for starting processing and the processing angle for ending processing of the previous processing layer can be determined from the multiple processing points of the next processing layer as the processing angle for starting processing of the next processing layer, and the processing point corresponding to the processing angle for starting processing can be used as the processing point of the next processing layer.

[0109] In this application, by automatically planning the processing path, finding the appropriate processing parameters (such as processing power, processing speed, processing spacing, etc.), it is ensured that the connection between adjacent layers is natural and there is no obvious step effect. In the laser processing file generation program or laser processing control program, ramp feeding, curve interpolation and other technologies can also be used to make the laser energy have a gradual process when approaching and leaving the surface of the processing material, so as to obtain a smooth transition effect. Taking relief processing as an example, for reliefs with specific texture or directional characteristics, by adjusting and changing the processing angle direction of each processing layer, the surface of the final processed model presents a more uniform effect, reducing the texture traces caused by single-direction processing. This method can be combined with spiral filling, checkerboard paths and other methods to disperse the distribution of laser energy on the processing material, which helps to improve the surface quality while reducing internal stress and preventing material deformation or rupture. By determining a reasonable planning processing path and determining the processing angle between layers, it can also avoid the problem of processing inconvenience caused by the need to return to the processing starting point and refocus after processing a processing layer and then process the next processing layer. In this way, unnecessary angle adjustment actions and processing accuracy problems caused by angle adjustment can be reduced, and equipment wear can be further reduced, equipment life can be extended, wear maintenance and processing costs can be saved, and the planning of processing paths can be more reasonable.

[0110] Reference Figure 4 , Fig.11 , Fig.12 In one embodiment, step S420, rendering the target processing model in layers according to the viewing angle information to display a processing bitmap having multiple processing layers in the editing interface includes:

[0111] Step S421, layering the target processing model according to the viewing angle information to display grayscale images with different grayscale values ​​on the editing interface;

[0112] Step S422, obtaining a slicing setting instruction, and performing layered rendering on the processing layer according to the obtained slicing setting instruction and the generated grayscale image with different grayscale values, so as to display a processing bitmap with multiple processing layers on the editing interface.

[0113] The target processing model is layered according to the viewing angle information. After the grayscale images with different grayscale values ​​are displayed on the editing interface, the slicing rules are determined according to the acquired slicing setting instructions. According to the determined slicing rules and the generated grayscale images with different grayscale values, a processing bitmap with multiple processing layers is generated. The number of processing layers of the processing bitmap is determined according to the slicing rules, and the processing parameters of each processing layer are further determined according to the grayscale value.

[0114] Furthermore, the slicing setting instruction includes a slicing rule, and the slicing rule is used to specify any one of the number of processing layers of the target processing model, the thickness of the processing layer, and the grayscale value of the processing layer.

[0115] Among them, specifying the number of processing layers of the target processing model is used to directly specify the number of processing layers to be generated, specifying the layer thickness of the processing layer is used to specify the layer thickness of each generated processing layer, and specifying the grayscale value of the processing layer is used to specify the grayscale value of the separated processing layer; the specific slicing rules can be set according to actual conditions and are not limited here.

[0116] As another embodiment of the present application, in order to simplify the processing control process, it is determined that the second processing mode is used to control the processing. Specifically, after identifying the image features of the 3D file of the target processing model, the processing mode of controlling the processing by adjusting the processing parameters such as the laser processing power is taken as an example of the second processing mode. Figure 5 Step S400, determining the processing mode of the target processing model, and generating a laser processing file according to the processing bitmap and the processing mode include:

[0117] Step S440, obtaining a mode setting instruction of a target processing model;

[0118] Step S450: when the processing mode is determined to be the second processing mode according to the mode setting instruction, the processing parameters are determined according to the grayscale value of the identified processing bitmap, and a laser processing file is generated; the processing parameters include a processing path and a processing depth.

[0119] In some specific embodiments of the present application, the second processing mode is mainly used to utilize the characteristics of the grayscale image, and to control the processing depth by using the power size simulation, the greater the processing power, the deeper the processing depth, etc. When executing step S400, when the determined processing mode is the second processing mode, the processing pixels are determined according to the grayscale value of the identified processing bitmap, so as to determine the processing path according to the determined processing pixels, and further determine the processing power according to the determined processing path, and the processing depth is increased by increasing the processing power and the processing depth is reduced by reducing the processing power, so as to realize the regulation of the processing parameters, so as to generate a laser processing file according to the determined processing parameters, and further control the subsequent processing.

[0120] In addition, it should be noted that when the determined processing mode is the second processing mode, the processing parameters can be determined and the laser processing file can be generated by optionally identifying and acquiring other image features such as the image color, texture, shape, image spatial relationship, etc., rather than being limited to determining the processing parameters by identifying the grayscale value of the processing bitmap. The specific settings can be made according to actual conditions and are not limited here.

[0121] Reference Figure 6 In one embodiment, before executing step S200, the step of determining the viewing angle information of the target processing model, the method for generating the laser processing file further includes the following steps:

[0122] Step S201: Acquire processing parameter setting information, and extract actual processing features of a target processing model according to the processing parameter setting information.

[0123] The processing parameter setting information includes at least one of viewing angle information, processing path, processing angle, and processing power. The acquired processing parameter setting information can be acquired through the steps of the above embodiment; or determined according to the acquired processing parameter setting instruction, and the processing parameter setting instruction includes the processing parameter setting information set by the user.

[0124] Step S202, extracting model features of the target processing model, and comparing the actual processing features with the model features;

[0125] Step S2031, when the actual processing features do not match the model features, displaying modification prompt information on the editing interface;

[0126] Step S2032: When the actual processing features match the model features, a step of determining the viewing angle information of the target processing model is executed.

[0127] This application mainly determines whether the actual processing features match the model features through the processing features under the same processing perspective. Taking relief processing as an example, under the same processing perspective, when the actual processing features contain all the model features of the target processing model and there are no other redundant model features, it is determined that the actual processing features match the model features; when the actual processing features have model features such as hanging (or hollowing) but the target processing model does not have model features such as hanging (or hollowing), it is determined that the actual processing features do not match the model features. When it is determined that the actual processing features do not match the model features, the user is prompted to modify the selected processing perspective, modify the set processing angle, etc. by displaying modification prompt information such as viewing angle modification information and processing angle modification information.

[0128] It should be noted that the laser processing file generation method of the present application allows the model file of the acquired target processing model or the processing model that can be obtained by determining the viewing angle information of the target processing model to be verified before generating the laser processing file or sending the laser processing file to the processing equipment and controlling the processing, and determines the processing parameters, which are used to extract the actual processing features according to the determined processing parameters, and compare the actual processing features with the model features. When the actual processing features do not match the extracted model features of the target processing model, a modification prompt message is displayed on the editing interface to remind the user to reset the viewing angle information or to remind the user to change the target processing model by adding image features to the model file of the target processing model; it is also used to use the determined viewing angle information of the target processing model as the processing viewing angle when the actual processing features match the model features.

[0129] Specifically, the modification prompt information of the actual processing features and model features can be specifically prompted or warned by tables, lists, pop-up windows, prompt sounds, etc.; the actual processing model can also be simulated and displayed according to the processing parameter setting information, and the user can be prompted to modify by demonstrating the processing effect in advance on the editing interface. In this way, defect recognition and user feedback functions such as wrong angle recognition can be realized, so as to timely identify wrong processing perspectives, wrong feature information, etc., avoid processing according to wrong perspectives that affect processing effects, and effectively reduce processing costs.

[0130] The above steps S201 to S2032 can be performed before step S200, the step of determining the viewing angle information of the target processing model, or can be performed at any step before generating the laser processing file; this is not limited here.

[0131] When there are special model features such as hollowing or hanging, if the viewing angle and processing angle are not appropriate, the processed material will be deformed or broken, affecting the processing quality. Taking relief processing as an example, during relief processing, the model features of the target processing model limit the model area of ​​the next processing layer to be no less than the model area of ​​the previous processing layer and the model area contour of the next processing layer at least includes the model area contour of the previous processing layer, so as to avoid or reduce difficult-to-process model features such as hollowing and hanging structures.

[0132] Reference Figure 7 , comparing the actual processing features with the model features; when the actual processing features do not match the model features, the steps of displaying modification prompt information on the editing interface include:

[0133] Step S204, performing processing feature detection on the actual processing features, and comparing the actual processing features with the model features, wherein the model features include that the model region area of ​​the next processing layer is not less than the model region area of ​​the previous processing layer, and the model region contour of the next processing layer at least includes the model region contour of the previous processing layer;

[0134] Step S205: When the actual processing feature does not meet the requirement that the model area area of ​​the next processing layer is not less than the model area area of ​​the previous processing layer, and / or the model area contour of the next processing layer at least includes the model area contour of the previous processing layer, it is determined that the actual processing feature does not match the model feature, and modification prompt information is displayed in the editing interface; the modification prompt information includes at least one of the viewing angle modification information and the processing angle modification information.

[0135] In addition, when the actual processing feature satisfies that the model area area of ​​the next processing layer is not less than the model area area of ​​the previous processing layer and the model area contour of the next processing layer at least includes the model area contour of the previous processing layer, it is determined that the actual processing feature matches the model feature, and the step of determining the viewing angle information of the target processing model is executed.

[0136] When the actual processing features do not match the model features of the target processing model, and the actual processing features do not meet the requirement that the model area of ​​the next processing layer is not less than the model area of ​​the previous processing layer, and / or the model area contour of the next processing layer at least includes the model area contour of the previous processing layer, resulting in hollowing, hanging or other special model features and other difficult processing situations, the user is informed through error prompts, warnings, etc. The error prompts and warnings can be specifically displayed on the editing interface by modifying the prompt information, etc., to prompt the user to change the set viewing angle information, processing angle, etc. to overcome the defects.

[0137] Furthermore, when the actual processing features do not match the model features of the target processing model, modification prompt information is displayed on the editing interface to prompt the user to change the set processing angle, processing angle, etc., and is used to receive modification instructions such as perspective modification instructions fed back by the user, regenerate a new processing bitmap according to the received modification instructions, and repeat the above steps S200, step S300, step S400 and other related steps.

[0138] Take 3D printing as an example. Different from relief processing, 3D printing is additive processing. When it contains special model features such as hollowing or hanging, if the viewing angle and processing angle are not appropriate, the processed model will lack the necessary support structure. When analyzing the target processing model and generating laser processing files such as G-code (G code), relevant detection can be performed. This detection usually involves the support structure generation algorithm. When it is found that there is an invalid support part, the user will be required to reselect the angle or add the necessary support structure. Figure 8 In one embodiment, the actual processing features are compared with the model features; when the actual processing features do not match the model features, the step of displaying modification prompt information on the editing interface includes:

[0139] Step S206, performing support structure feature detection on the actual processing features, and comparing the actual processing features with the model features;

[0140] Step S207: When the model feature has a supporting structure feature and the actual processing feature does not have a supporting structure feature, it is determined that the actual processing feature does not match the model feature, and a modification prompt message is displayed on the editing interface.

[0141] Among them, the processing parameter setting information includes at least one of the processing path, processing angle, and processing power; and the modification prompt information includes at least one of the viewing angle modification information, processing angle modification information, and support structure addition information.

[0142] When performing additive processing such as 3D printing, if the actual processing features do not match the model features of the target processing model due to special model features such as hollowing out and suspension, and the actual processing features lack necessary features such as support structures, the user will be informed through error prompts, warnings, etc. The error prompts and warnings can be displayed in the editing interface by modifying the prompt information, etc., to prompt the user to change the set perspective information or overcome the defects by adding necessary support structures, etc.

[0143] Furthermore, when the actual processing features do not match the model features of the target processing model, modification prompt information is displayed on the editing interface to prompt the user to change the set processing angle, prompt the user to add a supporting structure, etc., and is used to receive modification instructions such as perspective modification instructions fed back by the user, regenerate a new processing bitmap according to the received modification instructions, or display a preview of the new target processing model with the support structure added on the editing interface, and repeat the above steps S200, step S300, step S400 and other related steps.

[0144] The present application also proposes a processing device, which can be but not limited to laser engraving equipment such as an engraving machine, laser cutting equipment, and knife cutting processing equipment. The processing equipment includes a slide rail, a processing head, a communication component, and a controller. Among them, the processing head is used to move and process the surface of the processing material by emitting a processing light spot. The processing head can be but not limited to a laser head, a knife cutting head, a cutting head, a pen head, and a drill head. The processing head can be slidably arranged on the slide rail; the slide rail is used to drive the processing head to reciprocate in the X direction, the Y direction, and other directions. The communication component is used to receive the processing file obtained by the method for generating the laser processing file according to the above embodiment; based on the processing file, the controller controls the processing head to move on the slide rail to process the surface of the processing material.

[0145] In the present application, when processing the target processing model, it is necessary to place the processing material on the working area of ​​the equipment, and before controlling the processing head to move on the slide rail to process the surface of the processing material, the following steps are also included. Before controlling the processing, it is also necessary to determine the dimensions of the target processing model in each direction, and determine the dimensions of the selected processing material according to the dimensions of the target processing model in each direction, so that the dimensions of the processing material in each direction are not less than the dimensions of the target processing model. In addition, it is also necessary to consider the dimensions of the target processing model along the processing viewing angle direction, such as the working stroke of the machine and the maximum height of the model. Since the dimensions of the processing material in each direction are not less than the dimensions of the target processing model, the dimensions of the processing material along the processing viewing angle direction are further considered. If the model height exceeds the material thickness, it cannot be completely engraved; conversely, if the model height is low, it can be raised under the processing material to ensure that there is enough engraving space and the work surface is not damaged.

[0146] The present application also provides a terminal device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a laser processing file generation program that can be executed by the at least one processor, and the laser processing file generation program is executed by the at least one processor so that the at least one processor can execute the laser processing file generation method in the above-mentioned embodiment.

[0147] This application mainly uses relief processing as an example to illustrate the specific implementation of the method for generating laser processing files that can be implemented by the terminal device as follows:

[0148] After acquiring the model file of the target processing model, the terminal device displays a preview image of the target processing model through an editing interface.

[0149] After determining the viewing angle information (such as the selected viewing angle, the default viewing angle, etc.), processing path, processing angle, processing power and other processing parameter setting information, the actual processing features of the target processing model are extracted according to the processing parameter setting information. The actual processing features are compared with the model features of the extracted target processing model:

[0150] When the actual processing features do not match the model features, a modification prompt message is displayed on the editing interface. Taking the case where the target processing model contains special model features such as hollowing or hanging, feature detection such as processing area feature detection is performed on the actual processing features, and the actual processing features such as the actual processing area features are compared with the model features; under the same processing perspective, when the actual processing features do not contain all the model features of the target processing model, or the actual processing features have other redundant model features that the target processing model does not have, and the model area area of ​​the next processing layer is not less than the model area area of ​​the previous processing layer, and / or the model area contour of the next processing layer at least contains the model area contour of the previous processing layer, it is determined that the actual processing features do not match the model features, and modification prompt messages such as perspective modification information and processing angle modification information are displayed on the editing interface.

[0151] When the model area of ​​the next processing layer is not less than the model area of ​​the previous processing layer and the model area contour of the next processing layer at least includes the model area contour of the previous processing layer, it is determined that the actual processing features match the model features. When the actual processing features match the model features, the generated processing bitmap is displayed in the editing interface according to the determined viewing angle information of the target processing model. After determining the processing mode of the selected target processing model, a laser processing file is generated according to the processing bitmap and the selected processing mode.

[0152] Among them, when the selected processing mode is the first processing mode:

[0153] The target processing model is layered according to the viewing angle information, and grayscale images with different grayscale values ​​are displayed through the editing interface. The processing layer is sliced ​​and layered by specifying the number of processing layers of the target processing model, the thickness of the processing layer, the grayscale value of the processing layer, etc., and the processing layer is layered and rendered through the generated grayscale images with different grayscale values, and the processing bitmap with multiple processing layers is displayed in the editing interface.

[0154] In the first processing mode, after identifying the grayscale value of each processing layer of the processing bitmap and determining the processing order and processing parameters (such as processing power, processing angle, etc.) of multiple processing layers, a G-code laser processing file is generated, and the laser processing equipment is controlled by issuing the laser processing file. Specifically, the processing order of multiple processing layers is determined by identifying the grayscale value of each processing layer of the processing bitmap. By identifying the grayscale value of each pixel of the processing bitmap, all pixels whose grayscale value is not greater than the set value N are determined as processing pixels, and the parts determined as processing pixels are set to black, and all pixels whose grayscale value is greater than N are set to white. The parts set to black are determined as the parts that need to be processed (that is, the processing area of ​​the aforementioned processing layer), and the parts set to white are determined as the parts that do not need to be processed (that is, the model area of ​​the processing layer of the aforementioned model feature), and the processing path is determined corresponding to the parts that need to be processed. For the determination of the processing angles of multiple processing layers, it is necessary to determine according to the processing order and processing path of the multiple processing layers, and a smooth transition effect is obtained by making the processing angle at which the previous processing layer in the adjacent processing layers ends processing correspond to the processing angle at which the next processing layer starts processing. For reliefs with specific texture or directional features, the processing angle and direction of each processing layer can be adjusted to make the surface of the final processed model more uniform and reduce the texture marks caused by single-direction processing.

[0155] When the selected processing mode is the second processing mode:

[0156] The processing parameters such as the processing path and processing depth are determined according to the grayscale value of the identified processing bitmap, and a G-code laser processing file is generated to control the operation of the laser processing equipment by issuing the laser processing file. For the implementation plan of how to determine the processing path in the second processing mode, refer to the first processing mode, which will not be repeated here.

[0157] In addition, it should be noted that the specific implementation method of the laser processing file generation method that can be implemented by the aforementioned terminal device is mainly explained based on the example that the model file of the target processing model obtained by the terminal device is a 3D file. When the model file of the target processing model obtained by the terminal device is a 2D file such as a processing bitmap, the second processing mode can be directly selected for processing.

[0158] The terminal device provided by the present application can reduce the requirements for model files, and is mainly used to solve the technical problem that the processing effect is not ideal due to the hollowing out, hanging and other difficult processing conditions during the relief processing. The specific implementation of the terminal device of the present application can refer to the embodiment of the aforementioned method. Compared with the prior art, the beneficial effects of the terminal device provided by the present application are the same as the beneficial effects of the method for generating laser processing files provided by the above embodiment, which will not be repeated here.

[0159] The terminal device in the embodiments of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The computer devices such as terminal devices shown in the present application are only examples and should not bring any limitations to the functions and scope of use of the embodiments of the present application.

[0160] Computer devices such as terminal equipment may include control components such as processing devices (such as central processing units, graphics processing units, etc.), which can perform various appropriate actions and processes according to programs stored in read-only memory (ROM) or programs loaded from storage devices into random access memory (RAM). In RAM, various programs and data required for the operation of the computer device are also stored. The processing device, ROM, and RAM are connected to each other through a bus. The input / output (I / O) interface is also connected to the bus. Generally, the following systems can be connected to the I / O interface: input devices such as touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices such as liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices such as magnetic tapes, hard disks, etc.; and communication devices. The communication device can allow the computer device to communicate with other devices wirelessly or by wire to exchange data.

[0161] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0162] The terminal device provided by the present application adopts the method for generating laser processing files in the above embodiment to reduce the requirements for processing materials and solve the technical problem of unsatisfactory processing effects. Compared with the prior art, the beneficial effects of the computer device provided by the present application are the same as the beneficial effects of the method for generating laser processing files provided by the above embodiment, and the other technical features in the computer device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0163] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0164] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0165] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the method for generating a laser processing file in the above-mentioned embodiment.

[0166] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0167] The computer-readable storage medium may be included in a computer device, or may exist independently without being installed in a computer device.

[0168] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a computer device, the computer device: obtains a model file of a target processing model and displays a preview image of the target processing model on an editing interface; determines viewing angle information of the target processing model; generates a processing bitmap based on the determined viewing angle information of the target processing model; determines a processing mode of the target processing model, and generates a laser processing file based on the processing bitmap and the processing mode.

[0169] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0170] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0171] The modules involved in the embodiments of the present application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0172] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned method for generating laser processing files, which can reduce the requirements for processing materials and solve the technical problem of unsatisfactory processing effects. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the method for generating laser processing files provided by the above-mentioned embodiment, and will not be repeated here.

[0173] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of the method for generating a laser processing file as described above when executed by a processor.

[0174] The computer program product provided by the present application can reduce the requirements for processing materials and solve the technical problem of unsatisfactory processing effects. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the method for generating laser processing files provided by the above embodiment, and will not be repeated here.

[0175] The above description is only an optional embodiment of the present application, and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the inventive concept of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for generating a laser processing file, characterized in that: include: Obtaining a model file of a target processing model, and displaying a preview image of the target processing model on an editing interface; Determining viewing angle information of the target processing model; Generating a processing bitmap according to the determined viewing angle information of the target processing model; A processing mode of the target processing model is determined, and a laser processing file is generated according to the processing bitmap and the processing mode.

2. The method for generating a laser processing file according to claim 1, characterized in that: Before executing the step of determining the viewing angle information of the target processing model, the method for generating the laser processing file further includes the following steps: Acquiring processing parameter setting information, and extracting actual processing features of a target processing model according to the processing parameter setting information; Extracting model features of the target processing model, and comparing the actual processing features with the model features; When the actual processing features do not match the model features, a modification prompt message is displayed in the editing interface; When the actual processing feature matches the model feature, the step of determining the viewing angle information of the target processing model is performed.

3. The method for generating a laser processing file according to claim 2, characterized in that: The step of comparing the actual processing features with the model features; and displaying modification prompt information on the editing interface when the actual processing features do not match the model features comprises: Performing machining feature detection on the actual machining feature, and comparing the actual machining feature with the model feature, wherein the model feature includes that the area of ​​the model region of the next machining layer is not less than the area of ​​the model region of the previous machining layer, and the contour of the model region of the next machining layer at least includes the contour of the model region of the previous machining layer; When the actual processing feature does not meet the requirement that the model area of ​​the next processing layer is not less than the model area of ​​the previous processing layer, and / or the model area contour of the next processing layer at least includes the model area contour of the previous processing layer, it is determined that the actual processing feature does not match the model feature, and a modification prompt message is displayed on the editing interface.

4. The method for generating a laser processing file according to claim 3, characterized in that: The processing parameter setting information includes at least one of viewing angle information, processing path, processing angle, and processing power; and / or the modification prompt information includes at least one of viewing angle modification information and processing angle modification information.

5. The method for generating a laser processing file according to claim 1, wherein: The step of determining the processing mode of the target processing model and generating a laser processing file according to the processing bitmap and the processing mode comprises: Obtaining a mode setting instruction of a target processing model; When the processing mode is determined to be the first processing mode according to the mode setting instruction, the target processing model is rendered in layers according to the viewing angle information, so as to display a processing bitmap having multiple processing layers on an editing interface; Identify the image features of each processing layer of the processing bitmap and generate laser processing files.

6. The method for generating a laser processing file according to claim 5, characterized in that: The image feature includes a grayscale value, and the step of identifying the image features of each processing layer of the processing bitmap and generating a laser processing file includes: Identify the grayscale value of each processing layer of the processing bitmap, determine the processing sequence and processing parameters of multiple processing layers, and generate a laser processing file.

7. The method for generating a laser processing file according to claim 6, wherein: The processing parameters include a processing path and a processing angle, and the step of identifying the grayscale value of each processing layer of the processing bitmap and determining the processing sequence and processing parameters of the multiple processing layers includes: Identify the grayscale value of each processing layer of the processing bitmap and determine the processing order of multiple processing layers; Identify the gray value of each pixel of the processing bitmap, determine all pixels whose gray value is not greater than a preset image feature range as processing pixels, and determine the processing path according to the processing pixels; The processing angles of the multiple processing layers are determined according to the processing sequence and processing path of the multiple processing layers, so that the difference between the processing angle at which the previous processing layer ends processing and the processing angle at which the next processing layer starts processing in adjacent processing layers is not less than a preset difference range.

8. The method for generating a laser processing file according to claim 5, characterized in that: The step of rendering the target processing model in layers according to the viewing angle information to display a processing bitmap having multiple processing layers on an editing interface includes: Layering the target processing model according to the viewing angle information to display grayscale images with different grayscale values ​​on an editing interface; A slicing setting instruction is obtained, and the processing layer is rendered in layers according to the obtained slicing setting instruction and the generated grayscale image with different grayscale values, so as to display a processing bitmap with multiple processing layers on an editing interface.

9. The method for generating a laser processing file according to claim 1, wherein: The step of determining the processing mode of the target processing model and generating a laser processing file according to the processing bitmap and the processing mode comprises: Obtaining a mode setting instruction of a target processing model; When the processing mode is determined to be the second processing mode according to the mode setting instruction, processing parameters are determined according to the grayscale value of the identified processing bitmap, and a laser processing file is generated; the processing parameters include a processing path and a processing depth.

10. The method for generating a laser processing file according to any one of claims 1 to 9, characterized in that: Before executing the step of determining the processing mode of the target processing model and generating a laser processing file according to the processing bitmap and the processing mode, the step further includes: A machining bitmap selection instruction is obtained, and a machining bitmap corresponding to the target machining model is determined according to the machining bitmap selection instruction.

11. A processing equipment, characterized in that: The processing equipment includes: Slide rails; a processing head, the processing head being slidably disposed on the slide rail; A communication component, the communication component is used to receive a processing file obtained by the method for generating a laser processing file according to any one of claims 1 to 10; A controller controls the processing head to move on a slide rail to process the surface of a processing material based on the processing file.

12. A system, characterized in that: include: A processing device, the processing device comprising a processing device bottom plate and a processing head, the processing device bottom plate is used to place processing materials, and the processing head is used to move on the processing device bottom plate; and A terminal device that communicates with the processing device, wherein the terminal device is used to execute the method for generating a laser processing file according to any one of claims 1 to 10.

13. A computer-readable storage medium storing a program for generating a laser processing file, characterized in that: When the laser processing file generation program is executed by a processor, the steps of the laser processing file generation method described in any one of claims 1 to 10 are implemented.

Citation Information

Cited By

  • Dynamic layer processing method and device based on color grouping and storage medium

    CN120147462A

  • Processing method, device, system, medium, and program product

    WO2026208950A1