Data processing method, data processing device, storage medium and three-dimensional printing device
1. A data processing method, comprising:
receiving original layer data of a three-dimensional object to be printed;
determining a correction parameter of the original layer data;
correcting the position data of each pixel point of each slice layer in the original layer data according to the correction parameters to obtain corresponding target position data;
and determining the corrected layer data according to the target position data of each pixel point of each slice layer.
2. The method of claim 1, wherein the corrective parameters include a layer shift parameter;
the determining the correction parameters of the raw layer data comprises the following steps:
determining overlapping point errors corresponding to the position data of the pixel points of each sliced layer according to the printing result of the three-dimensional printing device;
and determining layer shift parameters corresponding to the position data of each pixel point of each sliced layer according to the overlapping point errors.
3. The method of claim 2, wherein the overlay error includes any one or more of the following:
the method comprises the following steps of printing head motion precision error, printing head motion feedback time delay and three-dimensional printing device mechanical vibration.
4. The method of claim 1, wherein the corrective parameter comprises an offset parameter;
the determining the correction parameters of the raw layer data comprises the following steps:
determining a conversion error corresponding to the position data of each pixel point of each slice layer according to the coordinate conversion relation and the coordinate conversion result of the original layer data;
and determining the offset parameter corresponding to the position data of each pixel point of each sliced layer according to the conversion error.
5. The method according to any one of claims 1 to 4, wherein the correction parameter corresponding to the position data of the pixel point is expressed in the form of one or more pixels.
6. The method according to any one of claims 1 to 4, wherein the correction parameter corresponding to the position data of the pixel point is expressed in a fractional form of the pixel;
before the correcting the position data of each pixel point of each slice layer in the original layer data according to the correction parameter to obtain the corresponding target position data, the method further includes:
and dividing the position area of each pixel point of each slice layer in the original layer data into a plurality of position areas according to the correction parameters.
7. A data processing apparatus, comprising:
the data receiving module is used for receiving the original layer data of the three-dimensional object to be printed;
the parameter determining module is used for determining the correction parameters of the original layer data;
the position correction module is used for correcting the position data of each pixel point of each slice layer in the original layer data according to the correction parameters so as to obtain corresponding target position data;
and the data determining module is used for determining the corrected layer data according to the target position data of each pixel point of each slice layer.
8. A data processing apparatus, comprising:
a memory, a processor, and a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-6.
9. A computer-readable storage medium, having stored thereon a computer program for execution by a processor to perform the method of any one of claims 1-6.
10. A three-dimensional printing apparatus, comprising: the printing system comprises a receiving unit, a printing controller and a printing unit, wherein the receiving unit is in communication connection with the printing unit and the printing controller;
the receiving unit is used for receiving corrected layer data, the corrected layer data is determined according to target position data of each pixel point of each slice layer, the target position data is obtained after correcting the position data of each pixel point of each slice layer in original layer data according to correction parameters, and the original layer data is original layer data of a three-dimensional object to be printed;
and the printing controller is used for controlling the printing unit to print the three-dimensional object according to the corrected layer data.
Background
The three-dimensional printing technology is a technology that a printer is connected with a computer by utilizing the principle of a common printer, raw materials are loaded into a machine body, and a blueprint on the computer is finally changed into a real object through the control of the computer. Three-dimensional printing is an additive manufacturing technology for manufacturing a three-dimensional object by adding materials layer by layer, and the core principle of the technology is as follows: "layered manufacturing, layer-by-layer stacking".
In the prior art, in the actual printing motion process of a printer, due to the influence of various factors, errors exist in multilayer printing, ink dots cannot be accurately ejected to the positions of theoretical pixel points, and the accuracy of three-dimensional printing is low.
Disclosure of Invention
The embodiment of the invention provides a data processing method and device, a storage medium and a three-dimensional printing device, and solves the technical problems that in the prior art, in the actual printing motion process of a printer, due to the influence of various factors, errors exist in multi-layer printing, ink dots cannot be accurately ejected to the positions of accurate pixel points, and further the accuracy of three-dimensional printing is low.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
receiving original layer data of a three-dimensional object to be printed;
determining a correction parameter of the original layer data;
correcting the position data of each pixel point of each slice layer in the original layer data according to the correction parameters to obtain corresponding target position data;
and determining the corrected layer data according to the target position data of each pixel point of each slice layer.
Further, the method as described above, the corrective parameters include a layer shift parameter;
the determining the correction parameters of the raw layer data comprises the following steps:
determining overlapping point errors corresponding to the position data of the pixel points of each sliced layer according to the printing result of the three-dimensional printing device;
and determining layer shift parameters corresponding to the position data of each pixel point of each sliced layer according to the overlapping point errors.
Further, in the method described above, the influencing factor of the overlay error includes any one or more of the following factors:
the method comprises the following steps of printing head motion precision error, printing head motion feedback time delay and three-dimensional printing device mechanical vibration.
Further, the method as described above, the corrective parameter comprises an offset parameter;
the determining the correction parameters of the raw layer data comprises the following steps:
determining a conversion error corresponding to the position data of each pixel point of each slice layer according to the coordinate conversion relation and the coordinate conversion result of the original layer data;
and determining the offset parameter corresponding to the position data of each pixel point of each sliced layer according to the conversion error.
Further, according to the method, the correction parameters corresponding to the position data of the pixel points are expressed in the form of one or more pixels.
Further, according to the method, the correction parameters corresponding to the position data of the pixel points are expressed in the form of the fraction of the pixel;
before the correcting the position data of each pixel point of each slice layer in the original layer data according to the correction parameter to obtain the corresponding target position data, the method further includes:
and dividing the position area of each pixel point of each slice layer in the original layer data into a plurality of position areas according to the correction parameters.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including:
the data receiving module is used for receiving the original layer data of the three-dimensional object to be printed;
the parameter determining module is used for determining the correction parameters of the original layer data;
the position correction module is used for correcting the position data of each pixel point of each slice layer in the original layer data according to the correction parameters so as to obtain corresponding target position data;
and the data determining module is used for determining the corrected layer data according to the target position data of each pixel point of each slice layer.
Further, in the apparatus described above, the correction parameter comprises a layer shift parameter;
a parameter determination module specifically configured to: determining overlapping point errors corresponding to the position data of the pixel points of each sliced layer according to the printing result of the three-dimensional printing device; and determining layer shift parameters corresponding to the position data of each pixel point of each sliced layer according to the overlapping point errors.
Further, in the above-described apparatus, the influence factor of the overlay error includes any one or more of the following factors:
the method comprises the following steps of printing head motion precision error, printing head motion feedback time delay and three-dimensional printing device mechanical vibration.
Further, the apparatus as described above, the correction parameter comprises an offset parameter;
a parameter determination module specifically configured to: determining a conversion error corresponding to the position data of each pixel point of each slice layer according to the coordinate conversion relation and the coordinate conversion result of the original layer data; and determining the offset parameter corresponding to the position data of each pixel point of each sliced layer according to the conversion error.
Further, according to the above-mentioned apparatus, the correction parameter corresponding to the position data of the pixel point is expressed in the form of one or more pixels.
Further, according to the above-mentioned apparatus, the correction parameter representation corresponding to the position data of the pixel point is represented in the form of a fraction of the pixel.
Further, in the above apparatus, the area dividing module is configured to divide the position area of each pixel point of each slice layer in the original layer data into a plurality of position areas according to a ratio according to the correction parameter before the position correction module corrects the position data of each pixel point of each slice layer in the original layer data according to the correction parameter to obtain the corresponding target position data.
In a third aspect, an embodiment of the present invention provides a data processing apparatus, including:
a memory, a processor, and a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method according to any one of the first aspect.
The embodiment of the invention provides a data processing method, a data processing device, a storage medium and a three-dimensional printing device, which receive original layer data of a three-dimensional object to be printed; determining a correction parameter of the original layer data; correcting the position data of each pixel point of each slice layer in the original layer data according to the correction parameters to obtain corresponding target position data; and determining the corrected layer data according to the target position data of each pixel point of each slice layer. Because the positions of all the pixel points of all the sliced layers are corrected, the ink points can be accurately sprayed to the positions of the theoretical pixel points, and the accuracy of three-dimensional printing is further improved.
It should be understood that what is described in the summary above is not intended to limit key or critical features of embodiments of the invention, nor is it intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is an application scenario diagram of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a data processing method according to another embodiment of the present invention;
FIG. 4a is a schematic diagram of original layer data and a corresponding printing layer of a three-dimensional object to be printed according to the present invention;
FIG. 4b is a schematic diagram of the corrected layer data and the printing layer corresponding to the original layer data of the three-dimensional object to be printed shown in FIG. 4 a;
FIG. 5a is a schematic diagram of raw layer data and a corresponding printing layer of another three-dimensional object to be printed according to the present invention;
FIG. 5b is a schematic diagram of the corrected layer data and the printing layer corresponding to the original layer data of the three-dimensional object to be printed shown in FIG. 5 a;
FIG. 6 is a flow chart of a data processing method according to yet another embodiment of the present invention;
FIG. 7a is a schematic diagram of an original layer data and a corresponding printing layer of another three-dimensional object to be printed according to the present invention;
FIG. 7b is a schematic diagram of the corrected layer data and the printing layer corresponding to the original layer data of the three-dimensional object to be printed shown in FIG. 7 a;
FIG. 8 is a block diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a data processing apparatus according to another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a three-dimensional printing apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a three-dimensional printing apparatus according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
For a clear understanding of the technical solution of the present invention, the prior art solution will be described in detail first.
In the prior art, in the actual printing motion process of the three-dimensional printer, due to the influence of one or more factors such as the motion error of a printing head, motion feedback delay, mechanical vibration and the like, a certain overlapping point error exists during multi-layer printing, namely, a pixel point printed at the same position of a later layer and a pixel point printed at the same position of a previous layer in theory can have deviation and is ejected to the position of a nearby pixel point. In addition, when the disc-type three-dimensional printer is adopted, because the storage modes of the current three-dimensional sliced layer data are rectangular coordinate storage modes, when the three-dimensional sliced layer data are applied to the disc-type three-dimensional printer, the positions of pixel points need to be converted from a rectangular coordinate system to a polar coordinate system through a conversion relation, but corresponding conversion errors can be generated, namely, ink points cannot be accurately sprayed to the positions of theoretical pixel points, so that the straight line formed by spraying can have the situations of saw-toothed shape or slight bending, or the edge of a printing layer can have the situations of saw-toothed shape or slight bending, and the like.
Therefore, multilayer printing in the prior art has errors, and ink dots cannot be accurately ejected to the positions of theoretical pixel points, so that the technical problem of low accuracy of three-dimensional printing is caused.
Aiming at the problems in the prior art, the inventor creatively discovers in research that the correction parameters of the original layer data can be determined in a targeted manner according to the reason of error formation, the position data of each pixel point of each sliced layer in the original layer data can be corrected according to the correction parameters to obtain corresponding target position data, and finally the corrected layer data is determined according to the target position data of each pixel point of each sliced layer, so that the corrected layer data is used for printing a three-dimensional object. The ink dots can be accurately sprayed to the positions of the theoretical pixel points, and therefore the accuracy of three-dimensional printing is improved.
The inventor proposes a technical scheme of the invention based on the creative discovery. An application scenario of the data processing method provided by the embodiment of the present invention is described below. As shown in fig. 1, the raw layer data 1 of the three-dimensional object to be printed may be stored in the data storage device, and the data processing apparatus 2 receives the raw layer data 1 of the three-dimensional object to be printed from the data storage device, where the raw layer data 1 of the three-dimensional object to be printed includes raw position data of each pixel point of each sliced layer of the three-dimensional object to be printed before printing. The data processing device 2 determines the correction parameters of the original layer data; correcting the position data of each pixel point of each slice layer in the original layer data according to the correction parameters to obtain corresponding target position data; and determining the corrected layer data 3 according to the target position data of each pixel point of each slice layer, and finally outputting the corrected layer data 3. So that the three-dimensional printing device prints the three-dimensional object according to the corrected layer data. Because the positions of all the pixel points of all the sliced layers are corrected, the ink points can be accurately sprayed to the positions of the theoretical pixel points, and the accuracy of three-dimensional printing is further improved.
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Example one
Fig. 2 is a flowchart of a data processing method according to an embodiment of the present invention, and as shown in fig. 2, an execution main body of the data processing method according to the embodiment is a data processing apparatus, and the data processing method according to the embodiment includes the following steps:
step 101, receiving raw layer data of a three-dimensional object to be printed.
In this embodiment, when there is a printing requirement, the raw layer data of the three-dimensional object to be printed may be generated, and the raw layer data may be stored in the data storage device. The data processing apparatus may communicate with the data storage device to obtain raw layer data of the three-dimensional object to be printed.
The original layer data of the three-dimensional object to be printed comprises position data of each pixel point of each slice layer, and the position data is original position data.
Step 102, determining the correction parameters of the original layer data.
In this embodiment, an influence factor causing an error in printing of the original layer data is first determined, and then a corresponding error type is determined according to the type of the influence factor, so as to determine a correction parameter of the original layer data according to the error type.
Illustratively, if the influence factor causing the printing error of the original layer data is any one or more of a printing head motion precision error, a motion feedback delay and mechanical vibration, which indicates that the error type is the dot overlapping error, the correction parameters of the original layer data including the layer shift parameters are determined according to the dot overlapping error.
Or if the influence factor causing the printing error of the raw layer data is that the raw layer data is applied to a specific three-dimensional printer, the positions of the pixels need to be converted from one coordinate system to another coordinate system through a conversion relation, for example, a rectangular coordinate system is converted to a polar coordinate system, and if the error type is the conversion error, the correction parameters of the raw layer data including the offset parameters are determined according to the conversion error.
It will be appreciated that both overlay errors and conversion errors may be present, and the correction parameters for determining the original layer data from the overlay errors and conversion errors, respectively, may include both layer shift parameters and offset parameters.
It is to be understood that the correction parameter may be a correction parameter for the position data of each pixel point of each sliced layer.
And 103, correcting the position data of each pixel point of each slice layer in the original layer data according to the correction parameters to obtain corresponding target position data.
Specifically, in this embodiment, since the correction parameter is a correction parameter for the position data of each pixel point in each slice layer, after the position data of each pixel point of each slice layer in the original layer data is obtained, the position data of each pixel point in each slice layer is corrected according to the correction parameter, and the corrected position data of each pixel point is corresponding target position data.
And step 104, determining the corrected layer data according to the target position data of each pixel point of each slice layer.
In this embodiment, the target position data of all the pixel points of each slice layer is obtained to form corresponding corrected slice layer data, and all the corrected slice layer data are formed into corrected layer data.
In the data processing method provided by the embodiment, the original layer data of the three-dimensional object to be printed is received; determining a correction parameter of the original layer data; correcting the position data of each pixel point of each slice layer in the original layer data according to the correction parameters to obtain corresponding target position data; and determining the corrected layer data according to the target position data of each pixel point of each slice layer. Because the positions of all the pixel points of all the sliced layers are corrected, the ink points can be accurately sprayed to the positions of the theoretical pixel points, and the accuracy of three-dimensional printing is further improved.
Optionally, in some embodiments, the correction parameter corresponding to the position data of the pixel point is represented in the form of one or more pixels.
Specifically, there is a corresponding correction parameter for the position of each pixel, and the correction parameter may be represented in the form of one or more pixels, for example, the position of the pixel may be shifted to the left or to the right by one or more pixels, so as to obtain the corrected position of the pixel.
Optionally, in other embodiments, the correction parameter corresponding to the position data of the pixel point is expressed in a fractional form of the pixel.
Correspondingly, before the position data of each pixel point of each slice layer in the original layer data is corrected according to the correction parameters to obtain the corresponding target position data, the method further comprises the following steps:
and dividing the position area of each pixel point of each slice layer in the original layer data into a plurality of position areas according to the correction parameters.
In particular, it is difficult for the data processing device to determine the position in fractional form of a pixel. For example, it is difficult to determine the position of a pixel shifted left or right by one-half or one-quarter or four-thirds of a pixel. Therefore, before the position data of each pixel point of each slice layer in the original layer data is corrected according to the correction parameters to obtain the corresponding target position data, the data processing device divides the position area of each pixel point of each slice layer in the original layer data into a plurality of position areas according to the correction parameters, and more selectable positions are provided for each pixel point. For example, when the correction parameter is one-half pixel, the position area of each pixel point in the original layer data may be proportionally divided into 4 positions, the size of which is one-fourth of the original position area of the pixel point, so that when the target position of each pixel point in the original layer data is determined, each pixel point may have more selectable positions to generate the corrected layer data.
Example two
Fig. 3 is a flowchart of a data processing method according to another embodiment of the present invention, and as shown in fig. 3, the data processing method according to this embodiment further refines step 102 based on the embodiment shown in fig. 2, where the correction parameter includes a layer shift parameter, and an existing error is a stitch error. The data processing method provided by this embodiment includes the following steps:
step 201, receiving raw layer data of a three-dimensional object to be printed.
For example, in this embodiment, the received raw layer data of the three-dimensional object to be printed may refer to fig. 4a or fig. 5 a.
In fig. 4a, the original layer data 41 and the corresponding print layer are shown as 41'. The ink dot positions corresponding to the partial pixel points printed at the same position in the previous layer should be shifted to the right or left by one pixel position in the theory of the next layer.
Alternatively, as shown in fig. 5a, the data 51 including the original layer and the corresponding print layer is 51'. The ink dot positions corresponding to the partial pixel points printed at the same position in the previous layer should be shifted to the right or left by half a pixel position in the next layer.
Step 202, determining a superposition error corresponding to the position data of each pixel point of each sliced layer according to the printing result of the three-dimensional printing device.
And step 203, determining layer shift parameters corresponding to the position data of each pixel point of each sliced layer according to the overlapping point errors.
Optionally, in this embodiment, multiple printing results of the three-dimensional printing device are obtained, and for each printing result, the printing results of two adjacent printing layers are compared, so as to determine the overlapping point error of the position data of each pixel point in the two adjacent printing layers. For example, a superposition error between the position data of each pixel point in the previous printing layer and the position data of each pixel point in the current printing layer is determined, and then the superposition error is determined as a superposition error corresponding to the position data of each pixel point in the current slice layer. And determining the overlapping point error corresponding to the position data of each pixel point of each sliced layer in the same way. And then, calculating the average value of the overlapped point errors corresponding to the position data of each pixel point of each sliced layer by the multi-time printing results. And determining the average value of the overlapping point errors corresponding to the position data of each pixel point of each sliced layer as a corresponding layer shift parameter.
Or optionally, in this embodiment, a last printing result of the three-dimensional printing device is obtained, a dot overlapping error of the position data of each pixel point of each slice layer is determined for the last printing result, and a dot overlapping error corresponding to the position data of each pixel point of each slice layer is determined as a corresponding layer shift parameter.
Specifically, the way of determining the overlapping point error of the position data of each pixel point of each sliced layer for the last printing result is similar to the overlapping point error of the position data of each pixel point of each sliced layer for each printing result, and is not repeated here.
And 204, correcting the position data of each pixel point of each slice layer in the original layer data according to the layer shift parameters to obtain corresponding target position data.
And step 205, determining the corrected layer data according to the target position data of each pixel point of each slice layer.
In this embodiment, the position data of each pixel point of each slice layer in the original layer data is corrected according to the layer shift parameter to obtain corresponding target position data, and after the corrected layer data is determined according to the target position data of each pixel point of each slice layer, the ink dots theoretically falling at the same position in adjacent layers actually fall at the same position, so that the overlap point error is compensated in advance.
Wherein, the influencing factors of the overlapping point error comprise any one or more of the following factors:
print head motion accuracy errors, motion feedback delays, and mechanical vibrations.
Illustratively, as shown in fig. 4b, the target position of each pixel point in the original layer data 41 is determined according to the layer shift parameter, so as to obtain the corrected layer data 42. Compared with the original layer data 41, it can be seen that by determining the target position of each pixel point in the original layer data 41, the positions of some pixel points are shifted to the left by one pixel position, the positions of some pixel points are shifted to the right by one pixel position, and the positions of some pixel points are unchanged, that is, the overlapping point error generated during printing is compensated in advance. By the correction, the dots theoretically located at the same position of the adjacent layers in the printing layer 42' corresponding to the corrected layer data 42 actually fall at the same position.
It will be appreciated that when the overlay error in multi-layer printing is one pixel position as shown in fig. 4a, or two or more pixel positions due to one or more of the factors of print head motion error, motion feedback delay, mechanical vibration, etc., the corresponding layer shift parameter may also be expressed in one or more pixels.
Or exemplarily, as shown in fig. 5b, since the layer shift parameter is determined to be one-half pixel according to the average value of the overlay error, the position area of each pixel point in the original layer data 51 may be proportionally divided into 4 areas with the size of one-fourth of the original position area of the pixel point.
It is understood that, when the layer shift parameter is expressed in the form of a fraction of other pixels, such as one-third, one-fourth, etc., the position region of each pixel point in the original layer data 51 can be divided into a plurality of position regions according to the corresponding proportion according to the layer shift parameter.
After the intermediate data 52 providing more position areas is obtained, the target position of each pixel point is determined to obtain the corrected layer data 53, and compared with the original layer data 51, it can be seen that the position area of each pixel point in the original layer data 51 is divided into a plurality of position areas according to a proportion, and then the target position of each pixel point is determined, so that the overlapping point error generated during printing can be compensated in advance, and the ink points of the adjacent layers in the printing layer 53' corresponding to the corrected layer data 53 theoretically falling at the same position actually fall at the same position.
It should be noted that there are many ways to determine the target position of each pixel point, and the method is not limited to the selection shown in fig. 5b, as long as the method can achieve the effect that the ink dots, which theoretically fall at the same position, of the adjacent layers of the printing layer actually fall at the same position.
EXAMPLE III
Fig. 6 is a flowchart of a data processing method according to still another embodiment of the present invention, and as shown in fig. 6, the data processing method according to this embodiment further refines step 102 based on the embodiment shown in fig. 2, the correction parameter includes an offset parameter, and the existing error is a conversion error. The data processing method provided by the embodiment is subsequently applied to the disc type three-dimensional printing device. The data processing method provided by this embodiment includes the following steps:
step 301, receiving raw layer data of a three-dimensional object to be printed.
In this embodiment, the received original layer data storage mode of the three-dimensional object to be printed is a rectangular coordinate storage mode, and when the positions of the pixels need to be converted from a rectangular coordinate system to a polar coordinate system through a conversion relationship, a certain conversion error may be generated in the conversion process of the coordinate system, so that the corresponding ink dots on the printing layer cannot be accurately ejected to the theoretical pixel dot positions, and the edges of the printing layer may have jagged or slightly curved conditions. It is understood that the positions of the pixels may also be converted from the rectangular coordinate system to other specific coordinate systems by the conversion relationship.
For example, in this embodiment, reference may be made to fig. 7a when raw layer data of a three-dimensional object to be printed is received. FIG. 7a includes original layer data 71 and corresponding print layer of 71'
And 302, determining a conversion error corresponding to the position data of each pixel point of each slice layer according to the coordinate conversion relation and the coordinate conversion result of the original layer data.
Step 303, determining offset parameters corresponding to the position data of each pixel point of each sliced layer according to the conversion errors.
In this embodiment, since the coordinate conversion relationship of the raw layer data is converted from the rectangular coordinate system to the polar coordinate system, the conversion error corresponding to the position data of each pixel point of each slice layer in the raw layer data can be determined according to the printing result of converting the raw layer data from the rectangular coordinate system to the polar coordinate system, and the conversion error corresponding to the position data of each pixel point of each slice layer is determined as the corresponding offset parameter.
Illustratively, as shown in fig. 7a, the positions of some pixels in the original layer data 71 are shifted to the right by one-half pixel position, and the positions of some pixels are shifted to the left by one-half pixel position. Therefore, in the case of neglecting the overlay dot error, the dot positions corresponding to the partial pixel points in the printing layer 71' corresponding to the original layer data 71 are shifted to the right by one-half pixel position, and the dot positions corresponding to the partial pixel points are shifted to the left by one-half pixel position. Therefore, the offset parameter corresponding to the position data of each pixel point in the printing layer is a pixel position partially shifted to the left or shifted to the right by one half.
Therefore, before the position data of each pixel point of each slice layer in the original layer data is corrected according to the offset parameter to obtain the corresponding target position data, the position area of each pixel point of each slice layer in the original layer data is proportionally divided into a plurality of position areas according to the offset parameter.
For example, as shown in fig. 7b, since the offset parameter determined according to the conversion error is one-half pixel, the original location area of each pixel in the original layer data 71 may be proportionally divided into 4 areas with the size of one-fourth of the original location area of the pixel.
And 304, correcting the position data of each pixel point of each slice layer in the original layer data according to the offset parameters to obtain corresponding target position data.
And 305, determining the corrected layer data according to the target position data of each pixel point of each slice layer.
As shown in fig. 7b, after the intermediate data 72 providing more position areas is obtained, the target position of each pixel point is determined, and the corrected layer data 73 is obtained, and compared with the original layer data 71, it can be seen that the conversion error generated by coordinate system conversion is compensated by dividing the position area of each pixel point in the original layer data 71 into a plurality of position areas according to a proportion and then determining the target position of each pixel point, and the position of each ink point in the printing layer 73' corresponding to the corrected layer data 73 does not shift.
It should be noted that there are many ways to determine the target position of each pixel point, and the method is not limited to the selection shown in fig. 7b, as long as the method can achieve that the positions of the ink dots of the printing layer are not shifted and the edge of the printing layer is smooth.
It can be understood that, in this embodiment, data processing on the original layer data is performed under the condition that the overlay error is ignored, and in other embodiments that simultaneously consider the overlay error and the conversion error, when processing the original layer data, correction needs to be performed on the original layer data by combining the layer shift parameter and the offset parameter.
Example four
Fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention. As shown in fig. 8, the data processing apparatus 80 provided in the present embodiment includes: a data receiving module 81, a parameter determining module 82, a position correcting module 83, and a data determining module 84.
The data receiving module 81 is configured to receive raw layer data of a three-dimensional object to be printed. And a parameter determining module 82 for determining the correction parameters of the raw layer data. And the position correction module 83 is configured to correct the position data of each pixel point of each slice layer in the original layer data according to the correction parameter, so as to obtain corresponding target position data. And the data determining module 84 is configured to determine the corrected layer data according to the target position data of each pixel point of each slice layer.
The data receiving module may include an interface for communication connection between the data storage device and the data processing apparatus.
It is understood that the parameter determination module 82, the position correction module 83, and the data determination module 84 may be integrated as a correction unit.
The data processing apparatus provided in this embodiment may execute the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Optionally, the corrective parameters include a layer shift parameter.
Accordingly, the parameter determining module 82 is specifically configured to: determining overlapping point errors corresponding to the position data of the pixel points of each sliced layer according to the printing result of the three-dimensional printing device; and determining layer shift parameters corresponding to the position data of each pixel point of each sliced layer according to the overlapping point errors.
Wherein, the influencing factors of the overlapping point error comprise any one or more of the following factors:
the method comprises the following steps of printing head motion precision error, printing head motion feedback time delay and three-dimensional printing device mechanical vibration.
Or alternatively, the remediation parameter comprises an offset parameter.
Accordingly, the parameter determining module 82 is specifically configured to: determining a conversion error corresponding to the position data of each pixel point of each slice layer according to the coordinate conversion relation and the coordinate conversion result of the original layer data; and determining the offset parameter corresponding to the position data of each pixel point of each sliced layer according to the conversion error.
Optionally, in this embodiment, the correction parameter corresponding to the position data of the pixel point is represented in the form of one or more pixels.
Or optionally, in this embodiment, the correction parameter corresponding to the position data of the pixel point is represented in the form of a fraction of the pixel.
Correspondingly, the method further comprises the following steps: and the region dividing module is configured to divide the position region of each pixel point of each slice layer in the original layer data into a plurality of position regions according to a ratio according to the correction parameter before the position correction module 83 corrects the position data of each pixel point of each slice layer in the original layer data according to the correction parameter to obtain corresponding target position data.
The data processing apparatus provided in this embodiment may execute the technical solutions of the method embodiments shown in fig. 3 and fig. 6, and the implementation principles and technical effects are similar, which are not described herein again.
EXAMPLE five
Fig. 9 is a schematic structural diagram of a data processing apparatus according to another embodiment of the present invention, and as shown in fig. 9, a data processing apparatus 90 in the embodiment of the present application includes: a memory 91, a processor 92 and a computer program.
The computer program is stored in the memory 91 and configured to be executed by the processor 92 to implement the data processing method provided by the embodiment of the present application.
The related description may be understood by referring to the related description and effects corresponding to the steps in fig. 2, fig. 3, and fig. 6, and redundant description is not repeated here.
In the present embodiment, the memory 91 and the processor 92 are connected by a bus.
The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an electrically Erasable Read Only Memory (EEPROM), a Flash Memory (Flash Memory), and the like. The memory is also used for storing programs, and the processor executes the programs after receiving the execution instructions.
The processor may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. But may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be appreciated by those skilled in the art that the data processing apparatus of the present application comprises a memory for storing program instruction code and a processor for executing the program instruction code to implement the data processing method in the above embodiments. Embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
EXAMPLE six
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the data processing method proposed in any one of the above method embodiments.
EXAMPLE seven
Fig. 10 is a schematic structural diagram of a three-dimensional printing apparatus according to an embodiment of the present invention, and as shown in fig. 10, a three-dimensional printing apparatus 1000 according to an embodiment of the present invention includes: a receiving unit 1001, a print controller 1002, and a printing unit 1003, the receiving unit 1001 and the printing unit 1003 being communicatively connected with the print controller 1002.
The receiving unit 1001 is configured to receive corrected layer data, where the corrected layer data is determined according to target position data of each pixel point of each slice layer, the target position data is obtained by correcting position data of each pixel point of each slice layer in original layer data according to a correction parameter, and the original layer data is original layer data of a three-dimensional object to be printed;
and a printing controller 1002 configured to control the printing unit 1003 to print the three-dimensional object according to the corrected layer data.
The print controller 1002 may include, among other things, at least one processor that forms part of an embedded computing device, e.g., for controlling an additive manufacturing system.
In this embodiment, the corrected layer data may be the corrected layer data determined in any one of the embodiments in fig. 2, fig. 3, and fig. 6, and details are not repeated here.
Example eight
Fig. 11 is a schematic structural diagram of a three-dimensional printing apparatus according to another embodiment of the present invention, and as shown in fig. 11, a three-dimensional printing apparatus 1100 according to this embodiment further includes a memory 1004 in addition to the three-dimensional printing apparatus 1000 provided in fig. 10.
The memory 1004 may include volatile and/or nonvolatile memory, such as a non-transitory storage medium configured to store computer program code, for example, in the form of firmware. The firmware may include machine-readable instructions and/or executable code including instructions for at least one processor. The print controller 1002 is communicatively coupled to a printing unit 1003. The printing unit 1003 may eject printing material to generate a three-dimensional object. The printing unit 1003 includes printheads 103a, 103b, 103c, in other cases, the printing unit 1003 may include more, fewer, or additional components, and the printing unit 1003 may eject one or more materials.
Optionally, the three-dimensional printing device 1100 further comprises a printing platform 1005, and the printing controller 1002 controls the printheads 103a, 103b, 103c to eject material on the printing platform 1005, the material being layered one above the other to create the three-dimensional object 1006.
It should be noted that the present embodiment does not limit the arrangement and shape of the unit modules and components shown in fig. 11, and the precise arrangement and shape of each component will vary depending on the production technique to be implemented and the specific structure of the printing apparatus.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:基于β-tcp材料的义眼台制备方法