Multi-color slice synchronous control printing method and system for additive manufacturing
By using the 3D model selected by the user in additive manufacturing, timing segmentation and area growth processing are performed to generate a multi-color slice control solution, which solves the problem of inaccurate color switching in the existing multi-color printing technology, and achieves higher printing accuracy and consistency.
Patent Information
- Application Number
- CN202411703133.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-02-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing multi-color printing technology, color switching is inaccurate, resulting in inconsistent printing effects.
The 3D model of additive manufacturing is selected by the user side, including rendered color distribution labels and additive manufacturing time distribution labels, and the color distribution labels are time-sequentially segmented and neighborhood area growth based on the time distribution labels, and a multi-color slice control scheme is generated to optimize printhead collaborative control.
Improve the accuracy and consistency of multi-color printing, achieving more accurate color switching and stable printing effects.
Smart Images

Figure CN119526764A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of additive manufacturing, and in particular to a method and system for synchronously controlling printing of multi-color slices in additive manufacturing. Background Art
[0002] Additive manufacturing technology allows complex three-dimensional structures to be created by adding materials layer by layer. As market demand grows, more and more application scenarios require multi-color printing in printing to meet the aesthetic and functional requirements of the product.
[0003] Current multi-color printing technologies mainly rely on multi-nozzle printers or single-nozzle multi-material switching systems to change materials or colors during the printing process to achieve multi-color effects. These methods usually require complex hardware configuration and sophisticated switching control. There are technical problems such as inaccurate color switching and inconsistent printing effects. Summary of the invention
[0004] The present invention aims to solve the technical problems of inaccurate color switching and inconsistent printing effects in the prior art by providing a method and system for synchronously controlling printing of multi-color slices in additive manufacturing.
[0005] The technical solution of the present invention to solve the above technical problems is as follows: In a first aspect, the present invention provides a method for synchronously controlling printing of multi-color slices in additive manufacturing, wherein the method comprises: An additive manufacturing 3D model is selected through a user terminal, wherein the additive manufacturing 3D model includes a rendering color distribution label and an additive manufacturing time distribution label.
[0006] The rendering color distribution label is segmented in time series based on the additive manufacturing time distribution label to obtain a first time rendering color distribution label, a second time rendering color distribution label, and so on until an Nth time rendering color distribution label.
[0007] Neighborhood region growing is performed on the color distribution labels rendered at the first moment, the color distribution labels rendered at the second moment, and the color distribution labels rendered at the Nth moment, respectively, to obtain a color region division result rendered at the first moment, a color region division result rendered at the second moment, and a color region division result rendered at the Nth moment.
[0008] The multi-color print head collaborative control optimization is performed according to the rendering color area division result at the first moment, the rendering color area division result at the second moment, and the rendering color area division result at the Nth moment to obtain a multi-color slicing control solution.
[0009] Additive manufacturing printing control is performed according to the multi-color slicing control scheme.
[0010] In a second aspect, the present invention provides a multi-color slice synchronous control printing system for additive manufacturing, wherein the system comprises: A model selection module, the model selection module is used to select an additive manufacturing 3D model through a user terminal, wherein the additive manufacturing 3D model includes a rendering color distribution label and an additive manufacturing moment distribution label; a timing segmentation module, the timing segmentation module is used to perform timing segmentation on the rendering color distribution label based on the additive manufacturing moment distribution label, and obtain a first moment rendering color distribution label, a second moment rendering color distribution label, and a Nth moment rendering color distribution label; a region growing processing module, the region growing processing module is used to perform neighborhood region growth on the first moment rendering color distribution label, the second moment rendering color distribution label, and the Nth moment rendering color distribution label, respectively, to obtain a first moment rendering color region division result, a second moment rendering color region division result, and a Nth moment rendering color region division result; a collaborative control optimization module, the collaborative control optimization module is used to perform multi-color print head collaborative control optimization according to the first moment rendering color region division result, the second moment rendering color region division result, and the Nth moment rendering color region division result, to obtain a multi-color slicing control scheme; a printing execution module, the printing execution module is used to perform additive manufacturing printing control according to the multi-color slicing control scheme.
[0011] The beneficial effects of the present invention are as follows: the additive manufacturing 3D model is selected through the user end, wherein the additive manufacturing 3D model includes a rendering color distribution label and an additive manufacturing moment distribution label; the rendering color distribution label is time-sequentially segmented based on the additive manufacturing moment distribution label to obtain the first moment rendering color distribution label, the second moment rendering color distribution label until the Nth moment rendering color distribution label; the neighborhood region growth is performed on the first moment rendering color distribution label, the second moment rendering color distribution label until the Nth moment rendering color distribution label, respectively, to obtain the first moment rendering color region division result, the second moment rendering color region division result until the Nth moment rendering color region division result; the multi-color print head collaborative control optimization is performed according to the first moment rendering color region division result, the second moment rendering color region division result until the Nth moment rendering color region division result, to obtain the multi-color slicing control scheme; the additive manufacturing printing control is performed according to the multi-color slicing control scheme. The technical effects of improving the multi-color printing accuracy and improving the printing consistency are achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 A schematic diagram of the process flow of the multi-color slice synchronous control printing method for additive manufacturing provided by the present invention; Figure 2 A schematic diagram of the structure of a multi-color slice synchronous control printing system for additive manufacturing provided by the present invention; Figure 3 A schematic diagram of the structure of an electronic device provided by the present invention; Figure 4 A schematic diagram of the structure of a computer-readable storage medium provided by the present invention.
[0013] In the accompanying drawings, the components represented by the reference numerals are described as follows: Model selection module 11, time series segmentation module 12, region growing processing module 13, collaborative control optimization module 14, printing execution module 15, electronic device 500, memory 510, processor 520, first computer program 511, computer readable storage medium 600, second computer program 611. DETAILED DESCRIPTION
[0014] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0015] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0016] In the description of the present invention, the term "for example" is used to mean "used as an example, illustration or explanation". Any embodiment described as "for example" in the present invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present invention.
[0017] Embodiment 1: like Figure 1 As shown, an embodiment of the present invention provides a method for synchronously controlling printing of multi-color slices in additive manufacturing, wherein the method comprises: An additive manufacturing 3D model is selected through a user terminal, wherein the additive manufacturing 3D model includes a rendering color distribution label and an additive manufacturing time distribution label.
[0018] Specifically, first, the target model that needs to be printed in multi-color, that is, the additive manufacturing 3D model, is determined through the user end of the target scene. The additive manufacturing 3D model is a model that has been marked by the user and has a rendering color distribution label and an additive manufacturing time distribution label. The rendering color distribution label represents the color distribution of the 3D model, and the additive manufacturing time distribution label is used to limit the additive manufacturing timing of different model positions.
[0019] The above-mentioned additive manufacturing 3D model originated from the user side and having rendering color distribution labels and additive manufacturing time distribution labels includes the color and printing order of the model customized by the user according to needs, providing an accurate model basis for subsequent control decisions.
[0020] The rendering color distribution label is segmented in time series based on the additive manufacturing time distribution label to obtain a first time rendering color distribution label, a second time rendering color distribution label, and so on until an Nth time rendering color distribution label.
[0021] Specifically, based on the additive manufacturing moment distribution label, the rendering color distribution label is segmented to obtain the first moment rendering color distribution label, the second moment rendering color distribution label, and the Nth moment rendering color distribution label. Among them, the first moment rendering color distribution label, the second moment rendering color distribution label, and the Nth moment rendering color distribution label can be considered as a preliminary division of the rendering color distribution label based on time series. Through the above time series segmentation process, it can be ensured that the model positions of adjacent time series are located in the same segmentation result, thereby converting a complex model with a large amount of data into multiple label sets with smaller data volumes, which is convenient for subsequent processing.
[0022] In some embodiments, the rendering color distribution label is time-sequentially segmented based on the additive manufacturing time distribution label to obtain a first time rendering color distribution label, a second time rendering color distribution label, and finally an Nth time rendering color distribution label, including: According to the additive manufacturing moment distribution label, a first moment distribution label, a second moment distribution label, and so on are obtained until the Nth moment distribution label; according to the first moment distribution label, the rendering color distribution label is matched with the same coordinate color to obtain the first moment rendering color distribution label; according to the second moment distribution label, the rendering color distribution label is matched with the same coordinate color to obtain the second moment rendering color distribution label; until according to the Nth moment distribution label, the rendering color distribution label is matched with the same coordinate color to obtain the Nth moment rendering color distribution label.
[0023] Specifically, according to the additive manufacturing time distribution label, the model is divided into multiple time segments, each time segment corresponds to a manufacturing stage (first moment, second moment, until the Nth moment), and has a corresponding time distribution label.
[0024] Preferably, multiple time segments are determined based on the layered information of the additively manufactured 3D model. In other words, each time segment corresponds to a specific interval of model layers. For example, if the user defines the layer height of the model additive manufacturing as 0.2 mm, the time range corresponding to each 0.2 mm height model layer can be taken as a time segment.
[0025] Specifically, according to the obtained distribution label at the first moment, the corresponding model coordinate set is called, and according to the model coordinate set, the corresponding model area is matched to obtain the rendering color distribution label at the first moment; then, the above process is repeated, and coordinate color matching is performed according to the distribution label at the second moment to the distribution label at the Nth moment, and the rendering color distribution label at the second moment to the rendering color distribution label at the Nth moment is generated.
[0026] By matching the colors at the same coordinates as above, the rendering color distribution labels corresponding to multiple moments are obtained, which helps to accurately control the color at each manufacturing moment later.
[0027] Neighborhood region growing is performed on the color distribution labels rendered at the first moment, the color distribution labels rendered at the second moment, and the color distribution labels rendered at the Nth moment, respectively, to obtain a color region division result rendered at the first moment, a color region division result rendered at the second moment, and a color region division result rendered at the Nth moment.
[0028] Specifically, neighborhood region growing refers to gradually expanding the region according to color similarity and spatial proximity, thereby identifying and dividing different color regions in the color distribution label at each moment.
[0029] In some embodiments, performing neighborhood region growing on the first moment rendering color distribution label, the second moment rendering color distribution label, and the Nth moment rendering color distribution label respectively to obtain the first moment rendering color region division result, the second moment rendering color region division result, and the Nth moment rendering color region division result includes: The starting point coordinates are configured according to the rendering color distribution label at the first moment to obtain K starting point coordinate RGB feature values, where K is an integer and K≥5; the K starting point coordinate RGB feature values are synchronously grown to obtain the rendering color area division result at the first moment; the rendering color distribution labels at the second moment are respectively subjected to neighborhood area growth until the rendering color distribution labels at the Nth moment to obtain the rendering color area division result at the second moment until the rendering color area division result at the Nth moment.
[0030] Specifically, first, in the rendering color distribution label at each moment, at least 5 starting point coordinates are selected, and the RGB color feature values corresponding to the starting point coordinates are recorded. The starting point coordinates are used to determine the seed point for the neighborhood region growth. Then, starting from each starting point coordinate, based on color similarity and spatial proximity, synchronous region expansion is performed, that is, the growth process of all starting points is processed simultaneously to improve efficiency and consistency, and then a color region division result is generated. The color region division result represents multiple continuous color regions in the rendering color distribution label at the same moment. Finally, the above-mentioned neighborhood region growth operation is repeated for the rendering color distribution labels at multiple moments to obtain the rendering color region division result at the first moment, the rendering color region division result at the second moment, and the rendering color region division result at the Nth moment.
[0031] The neighborhood region growing in the above steps improves the accuracy of color region recognition, and can identify and divide spatially continuous regions with similar colors, ensuring clear boundaries between regions of different colors, which is convenient for subsequent processing and analysis.
[0032] In some implementations, configuring the starting point coordinates according to the rendering color distribution label at the first moment to obtain K starting point coordinate RGB feature values includes: Rendering the color distribution label at the first moment performs random distribution of K coordinates to obtain K coordinate assignment results; calculating the distance variance of the K coordinate assignment results and setting it as a first distribution quality parameter; calculating the ratio of the area of a figure enclosed by the first edge coordinate connection line of the K coordinate assignment results to the area of a figure enclosed by the second edge coordinate connection line of the color distribution label rendered at the first moment and setting it as a second distribution quality parameter; when the first distribution quality parameter is less than or equal to the first distribution quality parameter threshold and the second distribution quality parameter is greater than or equal to the second distribution quality parameter threshold, generating the K starting point coordinate RGB feature values according to the K coordinate assignment results.
[0033] Specifically, first, K coordinates are randomly selected on the rendering color distribution label at the first moment to obtain initial K coordinate assignment results; then, the distance variance between the coordinates of the K coordinate assignment results is calculated as the first distribution quality parameter.
[0034] Exemplarily, the first distribution quality parameter is calculated based on the following formula: ; Among them, d ij is the coordinate p i and p j The distance between is the average distance, and K is the number of coordinate assignment results.
[0035] Specifically, the area of a polygon enclosed by the edge coordinate lines of the K coordinates is calculated, and the ratio of the polygon area to the area of a figure enclosed by the edge coordinate lines of the color distribution label rendered at the first moment is calculated as the second distribution quality parameter.
[0036] Specifically, a first distribution quality parameter threshold and a second distribution quality parameter threshold are set. When the first distribution quality parameter is less than or equal to the first distribution quality parameter threshold, and the second distribution quality parameter is greater than or equal to the second distribution quality parameter threshold, the distribution is considered to be reasonable. In other words, when the first distribution quality parameter is less than or equal to the first distribution quality parameter threshold, the K coordinate assignment results can be considered to be evenly distributed; when the second distribution quality parameter is greater than or equal to the second distribution quality parameter threshold, the coverage range of the K coordinate assignment results can be considered to be complete. When the above threshold constraints are all met, it can be considered that the distribution of the K coordinate assignment results meets both the uniformity and coverage requirements.
[0037] Through the above steps, the reasonable distribution of the starting point coordinates can be ensured, thereby providing an effective starting point configuration for the subsequent color area division and improving the accuracy of the neighborhood area growth.
[0038] In some implementations, synchronously growing the RGB feature values of the K starting point coordinates to obtain the rendering color area division result at the first moment includes: Extract K groups of adjacent coordinate RGB eigenvalues of the K starting point coordinate RGB eigenvalues respectively; traverse the Euclidean distances of the first group of adjacent coordinate RGB eigenvalues of the K groups of adjacent coordinate RGB eigenvalues and the first group of RGB eigenvalues of the first starting point coordinate RGB eigenvalues of the K starting point coordinate RGB eigenvalues; merge the adjacent coordinates in the Euclidean distances of the first group of RGB eigenvalues that are less than or equal to the Euclidean distance threshold with the first starting point coordinate RGB eigenvalue to obtain a growth area of the first starting point coordinate RGB eigenvalue; until the Euclidean distances of the Kth group of adjacent coordinate RGB eigenvalues of the K groups of adjacent coordinate RGB eigenvalues and the Kth starting point coordinate RGB eigenvalues of the K starting point coordinate RGB eigenvalues are traversed; merge the adjacent coordinates in the Euclidean distances of the Kth group of RGB eigenvalues that are less than or equal to the Euclidean distance threshold with the Kth starting point coordinate RGB eigenvalue to obtain a growth area of the Kth starting point coordinate RGB eigenvalue; continue to grow the neighborhood area based on the first starting point coordinate RGB eigenvalue growth area until the Kth starting point coordinate RGB eigenvalue growth area, until all coordinate traversal is completed, and obtain the rendering color area division result at the first moment.
[0039] Specifically, first, for each starting point coordinate, the RGB feature values of its adjacent coordinates are extracted to form K groups of adjacent coordinate RGB feature values. Then, for each group of adjacent coordinate RGB feature values, the Euclidean distance with the corresponding starting point coordinate RGB feature value is calculated.
[0040] Exemplarily, the Euclidean distance is: ; Specifically, (r 1 ,g 1 ,b 1 ) and (r 2 ,g 2 ,b 2 ) represent the RGB values of two adjacent coordinates respectively.
[0041] Specifically, based on a Euclidean distance threshold, adjacent coordinates whose Euclidean distance is less than or equal to the Euclidean distance threshold are merged with the starting point coordinates to form a growth region, wherein the Euclidean distance threshold is determined based on the RGB mapping space of the target additive material, that is, the color value range used by the additive material corresponding to the target color.
[0042] Specifically, traverse and compare the RGB eigenvalues of K starting point coordinates with K groups of adjacent coordinate RGB eigenvalues, and expand the growth area of the K starting point coordinates until all adjacent coordinates are traversed, obtain the Kth starting point coordinate RGB eigenvalue growth area, and add K starting point coordinate RGB eigenvalue growth areas, wherein the K starting point coordinate RGB eigenvalue growth areas represent a layer of growth results of the K starting point coordinates, including the first starting point coordinate RGB eigenvalue growth area to the Kth starting point coordinate RGB eigenvalue growth area.
[0043] Specifically, the RGB eigenvalue growth area from the first starting point coordinate to the RGB eigenvalue growth area from the Kth starting point coordinate is used as a new growth starting point set, and adjacent coordinates are extracted and distances are calculated for the newly added coordinates in the area. The growth process is iterated, and when all possible coordinates are traversed and judged, the complete first-moment rendering color area division result is obtained.
[0044] The above division process realizes the accurate division of color regions through strict distance calculation and fusion conditions. In addition, the measurement of synchronous growth and parallel calculation also improves the processing efficiency, which is suitable for real-time processing of complex models.
[0045] Furthermore, the method further includes: when the first distribution quality parameter is greater than the first distribution quality parameter threshold, or / and the second distribution quality parameter is greater than or equal to a second distribution quality parameter threshold, updating the K coordinate assignment results.
[0046] Specifically, if the first distribution quality parameter is greater than the first distribution quality parameter threshold, the second distribution quality parameter is greater than or equal to the second distribution quality parameter threshold, any one of the two conditions is met or both are met, then it can be considered that the K coordinate assignment results do not meet the uniformity and coverage requirements of the starting point coordinates, and the K coordinate assignment results are updated accordingly until the first distribution quality parameter is less than or equal to the first distribution quality parameter threshold, and the second distribution quality parameter is greater than or equal to the second distribution quality parameter threshold.
[0047] The multi-color print head collaborative control optimization is performed according to the rendering color area division result at the first moment, the rendering color area division result at the second moment, and the rendering color area division result at the Nth moment to obtain a multi-color slicing control solution.
[0048] Specifically, the color area division results rendered at the first moment, the color area division results rendered at the second moment, and the color area division results rendered at the Nth moment are used as optimization objects for the collaborative control optimization of the multi-color print head, and a decision is made to obtain the multi-color slicing control scheme. In other words, the neighborhood area generated by each division in the color area division results rendered at the first moment, the color area division results rendered at the second moment, and the color area division results rendered at the Nth moment is an optimization unit in the collaborative control optimization of the multi-color print head, and the optimization unit is indivisible.
[0049] In some embodiments, the multi-color print head collaborative control optimization is performed according to the rendering color area division result at the first moment, the rendering color area division result at the second moment, and the rendering color area division result at the Nth moment to obtain a multi-color slicing control solution, including: According to the rendering color area division result at the first moment, the first area is extracted, wherein the first area has a volume identifier, a color identifier and a moment step identifier; the print head material color of the first area is configured according to the color identifier, and the print head material usage of the first area is configured according to the volume identifier; the material supply speed of the first area is configured according to the print head material usage of the first area and the moment step identifier; the printing control scheme for the first area at the first moment is configured according to the print head material color of the first area, the print head material color of the first area and the material supply speed of the first area, and is added to the rendering color area division result at the first moment.
[0050] Specifically, the first area is the neighborhood area closest to the printing starting point in the rendering color area division result at the first moment, and the first area is associated with a volume identifier, a color identifier and a moment step identifier, wherein the volume identifier represents the additive volume required for the area; the color identifier is used to limit the additive color corresponding to the area; and the moment step corresponds to the estimated additive operation duration of the area.
[0051] Specifically, according to the color identification, the corresponding print head material color is selected, and at the same time, according to the volume identification, the required material dosage (such as n cubic centimeters) is determined; then, according to the material dosage and time step identification, the material supply speed is calculated and configured to ensure the continuity and accuracy of the printing process.
[0052] Exemplarily, first, the wire diameter of the material and the shrinkage rate of the material are measured or obtained; then, based on the historical usage record of the material, the flow calibration coefficient of the material is determined; then, according to the shrinkage rate of the material and the volume of the printing area, the required volume flow rate is calculated: ; Where Q is the volume flow rate; V is the material volume determined based on the volume identification; t is time step; μ is the shrinkage rate of the material.
[0053] Furthermore, the required regional material supply speed is calculated based on the material wire diameter and flow calibration coefficient: ; Where v is the regional material supply speed, d is the material line diameter, and b is the flow calibration coefficient.
[0054] Specifically, the material color of the first area print head, the material color of the first area print head and the material supply speed of the first area are output as the printing control scheme of the first area at the first moment, which is added to the rendering color area division result at the first moment, and then the above process is repeated to obtain the printing control schemes of multiple areas as the final multi-color slicing control scheme.
[0055] Additive manufacturing printing control is performed according to the multi-color slicing control scheme.
[0056] The method for synchronously controlling printing of multi-color slices in additive manufacturing provided by the embodiment of the present invention has at least the following technical effects: The additive manufacturing 3D model is selected through the user end, wherein the additive manufacturing 3D model includes a rendering color distribution label and an additive manufacturing moment distribution label; based on the additive manufacturing moment distribution label, the rendering color distribution label is time-sequentially segmented to obtain the first moment rendering color distribution label, the second moment rendering color distribution label, and the Nth moment rendering color distribution label; the neighborhood region growth is performed on the first moment rendering color distribution label, the second moment rendering color distribution label, and the Nth moment rendering color distribution label, respectively, to obtain the first moment rendering color region division result, the second moment rendering color region division result, and the Nth moment rendering color region division result; according to the first moment rendering color region division result, the second moment rendering color region division result, and the Nth moment rendering color region division result, the multi-color print head collaborative control optimization is performed to obtain the multi-color slicing control scheme; the additive manufacturing printing control is performed according to the multi-color slicing control scheme. Thus, the technical effect of improving the multi-color printing accuracy and improving the printing consistency is achieved.
[0057] Embodiment 2: like Figure 2 As shown, based on the same inventive concept as the method for synchronously controlling printing of multi-color slices for additive manufacturing provided in Embodiment 1, an embodiment of the present invention also provides a system for synchronously controlling printing of multi-color slices for additive manufacturing, including: The model selection module 11 is used to select an additive manufacturing 3D model through a user terminal, wherein the additive manufacturing 3D model includes a rendering color distribution label and an additive manufacturing time distribution label.
[0058] The time segmentation module 12 is used to perform time segmentation on the rendering color distribution label based on the additive manufacturing time distribution label to obtain a first moment rendering color distribution label, a second moment rendering color distribution label, and so on until an Nth moment rendering color distribution label.
[0059] The region growing processing module 13 is used to perform neighborhood region growing on the color distribution labels rendered at the first moment, the color distribution labels rendered at the second moment, and the color distribution labels rendered at the Nth moment, respectively, to obtain the color region division result rendered at the first moment, the color region division result rendered at the second moment, and the color region division result rendered at the Nth moment.
[0060] The collaborative control optimization module 14 is used to perform collaborative control optimization of the multi-color print head according to the rendering color area division result at the first moment, the rendering color area division result at the second moment, and the rendering color area division result at the Nth moment to obtain a multi-color slicing control solution.
[0061] The printing execution module 15 is used to perform additive manufacturing printing control according to the multi-color slicing control scheme.
[0062] The time segmentation module 12 includes: The time label extraction unit is used to obtain a first time distribution label, a second time distribution label, and finally an Nth time distribution label according to the additive manufacturing time distribution label.
[0063] The color matching unit is used to perform same-coordinate color matching on the rendering color distribution label according to the first moment distribution label to obtain the rendering color distribution label at the first moment.
[0064] The color matching unit is used to perform same-coordinate color matching on the rendering color distribution label according to the second moment distribution label to obtain the rendering color distribution label at the second moment.
[0065] The color matching unit is used to perform same-coordinate color matching on the rendering color distribution label according to the distribution label at the Nth moment to obtain the rendering color distribution label at the Nth moment.
[0066] In some embodiments, the region growing processing module 13 includes: The starting point coordinate configuration unit is used to configure the starting point coordinate according to the rendering color distribution label at the first moment, and obtain K starting point coordinate RGB feature values, where K is an integer and K≥5.
[0067] The synchronous growth unit is used to synchronously grow the RGB feature values of the K starting point coordinates to obtain the rendering color area division result at the first moment.
[0068] The neighborhood region growing unit is used to perform neighborhood region growing on the color distribution labels rendered at the second moment until the color distribution labels rendered at the Nth moment, respectively, to obtain the color region division results rendered at the second moment until the color region division results rendered at the Nth moment.
[0069] In some implementations, the region growing processing module 13 includes: The adjacent coordinate extraction unit is used to respectively extract K groups of adjacent coordinate RGB feature values of the K starting point coordinate RGB feature values.
[0070] The Euclidean distance calculation unit is used to traverse the Euclidean distances between a first group of adjacent coordinate RGB feature values of the K groups of adjacent coordinate RGB feature values and a first group of RGB feature value of a first starting point coordinate RGB feature value of the K starting point coordinate RGB feature values.
[0071] The region fusion unit is used to fuse the adjacent coordinates whose Euclidean distances in the first group of RGB eigenvalues are less than or equal to the Euclidean distance threshold with the first starting point coordinate RGB eigenvalue to obtain a first starting point coordinate RGB eigenvalue growth region.
[0072] The loop traversal unit is used to traverse until the Euclidean distance between the Kth group of adjacent coordinate RGB feature values of the K groups of adjacent coordinate RGB feature values and the Kth group of RGB feature values of the K starting point coordinate RGB feature values is traversed.
[0073] The final region fusion unit is used to fuse the adjacent coordinates in the Kth group of RGB eigenvalue Euclidean distances that are less than or equal to the Euclidean distance threshold with the Kth starting point coordinate RGB eigenvalue to obtain the Kth starting point coordinate RGB eigenvalue growth region.
[0074] The neighborhood region growing unit is used to continue the neighborhood region growing based on the first starting point coordinate RGB feature value growing region until the Kth starting point coordinate RGB feature value growing region, until all coordinate traversal is completed, and obtain the rendering color region division result at the first moment.
[0075] In some implementations, the region growing processing module 13 includes: The coordinate initialization unit is used to render the color distribution label at the first moment to perform K coordinate random distribution and obtain K coordinate assignment results.
[0076] The distance variance calculation unit is used to calculate the distance variance of the K coordinate assignment results and set it as the first distribution quality parameter.
[0077] The area ratio calculation unit is used to calculate the ratio of the area of the figure enclosed by the first edge coordinate connection line of the K coordinate assignment results to the area of the figure enclosed by the second edge coordinate connection line of the color distribution label rendered at the first moment, and set it as the second distribution quality parameter.
[0078] A quality parameter evaluation unit is used to generate the K starting point coordinate RGB feature values according to the K coordinate assignment results when the first distribution quality parameter is less than or equal to a first distribution quality parameter threshold and the second distribution quality parameter is greater than or equal to a second distribution quality parameter threshold.
[0079] In some implementations, the region growing processing module 13 further includes: The assignment constraint updating unit is used to update the K coordinate assignment results when the first distribution quality parameter is greater than the first distribution quality parameter threshold, or / and the second distribution quality parameter is greater than or equal to the second distribution quality parameter threshold.
[0080] In some embodiments, the collaborative control optimization module 14 includes: The region extraction unit is used to extract a first region according to the color region division result of the rendering at the first moment, wherein the first region has a volume identifier, a color identifier and a moment step identifier.
[0081] The material configuration unit is used to configure the color of the print head material in the first area according to the color identifier, and to configure the amount of the print head material in the first area according to the volume identifier.
[0082] The speed configuration unit is used to configure the material supply speed of the first area according to the material consumption of the print head in the first area and the time step identifier.
[0083] The printing control scheme unit is used to configure the printing control scheme for the first area at the first moment according to the material color of the print head in the first area, the material color of the print head in the first area and the material supply speed in the first area, and add the rendering color area division result at the first moment.
[0084] Embodiment three: See also Figure 3 , Figure 3 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 3 As shown, an embodiment of the present invention provides an electronic device 500, including a memory 510, a processor 520, and a first computer program 511 stored in the memory 510 and executable on the processor 520. When the processor 520 executes the first computer program 511, the following steps are implemented: selecting an additive manufacturing 3D model through a user terminal, wherein the additive manufacturing 3D model includes a rendering color distribution label and an additive manufacturing moment distribution label; performing time-series segmentation on the rendering color distribution label based on the additive manufacturing moment distribution label to obtain a first moment rendering color distribution label, a second moment rendering color distribution label, and a Nth moment rendering color distribution label; performing neighborhood region growth on the first moment rendering color distribution label, the second moment rendering color distribution label, and the Nth moment rendering color distribution label, respectively, to obtain a first moment rendering color region division result, a second moment rendering color region division result, and a Nth moment rendering color region division result; performing multi-color print head collaborative control optimization according to the first moment rendering color region division result, the second moment rendering color region division result, and the Nth moment rendering color region division result to obtain a multi-color slicing control scheme; and performing additive manufacturing printing control according to the multi-color slicing control scheme.
[0085] Embodiment 4: See also Figure 4 , Figure 4 A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. Figure 4As shown, this embodiment provides a computer-readable storage medium 600, on which a second computer program 611 is stored. When the second computer program 611 is executed by a processor, the following steps are implemented: selecting an additive manufacturing 3D model through a user terminal, wherein the additive manufacturing 3D model includes a rendering color distribution label and an additive manufacturing moment distribution label; performing time-series segmentation on the rendering color distribution label based on the additive manufacturing moment distribution label to obtain a first moment rendering color distribution label, a second moment rendering color distribution label, and an Nth moment rendering color distribution label; performing neighborhood region growth on the first moment rendering color distribution label, the second moment rendering color distribution label, and the Nth moment rendering color distribution label, respectively, to obtain a first moment rendering color region division result, a second moment rendering color region division result, and an Nth moment rendering color region division result; performing multi-color print head collaborative control optimization according to the first moment rendering color region division result, the second moment rendering color region division result, and the Nth moment rendering color region division result to obtain a multi-color slicing control scheme; and performing additive manufacturing printing control according to the multi-color slicing control scheme.
[0086] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0087] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0088] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0089] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0091] Although preferred embodiments of the present invention have been described, additional changes and modifications may occur to these embodiments once those skilled in the art understand the basic inventive concepts.
[0092] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of the present invention and its equivalent technologies, the present invention is also intended to include these changes and variations.
Claims
1. A method for synchronously controlling printing of multi-color slices for additive manufacturing, characterized in that: include: Selecting an additive manufacturing 3D model through a user terminal, wherein the additive manufacturing 3D model includes a rendering color distribution label and an additive manufacturing time distribution label; Based on the additive manufacturing time distribution label, the rendering color distribution label is time-series segmented to obtain a first time rendering color distribution label, a second time rendering color distribution label, and so on until an Nth time rendering color distribution label; Performing neighborhood region growth on the rendering color distribution label at the first moment, the rendering color distribution label at the second moment, and the rendering color distribution label at the Nth moment, respectively, to obtain a rendering color region division result at the first moment, a rendering color region division result at the second moment, and a rendering color region division result at the Nth moment; Perform multi-color print head collaborative control optimization according to the rendering color area division result at the first moment, the rendering color area division result at the second moment, and the rendering color area division result at the Nth moment to obtain a multi-color slicing control solution; Additive manufacturing printing control is performed according to the multi-color slicing control scheme.
2. The method according to claim 1, characterized in that The rendering color distribution label is time-sequentially segmented based on the additive manufacturing time distribution label to obtain a first time rendering color distribution label, a second time rendering color distribution label, and finally an Nth time rendering color distribution label, including: According to the additive manufacturing time distribution label, a first time distribution label, a second time distribution label, and finally an Nth time distribution label are obtained; According to the first moment distribution label, performing same-coordinate color matching on the rendering color distribution label to obtain the first moment rendering color distribution label; According to the distribution label at the second moment, performing same-coordinate color matching on the rendering color distribution label to obtain the rendering color distribution label at the second moment; Until the rendering color distribution label at the Nth moment is matched with the color of the same coordinate according to the distribution label at the Nth moment, the rendering color distribution label at the Nth moment is obtained.
3. The method according to claim 2, characterized in that Performing neighborhood region growth on the first moment rendering color distribution label, the second moment rendering color distribution label, and the Nth moment rendering color distribution label, respectively, to obtain the first moment rendering color region division result, the second moment rendering color region division result, and the Nth moment rendering color region division result, including: Configure the starting point coordinates according to the color distribution label rendered at the first moment, and obtain K starting point coordinate RGB feature values, where K is an integer, K≥5; Synchronously growing the RGB feature values of the K starting point coordinates to obtain a rendering color area division result at the first moment; Neighborhood region growing is performed on the rendering color distribution labels at the second moment until the rendering color distribution labels at the Nth moment respectively, to obtain the rendering color region division results at the second moment until the rendering color region division results at the Nth moment.
4. The method according to claim 3, characterized in that Synchronously growing the RGB feature values of the K starting point coordinates to obtain the rendering color area division result at the first moment, including: Extract K groups of adjacent coordinate RGB feature values of the K starting point coordinate RGB feature values respectively; Traversing the Euclidean distances between a first group of adjacent coordinate RGB feature values of the K groups of adjacent coordinate RGB feature values and a first group of RGB feature values of a first starting point coordinate RGB feature value of the K starting point coordinate RGB feature values; Merge the adjacent coordinates whose Euclidean distances in the first group of RGB eigenvalues are less than or equal to the Euclidean distance threshold with the first starting point coordinate RGB eigenvalue to obtain a first starting point coordinate RGB eigenvalue growth region; Until the Euclidean distance between the Kth group of RGB feature values of the Kth adjacent coordinate RGB feature values and the Kth group of RGB feature values of the K starting point coordinate RGB feature values is traversed; Merge the adjacent coordinates whose Euclidean distances in the Kth group of RGB eigenvalues are less than or equal to the Euclidean distance threshold with the RGB eigenvalues of the Kth starting point coordinate to obtain a growth region of the RGB eigenvalues of the Kth starting point coordinate; The neighborhood region growth is continued based on the first starting point coordinate RGB eigenvalue growth region until the Kth starting point coordinate RGB eigenvalue growth region, until all coordinate traversal is completed, and the rendering color region division result at the first moment is obtained.
5. The method according to claim 3, characterized in that The starting point coordinates are configured according to the color distribution label rendered at the first moment to obtain K starting point coordinate RGB feature values, including: Rendering the color distribution label at the first moment to perform random distribution of K coordinates to obtain K coordinate assignment results; Calculate the distance variance of the K coordinate assignment results and set it as the first distribution quality parameter; Calculate the ratio of the area of the figure enclosed by the first edge coordinates of the K coordinate assignment results to the area of the figure enclosed by the second edge coordinates of the color distribution label rendered at the first moment, and set it as the second distribution quality parameter; When the first distribution quality parameter is less than or equal to a first distribution quality parameter threshold, and the second distribution quality parameter is greater than or equal to a second distribution quality parameter threshold, the K starting point coordinate RGB feature values are generated according to the K coordinate assignment results.
6. The method according to claim 5, characterized in that Also includes: When the first distribution quality parameter is greater than the first distribution quality parameter threshold, or / and the second distribution quality parameter is greater than or equal to the second distribution quality parameter threshold, the K coordinate assignment results are updated.
7. The method according to claim 1, characterized in that The multi-color print head collaborative control optimization is performed according to the rendering color area division result at the first moment, the rendering color area division result at the second moment, and the rendering color area division result at the Nth moment to obtain a multi-color slicing control scheme, including: Extracting a first region according to the rendering color region division result at the first moment, wherein the first region has a volume identifier, a color identifier, and a moment step identifier; Configure the color of the print head material in the first area according to the color identifier, and configure the amount of the print head material in the first area according to the volume identifier; According to the material usage of the print head in the first area and the time step identifier, configuring the material supply speed in the first area; A printing control scheme for the first area at the first moment is configured according to the material color of the print head in the first area, the material color of the print head in the first area and the material supply speed in the first area, and a rendering color area division result at the first moment is added.
8. A multi-color slice synchronous control printing system for additive manufacturing, characterized in that: The system is used to execute the method for synchronously controlling printing of multi-color slices for additive manufacturing according to any one of claims 1 to 7, and the system comprises: A model selection module, the model selection module is used to select an additive manufacturing 3D model through a user terminal, wherein the additive manufacturing 3D model includes a rendering color distribution label and an additive manufacturing time distribution label; A time segmentation module, the time segmentation module is used to perform time segmentation on the rendering color distribution label based on the additive manufacturing time distribution label to obtain a first moment rendering color distribution label, a second moment rendering color distribution label, and so on until an Nth moment rendering color distribution label; A region growing processing module, the region growing processing module is used to perform neighborhood region growing on the first moment rendering color distribution label, the second moment rendering color distribution label, and the Nth moment rendering color distribution label, respectively, to obtain the first moment rendering color region division result, the second moment rendering color region division result, and the Nth moment rendering color region division result; A collaborative control optimization module, the collaborative control optimization module is used to perform collaborative control optimization of the multi-color print head according to the color area division result of the rendering at the first moment, the color area division result of the rendering at the second moment, and the color area division result of the rendering at the Nth moment, to obtain a multi-color slicing control solution; A printing execution module is used to perform additive manufacturing printing control according to the multi-color slicing control scheme.
9. An electronic device, characterized in that: include: Memory for storing computer software programs; A processor is used to read and execute the computer software program, thereby implementing the multi-color slice synchronous control printing method for additive manufacturing as described in claims 1-7.
10. A non-transitory computer-readable storage medium, characterized in that: The storage medium stores a computer software program, which, when executed by a processor, implements the method for synchronously controlling printing of multi-color slices for additive manufacturing as described in claims 1-7.
Citation Information
Patent Citations
Color image segmentation method integrating region growth and edge detection
CN104376551A
Method and device for 3D printer, computer equipment and storage medium
CN115214121A
Method and device for detecting port occupied by target tail fiber of optical splitter in multi-label scene
CN118840528A
System and method for high throughput three-dimensional printing
US20240173919A1