3D printing Z-axis fine compensation method, device, electronic device and storage medium

By reducing the grayscale value of the difference range of the current layer and adjacent layer slice images in photocuring 3D printing, the light transmission volume is controlled in partition, and the secondary thickness problem caused by oblique irradiation of ultraviolet light is solved, and the model printing accuracy and assembly accuracy of assembly parts are improved.

CN114953440BActive Publication Date: 2025-08-08SHENZHEN CBD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210807185.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-09
Publication Date
2025-08-08
Estimated Expiration
2042-07-09

AI Technical Summary

Technical Problem

In the existing photocuring 3D printing technology, oblique irradiation of ultraviolet light causes secondary thickness to be generated on the current layer and the previous layer surface, affecting the model printing accuracy, and especially in assembly 3D model parts.

Method used

By reducing the pixel grayscale value within the difference range of the slice image of the current layer and adjacent layers, the light transmission amount is controlled, and the generation of secondary thickness is reduced. The 3D printing Z-axis fine compensation method is adopted, including traversing the triangle grid of the 3D model, slicing layering, obtaining the grayscale value of the slice image, comparing the difference area and reducing the grayscale value, and storing the processed slice image data.

Benefits of technology

The secondary thickness generation exceeds the layer thickness of the current layer and the previous layer surface is reduced, and the model printing accuracy is improved, especially in the lower edge of the model hole and in assembly parts, which is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114953440B_ABST
    Figure CN114953440B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of 3D printing technology and provides a 3D printing Z-axis fine compensation method, device, electronic device and storage medium, wherein the method mainly includes the following steps: traversing all triangular meshes on the 3D model that are spliced together to form the 3D model; slicing the 3D model into layers and obtaining all slice images; obtaining slice images and pixel grayscale values of the Nth layer, the N+Mth layer, and the N+2Mth layer; comparing the slice images of the Nth layer with the N+M layer, and the N+M layer with the N+2M layer, and then obtaining grayscale value difference areas as the second and first areas to be processed of the N+2M layer slice image; reducing the pixel grayscale values of the second and first areas to be processed to the second and first grayscale values respectively; and storing the processed slice image data in a storage unit. The present application can reduce the secondary thickness generated on the surface of the current layer that exceeds the layer thickness and reduce the secondary thickness generated on the surface of the previous layer by penetrating ultraviolet light, thereby improving the printing accuracy of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of 3D printing technology, and in particular to a 3D printing Z-axis fine compensation method, device, electronic device, and storage medium. Background Art

[0002] In existing photocuring 3D printing technology, the principle of layer-by-layer stacking for 3D models is to define the thickness of the next layer of resin by the thickness space between the building platform or the top cured layer and the bottom resin tank film, and to define the curing range of the next layer of resin on the plane by the light-transmitting area on the slice image. Typically, the photosensitive resin solution in the resin tank will exceed the set layer thickness to prevent successive refills. Therefore, if the light-transmitting area of the current layer on the plane does not exceed the range of the previous cured layer, the current layer can be cured within the limits of the layer thickness and the light-transmitting area of the slice image. For example, in an inverted triangle model, each layer will not produce surface thickening. However, because the resin depth exceeds the thickness of the current layer, when the current layer exceeds the range of the previous cured layer, the top of the current layer is not blocked by the cured material of the molding layer, allowing ultraviolet light to penetrate the resin solution, thereby generating a secondary thickness on the top of the current layer that exceeds the layer thickness. For example, in an equilateral triangle model, the surface of the different areas of each layer that exceed the edge of the previous molding layer will produce surface thickening.

[0003] To this end, the applicant provided a 3D printing Z-axis compensation method in another invention application filed on the same day, "3D printing Z-axis compensation method, device, electronic device and storage medium", which aims to reduce the amount of light transmittance by lowering the pixel grayscale value on the current layer corresponding to the difference range of the adjacent layer slice image, so as to reduce the secondary thickness generated when the current layer is formed that exceeds the layer thickness, thereby improving the model printing accuracy.

[0004] However, in the method of the invention application on the same day, although the problem of the generation of secondary thickness on the upper surface due to oblique irradiation of ultraviolet light at the black and white boundary of the image can be avoided when the difference range of the image of the separated layer slices is selected; however, when the difference range of the image of the separated layer slices is selected, the oblique irradiation of ultraviolet light will still cause the generation of secondary thickness on the upper surface at the black and white boundary; in addition, the thin layer thickness of the solidified molded layer will also weakly penetrate the ultraviolet light, causing the generation of secondary thickness on the upper surface, and a solution to this problem is also needed.

[0005] Therefore, it is necessary to provide a 3D printing Z-axis fine compensation method to further solve the above problems, so as to reduce the generation of secondary thickness of the current layer forming and the previous layer surface exceeding the layer thickness, thereby improving the model printing accuracy. Summary of the Invention

[0006] The embodiments of the present application provide a 3D printing Z-axis fine compensation method, device, electronic device and storage medium, which aim to reduce the amount of light transmittance by reducing the grayscale value of pixels in the difference range of two consecutive slice images on the current layer, thereby reducing the secondary thickness generated on the surface of the current layer that exceeds the layer thickness and reducing the secondary thickness generated on the surface of the previous layer by penetrating ultraviolet light, thereby improving the model printing accuracy.

[0007] A first aspect of an embodiment of the present application provides a 3D printing Z-axis fine compensation method, comprising the following steps:

[0008] S100, traversing all triangular meshes on the 3D model that are spliced together to form the 3D model;

[0009] S200, slicing the 3D model into layers and acquiring all slice images;

[0010] S300, obtaining slice images and pixel grayscale values of the Nth layer, the N+Mth layer, and the N+2Mth layer;

[0011] S400, comparing the slice images of the Nth layer with the N+Mth layer and comparing the slice images of the N+Mth layer with the N+2Mth layer to obtain grayscale value difference regions as the second to-be-processed region and the first to-be-processed region of the slice image of the N+2Mth layer, respectively;

[0012] S500, reducing the grayscale value of the pixels in the second to-be-processed area and the grayscale value of the pixels in the first to-be-processed area on the N+2M-th slice image to the second grayscale value and the first grayscale value respectively;

[0013] S600: storing the processed slice image data in a storage unit.

[0014] Furthermore, the step S400 further includes the following steps:

[0015] S410, performing grayscale XOR processing on the pixels of the Nth layer slice image and the N+Mth layer slice image pixels according to the same pixel coordinates;

[0016] S420, obtaining a second area to be processed on the N+2Mth slice image based on the gray value XOR processing result;

[0017] S430, performing grayscale XOR processing on the pixels of the slice image of the N+Mth layer and the pixels of the slice image of the N+2Mth layer according to the same pixel coordinates;

[0018] S440 , obtaining a first area to be processed on the N+2Mth slice image based on the grayscale value XOR processing result.

[0019] Optionally, N is a positive integer that increases from 1;

[0020] Optionally, M is any positive integer from 1 to 10.

[0021] Optionally, the first grayscale value is less than or equal to the second grayscale value; the first grayscale value and the second grayscale value are intermediate grayscale values between 0-255.

[0022] Furthermore, the following steps are included:

[0023] S550: Perform anti-aliasing processing on all slice images.

[0024] Furthermore, the following steps are included:

[0025] S700: Import the slice image data into a 3D printing device for 3D exposure printing.

[0026] A second aspect of the embodiments of the present application provides a 3D printing Z-axis fine compensation device, comprising:

[0027] The model mesh traversal module is used to traverse all the triangular meshes on the 3D model that are spliced together to form the 3D model;

[0028] Slice processing module, used to slice the 3D model into layers and obtain all slice images;

[0029] Slice image acquisition module, used to obtain slice images and pixel grayscale values of the Nth layer, the N+Mth layer, and the N+2Mth layer;

[0030] a module for obtaining an area to be processed, for comparing the slice images of the Nth layer with the N+Mth layer and comparing the slice images of the N+Mth layer with the N+2Mth layer, and obtaining grayscale value difference areas as the second area to be processed and the first area to be processed of the slice image of the N+2Mth layer, respectively;

[0031] a grayscale value reduction module, configured to reduce the grayscale value of pixels in the second to-be-processed area and the grayscale value of pixels in the first to-be-processed area on the N+2Mth slice image to the second grayscale value and the first grayscale value respectively;

[0032] The slice data storage module is used to store the processed slice image data in a storage unit.

[0033] Furthermore, the module for acquiring the area to be processed further includes:

[0034] The second Boolean processing module is used to perform grayscale XOR processing on the pixels of the Nth layer slice image and the pixels of the N+Mth layer slice image according to the same pixel coordinates;

[0035] A second to-be-processed region acquisition module is configured to acquire a second to-be-processed region on the N+2Mth slice image based on a grayscale value XOR processing result;

[0036] The first Boolean processing module is used to perform grayscale XOR processing on the pixels of the N+Mth layer slice image and the pixels of the N+2Mth layer slice image according to the same pixel coordinates;

[0037] The first to-be-processed region acquisition module is configured to acquire the first to-be-processed region on the N+2Mth slice image based on the grayscale value XOR processing result.

[0038] Furthermore, it also includes:

[0039] The anti-aliasing processing module is used to perform anti-aliasing processing on all slice images.

[0040] Furthermore, it also includes:

[0041] The 3D printing device is used to import the slice image data into the 3D printing device for 3D exposure printing.

[0042] A third aspect of an embodiment of the present application provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned 3D printing Z-axis fine compensation methods are implemented.

[0043] A fourth aspect of an embodiment of the present application provides an electronic device, comprising: at least one processor; and a storage unit communicatively connected to the at least one processor; wherein the storage unit stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform any of the steps of the above-mentioned 3D printing Z-axis fine compensation method.

[0044] A fifth aspect of an embodiment of the present application provides a 3D printing device, comprising a memory, a controller, and a computer program stored in the memory and executable on the controller, wherein when the controller executes the computer program, the steps of any one of the above-mentioned 3D printing Z-axis fine compensation methods are implemented.

[0045] Compared with the prior art, the present invention has the following advantages:

[0046] 1. The present application provides a 3D printing Z-axis fine compensation method that can reduce the generation of secondary thickness of the current layer that exceeds the layer thickness during solidification molding, without the need for subsequent manual removal of the secondary thickness on the model surface.

[0047] 2. The present application provides a 3D printing Z-axis fine compensation method, which can reduce the generation of secondary thickness of the current layer that exceeds the layer thickness during solidification molding, thereby improving the model printing accuracy.

[0048] 3. The present application provides a 3D printing Z-axis fine compensation method, which can perform aperture compensation on the lower edge of the model hole when the model hole is printed perpendicular to the aperture direction to reduce the generation of secondary thickness at the lower edge of the model hole, thereby making the aperture printing accuracy higher to avoid assembly problems.

[0049] 4. The present application provides a 3D printing Z-axis fine compensation method, which can obtain the pixel grayscale values of the slice images of the formed first layer and the formed second layer, and the formed second layer and the current layer third layer, and compare them to obtain the first and second areas to be processed of the slice image of the current layer third layer. By controlling the light transmittance on the first and second areas to be processed by partitioning, it can avoid strong ultraviolet light when printing models such as equilateral triangles, preventing ultraviolet light from penetrating the thin layer thickness of the formed second layer under strong ultraviolet light conditions, and thus avoiding the generation of secondary thickness on the second layer outside the edge of the first layer, so as to weaken the influence of the weak penetration of ultraviolet light by the thin layer thickness to generate secondary thickness, and make the Z-axis compensation during printing more precise.

[0050] 5. The present application provides a 3D printing Z-axis fine compensation method, which can obtain the pixel grayscale values of the slice images of the formed N layer and the formed N+1 layer, and the formed N+1 layer and the current layer N+2 layer, and then obtain the first and second areas to be processed on the slice image of the current layer N+2 layer. When printing models such as equilateral triangles, it can accurately select the difference range between the N layer and the N+1 layer, as well as the difference range between the N+1 layer and the N+2 layer, and then perform differentiated grayscale value reduction processing on the pixels within the corresponding partition difference range on the N+2 layer, and then differentially control the transmittance of different areas of the current layer, and then finely control to avoid secondary thickness on the N+1 layer and the N+2 layer, so that the Z-axis compensation during printing is more refined.

[0051] 6. The present application provides a 3D printing Z-axis fine compensation method. When obtaining and comparing the pixel grayscale values of the slice images of the Nth layer and the N+M layer, and the N+M layer and the N+2M layer, when the value of M is 1, the difference range between three consecutive adjacent layers can be compared and obtained as the first and second areas to be processed, thereby avoiding the secondary thickness generated on the surface of the current layer by oblique ultraviolet light; when the value of M is 2, the difference range between three consecutive layers can be compared and obtained as the first and second areas to be processed, and the selected area can be further expanded as needed to further reduce the secondary thickness generated on the surface of the current layer by oblique ultraviolet light. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1A Flowchart of the 3D printing Z-axis fine compensation method provided in an embodiment of the present application;

[0053] Figure 1BA flow chart of obtaining the area to be processed by the 3D printing Z-axis fine compensation method provided in an embodiment of the present application;

[0054] Figure 2A A structural diagram of the 3D printing Z-axis fine compensation device provided in an embodiment of the present application;

[0055] Figure 2B A diagram of a device for obtaining an area to be processed for a 3D printing Z-axis fine compensation device provided in an embodiment of the present application;

[0056] Figure 3A -B is a schematic diagram of the secondary thickness generated by the current layer during solidification under the background technology;

[0057] Figure 3C -D is a schematic diagram of the Z-axis deviation of the model hole under the background technology;

[0058] Figure 4A -C is an exposure process diagram of reducing the grayscale values of the first and second areas to be processed by different zones according to an embodiment of the present application;

[0059] Figure 4D Schematic diagram of Z-axis compensation for model holes implemented in this application;

[0060] Figure 5A -H is a schematic diagram of obtaining a region to be processed based on a slice image according to an embodiment of the present application;

[0061] Figure 6A -F is a schematic diagram 1 of reducing grayscale values by partitioning according to an embodiment of the present application;

[0062] Figure 7A -F is a schematic diagram 2 of reducing grayscale values by partitioning according to an embodiment of the present application;

[0063] Figure 8A A block diagram of the electronic device structure for implementing the 3D printing Z-axis fine compensation method according to an embodiment of the present application;

[0064] Figure 8B A schematic diagram of an electronic device performing pre-processing and slicing of a 3D model according to an embodiment of the present application;

[0065] Figure 9A A block diagram of the 3D printing device structure for implementing the Z-axis fine compensation method for 3D printing according to the present application method;

[0066] Figure 9B This is a schematic diagram of importing image data obtained by slicing after implementing the method of the present application into a 3D printing device.

[0067] Description of labels:

[0068] Model mesh traversal module 100; slice processing module 200; slice image acquisition module 300; to-be-processed region acquisition module 400; grayscale value reduction module 500; anti-aliasing processing module 550; slice data storage module 600; second Boolean processing module 410; second to-be-processed region acquisition module 420; first Boolean processing module 430; first to-be-processed region acquisition module 440;

[0069] UV light source 31; LCD screen 32; image opaque area 321; image fully transparent area 322; second intermediate gray value area 324; first intermediate gray value area 325; resin tank 33; base film 331; photosensitive resin solution 332; molding platform 34; cured layer 341; current layer 342; secondary thickness 343; mold hole 344; first type curing area 346; second type curing area 347; third type curing area 348; penetrating secondary curing area 348a; Z-axis compensation area 349;

[0070] Electronic device 8 ; computer program 80 ; processor 81 ; storage unit 82 ; 3D printing device 9 ; printing control program 90 ; controller 91 ; memory 92 ; mobile storage device 10 . DETAILED DESCRIPTION

[0071] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0072] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections. It should also be understood that the terms used in this specification of the application are merely for the purpose of describing specific embodiments and are not intended to limit the application. As used in this specification of the application and the appended claims, the singular forms of "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in this specification of the application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0073] Figure 1AA flowchart of a 3D printing Z-axis fine compensation method provided in an embodiment of the present application. As shown in the figure, a 3D printing Z-axis fine compensation method includes the following steps:

[0074] S100, traversing all triangular meshes on the 3D model that are spliced together to form the 3D model;

[0075] S200, slicing the 3D model into layers and acquiring all slice images;

[0076] S300, obtaining slice images and pixel grayscale values of the Nth layer, the N+Mth layer, and the N+2Mth layer;

[0077] S400, comparing the slice images of the Nth layer with the N+Mth layer and comparing the slice images of the N+Mth layer with the N+2Mth layer to obtain grayscale value difference regions as the second to-be-processed region and the first to-be-processed region of the slice image of the N+2Mth layer, respectively;

[0078] S500, reducing the grayscale value of the pixels in the second to-be-processed area and the grayscale value of the pixels in the first to-be-processed area on the N+2M-th slice image to the second grayscale value and the first grayscale value respectively;

[0079] S600: storing the processed slice image data in a storage unit.

[0080] Optionally, further comprising the following steps:

[0081] S550: Perform anti-aliasing processing on all slice images.

[0082] It should be noted that the anti-aliasing process in the above-mentioned step S550 should be placed after step S500 because anti-aliasing technology is often inevitably needed in the light-stereolithography 3D printing process, and anti-aliasing processing of the slice image will also reduce the edge grayscale value of the slice image, and the range of the area to be processed is obtained by comparing the grayscale values of slice images of different layers; in order to accurately obtain the first and second ranges of the area to be processed, it is necessary to obtain the range of the area to be processed first and then perform anti-aliasing processing to avoid obtaining the wrong range of the area to be processed.

[0083] Optionally, further comprising the following steps:

[0084] S700: Import the slice image data into a 3D printing device for 3D exposure printing.

[0085] Optionally, N is a positive integer that increases from 1;

[0086] Optionally, M is any positive integer from 1 to 10.

[0087] Optionally, the first grayscale value is less than or equal to the second grayscale value; the first grayscale value and the second grayscale value are intermediate grayscale values between 0-255.

[0088] Specifically, in step S400, the slice images of the Nth layer and the slice images of the N+Mth layer are compared, and the slice images of the N+Mth layer and the N+2Mth layer are compared to obtain the grayscale value difference areas as the second area to be processed and the first area to be processed of the slice image of the N+2Mth layer respectively; when the value of M is 1, the difference ranges between three consecutive adjacent layers can be compared and obtained as the first and second areas to be processed, so that the transmittance of the image pixels on the first and second areas to be processed can be controlled by partitioning, and the transmittance of the oblique light can be blocked and reduced; when the value of M is 2, the difference ranges between three consecutive layers can be compared and obtained as the first and second areas to be processed, and the selected area can be further expanded as needed to further reduce the secondary thickness generated by the oblique irradiation ultraviolet light on the surface of the current layer.

[0089] Correspondingly, the larger the value of M is, the larger the area to be processed will be. However, it should not be increased too much. Generally, it is appropriate to take a value within 4 layers.

[0090] Figure 1B Flowchart of the 3D printing Z-axis fine compensation method for obtaining the area to be processed provided in the embodiment of this application. The steps in this figure correspond to Figure 1A As shown in the figure, step S400 further includes the following steps:

[0091] S410, performing grayscale XOR processing on the pixels of the Nth layer slice image and the N+Mth layer slice image pixels according to the same pixel coordinates;

[0092] S420, obtaining a second area to be processed on the N+2Mth slice image based on the gray value XOR processing result;

[0093] S430, performing grayscale XOR processing on the pixels of the slice image of the N+Mth layer and the pixels of the slice image of the N+2Mth layer according to the same pixel coordinates;

[0094] S440 , obtaining a first area to be processed on the N+2Mth slice image based on the grayscale value XOR processing result.

[0095] Specifically, when M is 1, for example:

[0096] S410, performing grayscale XOR processing on pixels of the first layer slice image and the second layer slice image according to the same pixel coordinates;

[0097] S420, obtaining a second area to be processed on the third slice image based on the grayscale value XOR processing result;

[0098] S430, performing grayscale XOR processing on the pixels of the second layer slice image and the pixels of the third layer slice image according to the same pixel coordinates;

[0099] S440 , obtaining a first area to be processed on the third slice image based on the grayscale value XOR processing result.

[0100] Specifically, when M is 2, for example:

[0101] S410, performing grayscale XOR processing on the pixels of the first layer slice image and the pixels of the third layer slice image according to the same pixel coordinates;

[0102] S420, obtaining a second area to be processed on the fifth slice image based on the grayscale value XOR processing result;

[0103] S430, performing grayscale XOR processing on the pixels of the third layer slice image and the pixels of the fifth layer slice image according to the same pixel coordinates;

[0104] S440 , obtaining the first area to be processed on the fifth slice image based on the grayscale value XOR processing result.

[0105] In particular, the reason why the second area to be processed is obtained first and the first area to be processed is that the secondary thickness on the first area to be processed has a greater impact on the overall model printing accuracy, and the grayscale value of the first area to be processed needs to be lower than the grayscale value of the second area to be processed. Therefore, if the first area to be processed and the second area to be processed overlap, the overlapping area will eventually be reduced to the second intermediate grayscale value.

[0106] Figure 2A This is a structural diagram of the 3D printing Z-axis fine compensation device provided in an embodiment of the present application. As shown in the figure, the 3D printing Z-axis fine compensation device includes:

[0107] The model mesh traversal module 100 is used to traverse all triangular meshes on the 3D model that are spliced together to form the 3D model;

[0108] Slice processing module 200, used to slice the 3D model into layers and obtain all slice images;

[0109] The slice image acquisition module 300 is used to acquire slice images and pixel grayscale values of the Nth layer, the N+Mth layer, and the N+2Mth layer;

[0110] The to-be-processed region acquisition module 400 is configured to compare the slice images of the Nth layer with the N+Mth layer and the slice images of the N+Mth layer with the N+2Mth layer, and thereby acquire grayscale value difference regions as the second to-be-processed region and the first to-be-processed region of the slice image of the N+2Mth layer, respectively.

[0111] A grayscale value reducing module 500 is configured to reduce the grayscale value of pixels in the second to-be-processed region and the grayscale value of pixels in the first to-be-processed region on the N+2Mth slice image to the second grayscale value and the first grayscale value, respectively;

[0112] The slice data storage module 600 is used to store the processed slice image data in a storage unit.

[0113] Optionally, further comprising:

[0114] The anti-aliasing processing module 550 is used to perform anti-aliasing processing on all slice images.

[0115] Optionally, further comprising:

[0116] The 3D printing device 9 is used to import the slice image data into the 3D printing device for 3D exposure printing.

[0117] Figure 2B The device diagram for obtaining the area to be processed for the 3D printing Z-axis fine compensation device provided in the embodiment of the present application. The modules in this diagram correspond to Figure 1B In step S400, as shown in the figure, the to-be-processed area acquisition module 400 further includes:

[0118] The second Boolean processing module 410 is used to perform grayscale XOR processing on the pixels of the Nth layer slice image and the pixels of the N+Mth layer slice image according to the same pixel coordinates;

[0119] A second region to be processed acquiring module 420 is configured to acquire a second region to be processed on the N+2Mth slice image based on the grayscale value XOR processing result;

[0120] A first Boolean processing module 430 is configured to perform an XOR process on the grayscale values of the N+Mth layer slice image pixels and the N+2Mth layer slice image pixels according to the same pixel coordinates;

[0121] The first region to be processed acquiring module 440 is configured to acquire the first region to be processed on the N+2Mth slice image based on the gray value XOR processing result.

[0122] Figure 3A -B is a schematic diagram of the secondary thickness generated by the current layer during solidification under the background technology. As shown in the figure, Figure 3AThe process of printing a model using a 3D printing device in the context of existing light-curing 3D printing technology is shown. In the figure, a UV light source 31 emits ultraviolet light through an LCD screen 32 and a bottom film 331 of a resin tank 33, causing the photosensitive resin solution 332 in the resin tank 33 to be light-cured and formed. During this process, the cured layers 341 of each layer will adhere to the forming platform 34 and move up and down. Specifically, the principle of stacking the current layer 342 is that the layer thickness space between the previous cured layer 341 and the bottom film 331 is used to limit the current layer. The thickness of the cured layer 342 is further limited by the image opaque area 321 and the image translucent area 322 of the slice image loaded on the LCD screen 32 to limit the curing range of the photosensitive resin solution 332 by the UV light source 31; for the inverted triangle-shaped model shown in the figure, since the two sides of its current layer 342 do not exceed the range of the previous cured layer 341, all the ultraviolet light passing through the image translucent area 322 can be blocked by the previous cured layer 341, thereby allowing the current layer 342 to be cured in a standardized manner without generating secondary thickness.

[0123] As shown in the figure, Figure 3B The figure shows the process of model printing using a 3D printing device in the context of existing photocuring 3D printing technology. For the model formed into an equilateral triangle shown in the figure, when the ultraviolet light of the UV light source 31 passes through the image transparent area 322 to UV-cure the photosensitive resin solution 332, since both sides of the current layer 342 exceed the range of the previous cured layer 341, all the ultraviolet light passing through the image transparent area 322 cannot be completely blocked by the previous cured layer 341. Therefore, while the current layer 342 is being cured, the ultraviolet light of the UV light source 31 will penetrate the current layer 342 and cure both sides of the previous cured layer 341 at the same time, thereby generating a secondary thickness 343. For general ornamental 3D models, this secondary thickness is acceptable; however, for assembly 3D model parts, assembly errors will occur.

[0124] Figure 3C -D is a schematic diagram of the Z-axis deviation of the model hole under the background technology. As shown in the figure, Figure 3C What is shown is the printing process of the model containing a pore-like structure shown in the figure in the context of existing photocuring 3D printing technology. When the ultraviolet light of the UV light source 31 passes through the image transparent area 322 to UV-cur the photosensitive resin solution 332, since the upper cured layer 341 has a middle cavity, all the ultraviolet light passing through the image transparent area 322 cannot be completely blocked by the upper cured layer 341. Therefore, while the current layer 342 is being cured, the ultraviolet light of the UV light source 31 will penetrate the current layer 342 to cure the middle cavity position of the upper cured layer 341, thereby generating a secondary thickness 343; in particular, the area indicated by the dotted line in the figure is the secondary thickness 343 generated during the previous curing and molding.

[0125] As shown in the figure, Figure 3D The diagram shows the Z-axis deviation of the model hole shown in the figure in the context of existing light-curing 3D printing technology. Figure 3C Come to see, when Figure 3C The smaller the thickness of the pore-like structure, the closer it is to the Figure 3D In the actual printing process of existing light-curing 3D printing technology, printing this Figure 3D When the hole-containing model is used, the lower edge of the model hole 344 usually shrinks upward along the Z-axis direction, so that the actual printed model hole forms an irregular circle; Figure 3C As shown in the schematic diagram, the shrinkage of the lower edge of the model hole 344 is caused by the following Figure 3C The secondary thickness 343 shown is Figure 3D The secondary thickness 343 in the dotted area causes the lower edge of the mold hole 344 to shrink upward along the Z-axis direction.

[0126] Figure 4A -C is an exposure process diagram of the embodiment of the present application for reducing the grayscale values of the first and second areas to be processed by partitioning. As shown in the figure, Figure 4A The whole model is printed to the 8th layer; the LCD screen 32 is divided into an image opaque area 321, an image fully transparent area 322, a second intermediate gray value area 324, and a first intermediate gray value area 325 according to the pixel gray value of the loaded slice image; wherein the second intermediate gray value area 324 corresponds to the embodiment of the present application Figure 1A The second gray value of the second area to be processed described in the embodiment of the present application; the first intermediate gray value area 325 corresponds to Figure 1AThe first gray value on the first area to be processed described in the figure; wherein, the gray value on the first intermediate gray value area 325 is less than the gray value on the second intermediate gray value area 324, thereby further reducing the transmittance of the ultraviolet light emitted by the UV light source 31, so as to reduce the transmittance of the second intermediate gray value area 324 and the transmittance of the first intermediate gray value area 325 by partition; accordingly, on the molding layer closest to the base film 331, the image full light-transmitting area 322 corresponds to the molding of the first type of curing area 346, the second intermediate gray value area 324 corresponds to the molding of the second type of curing area 347, and the first intermediate gray value area 325 corresponds to the molding of the third type of curing area 348; wherein, the first type of curing area 346 is the most completely molded. , the second type of curing area 347 is the second, and the third type of curing area 348 is the weakest. Since the light transmittance at the third type of curing area 348 is the lowest, the formation of secondary thickness on the surface of the third type of curing area 348 is weakened or avoided. At the bottom second type of curing area 347, the light transmittance of the second intermediate gray value region 324 is slightly greater, so the degree of curing of the second type of curing area 347 is correspondingly enhanced. Although the ultraviolet light still penetrates upward into the third type of curing area 348 above to strengthen its secondary curing, the penetrability of the ultraviolet light is weakened, and no energy is generated on the surface of the third type of curing area 348 above. As a result, the formation of secondary thickness at each location is weakened. Therefore, the unique solution and special fine effect of the partition compensation of the embodiment of the present application are achieved.

[0127] As shown in the figure, Figure 4B The whole model is printed to the 9th layer; Figure 4A On the basis of , a 9th printing layer is added. Accordingly, combined with the description in the previous paragraph, due to Figure 4A The third type of cured area 348 of the second to last layer is irradiated upward by the ultraviolet light, so that the third type of cured area 348 is cured secondary, forming the penetrating secondary cured area 348a of the third to last layer in this figure; at the same time, the third type of cured area 348 of the second to last layer continues to be cured secondary by the penetrating ultraviolet light.

[0128] As shown in the figure, Figure 4C The whole model is printed to the 10th layer; Figure 4B On the basis of , a new 10th printing layer is added. Accordingly, combined with the previous description, due to Figure 4B The third type of cured area 348 in the second-to-last layer is irradiated upward by the UV light, thus undergoing secondary curing, forming the penetrating secondary cured area 348a in the third-to-last layer in this figure. Simultaneously, the third type of cured area 348 in the second-to-last layer continues to undergo secondary curing by the penetrating UV light. The third type of cured area 348 in the first-to-last layer is about to be sealed, forming a completed hole-like model.

[0129] In particular, the above Figure 4A -C model forming process, it can be seen that for the second intermediate gray value area 324, that is, the embodiment of the present application Figure 1A The second area to be processed, and the first intermediate gray value area 325, that is, the embodiment of the present application Figure 1A The first area to be processed is set to the second grayscale value and the first grayscale value respectively, which can weaken the generation of secondary thickness at each special position, and achieve a unique solution and special fine effect of fine light transmittance control and partition compensation.

[0130] Figure 4D This is a schematic diagram of Z-axis compensation for the model hole implemented in this application. As shown in the figure, combined with Figure 4C Come to see, when Figure 4C The smaller the thickness of the pore-like structure, the closer it is to the Figure 4D The pore model in Figure 4C As shown in the schematic diagram, since the generation of secondary thickness is avoided, the Figure 4D The lower edge of the middle model hole 344 corresponds to Figure 3D At the position of the middle secondary thickness 343, a blank Z-axis compensation area 349 is formed, so that the actually printed model hole forms a regular circle; thus, Z-axis compensation of the model hole is achieved, thereby improving the model printing accuracy, especially, the assembly accuracy of assembly-type 3D model parts can be improved.

[0131] Figure 5A -H is a schematic diagram of obtaining the area to be processed based on the slice image in an embodiment of the present application. Figure 5A Take a 3D model of a pyramid cone as an example. As shown in the figure, the electronic device slices the 3D model into layers at a preset layer thickness of H mm, producing three slice images: L1, L2, and L3. Each layer image is white in the center and black around the edges. After loading the image onto the 3D printing device screen, the white portion is used to expose the image through UVLED light, while the black portion blocks the UVLED light from penetrating.

[0132] Figure 5B for Figure 5A As shown in the figure, the light-transmitting area of the L3 slice is larger than that of the L2 slice, and the light-transmitting area of the L2 slice is larger than that of the L1 slice.

[0133] Figure 5C -H will demonstrate the grayscale value changes in the above situation. Figure 1B In the steps, S410, the grayscale values of the first layer slice image pixels and the second layer slice image pixels are XORed according to the same pixel coordinates; S420, the second area to be processed on the third layer slice image is obtained from the grayscale value XORed result. As shown in the figure, Figure 5C The L1 layer image and Figure 5E The L2 layer image in is XORed and obtained Figure 5G The difference range 2 in the , the difference range is the second area to be processed; similarly, combined with Figure 1B In the steps, S430, the grayscale values of the second layer slice image pixels and the third layer slice image pixels are XORed according to the same pixel coordinates; S440, the first area to be processed on the third layer slice image is obtained from the grayscale value XORed result. As shown in the figure, Figure 5D The L2 layer image and Figure 5F The L2 layer image in is XORed and obtained Figure 5H The difference range 1 in the , this difference range is the first area to be processed.

[0134] Figure 6A -F is a schematic diagram 1 of reducing grayscale values by partitioning according to an embodiment of the present application. Figure 6A and Figure 6B Indicated from the side Figure 5G and Figure 5H The difference range 2 and the difference range 1 in the , namely, the second area to be processed and the first area to be processed.

[0135] As shown in the figure, Figure 6A The L1, L2, and L3 layers correspond to Figure 5B The three-layer model slice in the figure; each square represents a transparent pixel, and the number 255 means that the grayscale value of the pixel is 255, indicating full transparency; combined with Figure 1B In the process steps shown, when the value of M is 1, the difference range shown in S2 can be obtained from the XOR results of the L1 and L2 layers. From the difference range S2, a gray filled square can be obtained on the L3 layer as the second area to be processed, and then the grayscale value of the second area to be processed is reduced from 255 to a second grayscale value of 200, so that the light transmittance of the pixel where it is located is reduced.

[0136] As shown in the figure, Figure 6B The L1, L2, and L3 layers also correspond to Figure 5B The three-layer model slice in the figure; each square represents a transparent pixel, and the number 255 means that the grayscale value of the pixel is 255, indicating full transparency; combined with Figure 1B In the process steps shown, when the value of M is 1, the difference range shown in S1 can be obtained from the XOR results of the L2 and L3 layers. From the difference range S1, a gray filled square can be obtained on the L3 layer as the first area to be processed, and then the grayscale value of the first area to be processed is reduced from 255 or 200 to a second grayscale value of 150, so that the light transmittance of the pixel where it is located is reduced.

[0137] Especially, comparative Figure 6A Middle S2 region and Figure 6B In the S1 area, it can be found that there is no vertical overlap between the two ranges, so Figure 6B The grayscale value of the first area to be processed and the grayscale value of the second area to be processed are reduced to 200 and 150 respectively. This situation is exactly the purpose of the partition control that the present invention needs to implement to achieve the fine compensation of the Z axis of 3D printing. Figure 5B When the L1 light transmission area is smaller than the L2 light transmission area, and the L2 light transmission area is smaller than the L3 light transmission area, it can be seen that during 3D printing, it is necessary to prevent the following Figure 6B The S1 region shown here generates secondary thickness, and it is also necessary to prevent Figure 6B The S2 area shown in the figure has a secondary thickness on the surface of the S2 position due to the ultraviolet light penetrating the thin and thin L2 layer. At the same time, it is also necessary to prevent Figure 6B At the intersection of grayscale values 200 and 150, outward-oblique UV light creates a secondary thickness on the surface of the L3 layer at position S1. Therefore, it is necessary to lower the grayscale value of the pixel at grayscale value 200, thereby reducing the amount of UV light transmittance. Furthermore, the necessity of different grayscale values 200 and 150 is that the L3 layer is not blocked by the molding layer above position S1, so the UV light transmittance is strong. Therefore, the grayscale value of the pixel at position 150 needs to be lower to reduce the amount of light transmittance. On the other hand, the L3 layer is blocked by the L2 layer above position S2, so the UV light transmittance is relatively weak. Therefore, the grayscale value of the pixel at position 200 needs to be higher to increase the amount of light transmittance. Therefore, the grayscale values of the regions S1 and S2 need to be divided into different grayscale values, and the grayscale value of the region S1 needs to be lower than that of the region S2.

[0138] Figure 6C -F continues to demonstrate the grayscale value changes in the above situation. As shown in the figure, Figure 6C It means Figure 5B Grayscale image of the L3 slice image obtained in , where grayscale value 255 represents a fully transparent area, and grayscale value 0 represents an opaque area; Figure 6D It means that Figure 6C Based on this, we obtain the second area to be processed, which is the dot-filled area in this figure, corresponding to Figure 6A The grayscale value of the S2 area shown is then reduced from 255 to a second grayscale value of 200; Figure 6E It means that Figure 6D Based on this, we obtain the first area to be processed, which is the dot-filled area in this figure, corresponding to Figure 6B The grayscale value of the S1 area shown in the figure is then reduced from 255 to the first grayscale value 150; Figure 6F The slice image after the gray value partitioning and reduction process is represented by Figure 6B Schematic results in .

[0139] In particular, the above Figure 6A-F shows that when there is no overlap between the first area to be processed and the second area to be processed, obtaining the range of the second area to be processed and obtaining the range of the first area to be processed do not need to be processed in a certain order. At the same time, reducing the grayscale value of pixels in the area to be processed does not need to be processed in a certain order.

[0140] Figure 7A -F is a schematic diagram 2 of reducing grayscale values by partitioning according to an embodiment of the present application. Figure 7A The example in -F will be used to illustrate the problem of the decreasing order of pixel grayscale values in the first area to be processed and the second area to be processed when the first area to be processed and the second area to be processed overlap.

[0141] Figure 7A This is another model slicing example. As shown in the figure, the Figure 5B For different model slices, correspondingly, the light transmission area of the L3 layer slice is larger than the light transmission area of the L1 layer slice, and the light transmission area of the L1 layer slice is larger than the light transmission area of the L2 layer slice.

[0142] Figure 7B-1 and Figure 7B-2 This is a side view illustrating the order of decreasing pixel grayscale values in the first and second areas to be processed. Figure 7B-1 The L1, L2, and L3 layers correspond to Figure 7A The three-layer model slice in the figure; each square represents a transparent pixel, and the number 255 means that the grayscale value of the pixel is 255, indicating full transparency; combined with Figure 1B In the process steps shown, when the value of M is 1, the difference range shown in S2 can be obtained from the XOR results of the L1 and L2 layers. From the difference range S2, a gray filled square can be obtained on the L3 layer as the second area to be processed, and then the grayscale value of the second area to be processed is reduced from 255 to a second grayscale value of 200, so that the light transmittance of the pixel where it is located is reduced.

[0143] As shown in the figure, Figure 7B-2 The L1, L2, and L3 layers also correspond to Figure 7A The three-layer model slice in the figure; each square represents a transparent pixel, and the number 255 means that the grayscale value of the pixel is 255, indicating full transparency; combined with Figure 1B In the process steps shown, when the value of M is 1, the difference range shown in S1 can be obtained from the XOR results of the L2 and L3 layers. From the difference range S1, a gray filled square can be obtained on the L3 layer as the first area to be processed, and then the grayscale value of the first area to be processed is reduced from 255 or 200 to a second grayscale value of 150, so that the light transmittance of the pixel where it is located is reduced.

[0144] Especially, comparative Figure 7B-1 Middle S2 region and Figure 7B-2In the S1 region, it can be found that the two ranges overlap vertically, so the grayscale value of the first area to be processed is reduced from the second grayscale value 200 to 150. This situation corresponds to Figure 7A When the L2 light transmission area is smaller than the L1 light transmission area, and the L1 light transmission area is smaller than the L3 light transmission area, it can be seen that when 3D printing is being formed, it is necessary to prevent the following Figure 7B-2 The S1 region shown produces secondary thickness, so the grayscale value of the S2 region does not need to be divided into different regions and adopt different grayscale values.

[0145] Figure 7C -F continues to demonstrate the grayscale value changes in the above situation. As shown in the figure, Figure 7C It means Figure 7A Grayscale image of the L3 slice image obtained in , where grayscale value 255 represents a fully transparent area, and grayscale value 0 represents an opaque area; Figure 7D It means that Figure 7C Based on this, we obtain the second area to be processed, which is the dot-filled area in this figure, corresponding to Figure 7B-1 The grayscale value of the S2 area shown is then reduced from 255 to a second grayscale value of 200; Figure 7E It means that Figure 7D Based on this, we obtain the first area to be processed, which is the dot-filled area in this figure, corresponding to Figure 7B-2 The S1 region is shown; Figure 7F It means Figure 7E The midpoint filling area reduces the grayscale value in the area from 255 or 200 to the first grayscale value 200. This result corresponds to Figure 7B-2 Schematic results in .

[0146] In particular, the above Figure 7A -F shows that when the first area to be processed and the second area to be processed overlap, the second area to be processed should be obtained first, and the grayscale values of the pixels within the area should be reduced to the second grayscale value. Then, the first area to be processed should be obtained, and the grayscale values of the pixels within the area should be reduced to the first grayscale value.

[0147] Figure 8A This is a block diagram of the electronic device structure for implementing the 3D printing Z-axis fine compensation method according to the embodiment of the present application. As shown in the figure, the electronic device 8 in this figure takes a processor 81 as an example. As shown in the figure, an electronic device 8 includes a processor 81 and a storage unit 82; wherein the storage unit 82 stores a computer program 80 or instructions that can be executed by the processor 81, and the computer program 80 or instructions are executed by the processor 81 so that the processor 81 can perform the following operations: Figure 1A Steps S100 to S600 in the above example, or executing the following steps: Figure 1B Steps S410 to S440 in .

[0148] The storage unit 82 is a non-transitory computer-readable storage medium provided in the third aspect of the present application. The storage unit 82 stores instructions that can be executed by at least one processor 81, so that at least one processor 81 can execute the following instructions: Figure 1A Steps S100 to S600 in the above example, or executing the following steps: Figure 1B Steps S410 to S440 in .

[0149] The storage unit 82 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as Figure 1A The program instructions / modules corresponding to steps S100-S600 in the embodiment of the present invention, or the implementation thereof, Figure 1B The processor 81 executes the non-transient computer program 80, instructions and modules stored in the storage unit 82 to execute various functional applications and data processing of the server, that is, to achieve the above-mentioned Figure 1A or Figure 1B The corresponding embodiments involve steps of computers and processors.

[0150] The storage unit 82 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created when the electronic device 8 is in use, etc. Furthermore, the storage unit 82 may include a high-speed random access memory module and may also include a non-transient memory module, such as at least one disk storage module, a flash memory device, or other non-transient solid-state memory module. In some embodiments, the storage unit 82 may optionally include a memory module remotely located relative to the processor 81. These remote memory modules may be connected to the electronic device storing the slice image data via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0151] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input unit, and at least one output device, and transmit data and instructions to the storage system, the at least one input unit, and the at least one output device.

[0152] These computer programs 80 (also referred to as programs, software, software applications, or code) include machine instructions for a programmable processor and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., a magnetic disk, an optical disk, a memory module, a programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0153] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this application can be achieved. This is not a limitation herein.

[0154] Figure 8B This is a schematic diagram of an electronic device pre-processing and slicing a 3D model according to an embodiment of the present application. As shown, a user runs 3D slicing software on an electronic device 8 and uses a 3D printing Z-axis fine compensation method provided in the first aspect of the present embodiment to perform steps S100-S600. This method aims to reduce light transmittance by lowering the grayscale values of pixels within the range of difference between adjacent slice images, thereby reducing the generation of secondary thickness exceeding the layer thickness during curing of the current layer, thereby improving model printing accuracy.

[0155] Figure 9A A block diagram of the structure of a 3D printing device for implementing the Z-axis fine compensation method of 3D printing according to the present invention. As shown in the figure, a 3D printing device 9 includes a controller 91 and a memory 92; wherein the memory 92 stores a printing control program 90 or instructions that can be executed by the controller 91, and the printing control program 90 or instructions are executed by the controller 91 so that the controller 91 can perform the following operations: Figure 1A Step S700 in the above method can reduce the generation of secondary thickness during the curing of the current layer of the model, thereby improving the printing accuracy of the model; or perform the following steps: Figure 1A Steps S100-S600 in ; or execute as follows Figure 1B Steps S410-S440 in Figure 1A Steps S100-S600 and Figure 1B Steps S410-S440 in the process may also be fully executed in the 3D printing device 9.

[0156] Figure 9BThis is a schematic diagram of importing sliced image data obtained after implementation of the present method into a 3D printing device. As shown, a user uses a mobile storage device 10 to import the sliced image data and / or printing parameters obtained by electronic device 8, after the grayscale value reduction of the pixels in the processed area has been completed, into a 3D printing device 9 for 3D exposure printing. This reduces the generation of secondary thickness during the curing of the current layer of the model, thereby improving the printing accuracy of the model.

[0157] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.

Claims

1. A 3D printing Z-axis fine compensation method, characterized in that: The following steps are involved: S100, traversing all triangular meshes on the 3D model that are spliced together to form the 3D model; S200, slicing the 3D model into layers and acquiring all slice images; S300, obtaining slice images and pixel grayscale values of the Nth layer, the N+Mth layer, and the N+2Mth layer; S400, comparing the slice images of the Nth layer with the N+Mth layer and comparing the slice images of the N+Mth layer with the N+2Mth layer to obtain grayscale value difference regions as the second to-be-processed region and the first to-be-processed region of the slice image of the N+2Mth layer, respectively; S500, reducing the grayscale value of the pixels in the second to-be-processed area and the grayscale value of the pixels in the first to-be-processed area on the N+2M-th slice image to the second grayscale value and the first grayscale value respectively; S600: storing the processed slice image data in a storage unit.

2. The 3D printing Z-axis fine compensation method according to claim 1, characterized in that: The step S400 further includes the following steps: S410, performing grayscale XOR processing on the pixels of the Nth layer slice image and the N+Mth layer slice image pixels according to the same pixel coordinates; S420, obtaining a second area to be processed on the N+2Mth slice image based on the gray value XOR processing result; S430, performing grayscale XOR processing on the pixels of the slice image of the N+Mth layer and the pixels of the slice image of the N+2Mth layer according to the same pixel coordinates; S440 , obtaining a first area to be processed on the N+2Mth slice image based on the grayscale value XOR processing result.

3. The 3D printing Z-axis fine compensation method according to claim 1, characterized in that: The N is a positive integer increasing from 1; the M is any positive integer between 1 and 10.

4. The 3D printing Z-axis fine compensation method according to claim 1, characterized in that: The first grayscale value is less than or equal to the second grayscale value; the first grayscale value and the second grayscale value are intermediate grayscale values between 0 and 255.

5. The 3D printing Z-axis fine compensation method according to claim 1, characterized in that: The following steps are also included: S550: Perform anti-aliasing processing on all slice images.

6. The 3D printing Z-axis fine compensation method according to claim 1, characterized in that: The following steps are also included: S700: Import the slice image data into a 3D printing device for 3D exposure printing.

7. A 3D printing Z-axis fine compensation device, characterized in that: include: The model mesh traversal module is used to traverse all the triangular meshes on the 3D model that are spliced together to form the 3D model; Slice processing module, used to slice the 3D model into layers and obtain all slice images; Slice image acquisition module, used to obtain slice images and pixel grayscale values of the Nth layer, the N+Mth layer, and the N+2Mth layer; a module for obtaining an area to be processed, for comparing the slice images of the Nth layer with the N+Mth layer and comparing the slice images of the N+Mth layer with the N+2Mth layer, and obtaining grayscale value difference areas as the second area to be processed and the first area to be processed of the slice image of the N+2Mth layer, respectively; a grayscale value reduction module, configured to reduce the grayscale value of pixels in the second to-be-processed area and the grayscale value of pixels in the first to-be-processed area on the N+2Mth slice image to the second grayscale value and the first grayscale value, respectively; The slice data storage module is used to store the processed slice image data in a storage unit.

8. The 3D printing Z-axis fine compensation device according to claim 7, characterized in that: The to-be-processed area acquisition module further includes: The second Boolean processing module is used to perform grayscale XOR processing on the pixels of the Nth layer slice image and the pixels of the N+Mth layer slice image according to the same pixel coordinates; A second to-be-processed region acquisition module is configured to acquire a second to-be-processed region on the N+2Mth slice image based on a grayscale value XOR processing result; The first Boolean processing module is used to perform grayscale XOR processing on the pixels of the N+Mth layer slice image and the pixels of the N+2Mth layer slice image according to the same pixel coordinates; The first to-be-processed region acquisition module is configured to acquire the first to-be-processed region on the N+2Mth slice image based on the grayscale value XOR processing result.

9. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the 3D printing Z-axis fine compensation method according to any one of claims 1 to 6 are implemented.

10. An electronic device, characterized in that: include: at least one processor; and a storage unit communicatively connected to the at least one processor; wherein the storage unit stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the 3D printing Z-axis fine compensation method as described in any one of claims 1 to 6.

11. A 3D printing device comprising a memory, a controller, and a computer program stored in the memory and executable on the controller, wherein: When the controller executes the computer program, the steps of the 3D printing Z-axis fine compensation method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and device for detecting defect of gray tone mask

    JP2002174602A

  • High-throughput 3D printing of customized aspheric imaging lenses

    US20210016496A1