Method and device for adjusting definition of printing breadth and computer readable medium

By calculating the gradient function value of the 3D printed format image and adjusting the printing format using the gradient descent algorithm, the problem of inefficient manual adjustment is solved, and the automatic adjustment of the clarity of the full format during the 3D printing process is realized, which improves the stability and finished product quality of 3D printing.

CN119636076APending Publication Date: 2025-03-18SHANGHAI PRISM 3D TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411859559.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In the existing 3D printing technology, relying on manual adjustment of the printing format is inefficient, which makes it difficult to control the consistency of clarity and affects the quality of the finished 3D printing products.

Method used

By obtaining the format images of multiple positions of the printing format, the gradient function value of each format image is calculated. If the preset convergence threshold is not reached, the gradient descent algorithm is used to control the motor movement and adjust the angle and/or position of the printing format until the optimization adjustment of the full format clarity is achieved.

Benefits of technology

It realizes automatic, efficient and precise adjustment of full-frame clarity during 3D printing, improves the stability and accuracy consistency of 3D printing, and improves the quality of 3D printed products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119636076A_ABST
    Figure CN119636076A_ABST
Patent Text Reader

Abstract

The invention relates to a definition adjusting method and device for a printing breadth and a computer readable medium. The definition adjusting method comprises the steps that S1, breadth images of multiple positions of the printing breadth are obtained; s2, calculating a gradient function value of each breadth image; s3, judging whether the gradient function value is smaller than a preset convergence threshold value or not, and if not, executing the step S4; if yes, executing the definition adjusting method is ended; and S4, controlling the movement of the adjusting motor according to a gradient descent algorithm so as to adjust the angle and / or position of the printing breadth, and turning to execute the step S1. According to the method, the definition of the printing breadth in the 3D printing process can be automatically and efficiently adjusted, the consistency of adjustment of the definition of the printing breadth is improved, the stability and precision of the 3D printing process are improved, and the quality of a 3D printing finished product is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention mainly relates to the field of 3D printing technology, and in particular to a method and device for adjusting the clarity of a printing format, and a computer-readable medium. Background Art

[0002] Sub-pixel micro scanning 3D printing (Three-Dimensional Printing) is a 3D printing method based on sub-pixel micro scanning (SMS) technology. The sub-pixel micro scanning 3D printing process has high requirements for the clarity consistency of the entire format (i.e. the entire printing area).

[0003] At present, the clarity position of the print format is mainly adjusted manually, for example, by manually observing the clarity of the light spot of the print format image until the clarity of the entire format reaches the best. The manual adjustment method is inefficient and relies on the subjective judgment of the operator, making it difficult to control the consistency of clarity, which not only affects the quality of the 3D printed product, but also increases the complexity and time cost of the operation. Summary of the invention

[0004] The technical problem to be solved by the present application is to provide a method, device and computer-readable medium for adjusting the clarity of the printing format, which can automatically and efficiently adjust the clarity of the printing format during the 3D printing process, improve the consistency of the adjustment of the clarity of the printing format, improve the stability and accuracy of the 3D printing process, and improve the quality of the 3D printed products.

[0005] The technical solution adopted by the present application to solve the above-mentioned technical problems is a method for adjusting the clarity of a printed format, comprising: step S1: obtaining format images of multiple positions of the printed format; step S2: calculating the gradient function value of each format image; step S3: judging whether the gradient function value is less than a preset convergence threshold, if it is judged as no, executing step S4; if it is judged as yes, terminating the execution of the clarity adjustment method; step S4: controlling the movement of the adjustment motor according to the gradient descent algorithm, thereby adjusting the angle and / or position of the printed format, and executing step S1.

[0006] In one embodiment of the present application, the gradient function value is a Laplacian gradient function value; in step S2, the Laplacian gradient function value of each frame image is calculated using the following formula:

[0007]

[0008] Among them, x represents the horizontal coordinate of the pixel, y represents the vertical coordinate of the pixel, and G(x,y) represents the gradient at the pixel coordinate (x,y).

[0009] In one embodiment of the present application, the gradient G(x, y) at the pixel coordinate (x, y) is calculated using the following formula:

[0010]

[0011] Among them, f(x,y) represents the brightness of the pixel coordinate (x,y), L represents the convolution kernel, represents the Kronecker product.

[0012] In one embodiment of the present application, the convolution kernel L is expressed by the following equation:

[0013]

[0014] In one embodiment of the present application, in step S4, the step of controlling the movement of the regulating motor according to the gradient descent algorithm includes: using the following formula to calculate the target position z′ to be adjusted by the regulating motor:

[0015]

[0016] Wherein, z represents the current position of the regulating motor; α represents the descent rate; F(z) represents the Laplacian gradient function value of the corresponding image when the regulating motor is at the z position; Represents the gradient value of F(z);

[0017] Control the motor to move to the target position z′.

[0018] In one embodiment of the present application, the following formula is used to calculate the gradient value of F(z):

[0019]

[0020] Among them, ε represents the step length, which is related to the step size of the motor.

[0021] In one embodiment of the present application, the printing format includes a rectangle, and the format images at multiple positions include: a first format image, a second format image, a third format image, a fourth format image at the four corners of the printing format, and a fifth format image at the middle position of the printing format.

[0022] In one embodiment of the present application, the adjusting motor includes: a first adjusting motor, a second adjusting motor, and a third adjusting motor; the first adjusting motor and the second adjusting motor are arranged below the two corner positions on the first side of the printing format; the third adjusting motor is arranged below the middle position on the second side of the printing format, and the first side and the second side are opposite.

[0023] In order to solve the above technical problems, the present application also proposes a device for adjusting the clarity of a printed surface, comprising: a printing platform for carrying the printed surface; a microlens for scanning the printed surface to obtain a surface image; an XY positioning device connected to the microlens, the XY positioning device being able to drive the microlens to move and position along the X-axis and Y-axis directions; an image processing unit for acquiring surface images of multiple positions of the printed surface and calculating the gradient function value of each surface image; an adjustment motor connected to the printing platform, the adjustment motor being arranged below the printed surface; a control unit for controlling the movement of the adjustment motor according to a gradient descent algorithm, thereby adjusting the angle and / or position of the printing platform and the printed surface; a memory for storing instructions executable by a processor; and a processor for executing the instructions to implement the above method for adjusting the clarity of the printed surface.

[0024] In order to solve the above technical problems, the present application also proposes a computer-readable medium storing computer program codes, and the computer program codes implement the above printing format clarity adjustment method when executed by a processor.

[0025] The technical solution of the present application obtains images of multiple positions of the printed surface, calculates the gradient function value of the image to evaluate the clarity, and uses the gradient descent algorithm to iteratively control the motor movement if the preset convergence threshold is not reached to adjust the angle and / or position of the printed surface until the full-scale clarity is optimized. The present application can efficiently, automatically and accurately adjust the full-scale clarity during 3D printing, avoiding the subjectivity and inefficiency of manual adjustment. The present application significantly improves the stability and precision consistency of 3D printing, and can greatly improve the application value and production efficiency of 3D printing technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below with reference to the accompanying drawings, wherein:

[0027] Figure 1 is an exemplary flow chart of a method for adjusting the clarity of a printing format according to an embodiment of the present application;

[0028] Figure 2 It is a schematic diagram of the overall structure of a device for adjusting the clarity of a printing format according to an embodiment of the present application;

[0029] Figure 3 is a schematic diagram of a printing format and a format image in an embodiment of the present application;

[0030] Figure 4 This is a system block diagram of a print format clarity adjustment system according to an embodiment of the present application.

[0031] Description of the accompanying drawings in the specific implementation manner:

[0032] 200. A device for adjusting the clarity of the printing format;

[0033] 201. Printing platform;

[0034] 202. Microscope lens;

[0035] 203.XY positioning device;

[0036] 204. Light source;

[0037] 205. Adjust the motor;

[0038] 2051. A first regulating motor;

[0039] 2052. Second regulating motor;

[0040] 2053. The third regulating motor;

[0041] 310. Printing format;

[0042] 320.Format image;

[0043] 321. The first image;

[0044] 322. Second image;

[0045] 323. The third image;

[0046] 324. The fourth image;

[0047] 325. The fifth image. DETAILED DESCRIPTION

[0048] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below with reference to the accompanying drawings.

[0049] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein, and therefore the present application is not limited to the specific embodiments disclosed below.

[0050] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0051] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously. At the same time, other operations may be added to these processes, or one or more operations may be removed from these processes.

[0052] The present application proposes a method for adjusting the clarity of a print format, which can be applied to a sub-pixel micro-scanning 3D printing scenario. The present application is equivalent to an automatic adjustment scheme for sub-pixel micro-scanning clarity. The method for adjusting the clarity of a print format of the present application can be run in a local 3D printing device, for example, in a controller of a 3D printing device, or in a cloud platform. When the method for adjusting the clarity of a print format is run on a cloud platform, the data of the 3D printing device interacts with the data of the cloud platform through a wireless network. Exemplarily, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an interconnected cloud, and multiple clouds, or any combination thereof. The present application does not limit the operating environment of the method for adjusting the clarity of a print format.

[0053] Here, the clarity adjustment device of the printing format of the present application is first introduced to help understand the technical solution of the present application. The clarity adjustment method of the printing format of the present application will be introduced later.

[0054] Figure 2 1 is a schematic diagram of the overall structure of a device for adjusting the clarity of a printing format according to an embodiment of the present application. Figure 3 Schematic diagram of the printing format and format image in one embodiment of the present application. Figure 2 and Figure 3 As shown, the print format clarity adjustment device 200 of this embodiment includes: a printing platform 201, used to carry the print format 310; a microlens 202, used to scan the print format 310 to obtain a format image 320; an XY positioning device 203, connected to the microlens 202, the XY positioning device 203 can drive the microlens 202 to move and position along the X-axis direction and the Y-axis direction; an image processing unit (not shown), used to obtain the format images 320 of multiple positions of the print format 310, and calculate the gradient function value of each format image 320.

[0055] Continue to refer Figure 2 and Figure 3As shown, the device 200 for adjusting the clarity of the printing format also includes: an adjusting motor 205, which is connected to the printing platform 201 and is arranged below the printing format 310; a control unit (not shown in the figure), which is used to control the movement of the adjusting motor 205 according to the gradient descent algorithm, so as to adjust the angle and / or position of the printing platform 201 and the printing format 310; a memory (not shown in the figure), which is used to store instructions executable by a processor; and a processor (not shown in the figure), which is used to execute instructions to implement the method for adjusting the clarity of the printing format as described later.

[0056] For example, reference Figure 2 As shown, a light source 204 can be arranged above the printing platform 201, which can improve the shooting effect and clarity of the microscope lens 202. In practical applications, a microscope lens 202 with an XY positioning device can be used to capture images. The print format clarity adjustment device 200 of the present application can automatically scan the print format 310, evaluate the image gradient, and control the movement of the adjustment motor 205 according to the gradient descent algorithm, thereby adjusting the angle and position of the printing platform 201 and the format, and thus optimizing the overall clarity of the print format 310.

[0057] refer to Figure 3 As shown, in some embodiments, the printing format 310 includes a rectangle, and the format images 320 at multiple positions include: a first format image 321, a second format image 322, a third format image 323, and a fourth format image 324 at the four corners of the printing format 310, and a fifth format image 325 at the middle position of the printing format 310.

[0058] For example, considering the parallelism of the entire format, the image processing unit of the present application can be set to scan the four corners and the middle position of the print format 310, and then the image Laplacian gradient function values ​​of these five positions are calculated respectively as clarity evaluation indicators. The clarity evaluation indicators of these five positions can be set to be the same or different, and the present application does not impose any restrictions.

[0059] refer to Figure 2 As shown, in some embodiments, the adjustment motor includes: a first adjustment motor 2051, a second adjustment motor 2052, and a third adjustment motor 2053; the first adjustment motor 2051 and the second adjustment motor 2052 are arranged on the printing format 310 (corresponding to Figure 2The third adjustment motor 2053 is arranged below the two corner positions of the first side of the printing platform 201 in the printing format 310; the third adjustment motor 2053 is arranged below the middle position of the second side of the printing format 310, and the first side and the second side are relative. Exemplarily, the present application can effectively adjust the angle and position of the printing platform 201 on the basis of ensuring the stability of the printing platform 201 by setting three adjustment motors. In practical applications, the control unit of the present application can be set to iteratively adjust the three motors using the gradient descent method, and then measure the image clarity of the five positions in real time until the clarity index function of the five positions reaches a convergence threshold.

[0060] The following describes the method for adjusting the clarity of the printing format of the present application.

[0061] Figure 1 is an exemplary flow chart of a method for adjusting the clarity of a print format according to an embodiment of the present application, with reference to Figure 1 As shown, the method for adjusting the clarity of the printing format of this embodiment includes the following steps:

[0062] Step S1: Acquire format images of multiple positions of the printing format.

[0063] Step S2: Calculate the gradient function value of each frame image.

[0064] Step S3: Determine whether the gradient function value is less than a preset convergence threshold. If it is not, proceed to step S4; if it is yes, terminate the clarity adjustment method.

[0065] Step S4: Control and adjust the motor movement according to the gradient descent algorithm, thereby adjusting the angle and / or position of the printing format, and then proceed to execute step S1.

[0066] The above steps S1 to S4 are described in detail below:

[0067] In step S1, a format image of multiple positions of the printing format is obtained. Figure 3 As shown, a first format image 321 , a second format image 322 , a third format image 323 , a fourth format image 324 , and a fifth format image 325 at five positions of the printing format 310 can be acquired.

[0068] In step S2, the gradient function value of each frame image is calculated. Exemplarily, the gradient function value can be used as a clarity evaluation index.

[0069] In some embodiments, the gradient function value is a Laplacian gradient function value; in step S2, the Laplacian gradient function value of each frame image is calculated using the following formula (1):

[0070] F=∑x ∑ y G 2 (x,y) (1)

[0071] Wherein, x represents the horizontal coordinate of the pixel, y represents the vertical coordinate of the pixel, and G(x,y) represents the gradient at the pixel coordinate (x,y). Exemplarily, the present application uses the Laplacian gradient function value as an evaluation criterion to effectively measure the edge clarity and detail information of the image.

[0072] In some embodiments, the gradient G(x, y) at the pixel coordinate (x, y) is calculated using the following formula (2):

[0073]

[0074] Among them, f(x,y) represents the brightness of the pixel coordinate (x,y), L represents the convolution kernel, Denotes the Kronecker product. Exemplarily, the above formula (2) can accurately capture the brightness change rate of the pixel points in the image.

[0075] In some embodiments, the convolution kernel L is expressed by the following equation (3):

[0076]

[0077] In step S3, it is determined whether the gradient function value is less than a preset convergence threshold. If it is determined to be no, the process proceeds to step S4; if it is determined to be yes, the definition adjustment method is terminated. For example, the preset convergence threshold may be a preset and fixed value. The present application adjusts the motor movement by continuously iterative control. Figure 3 When the clarity index functions of the five positions shown reach a convergence threshold, the adjustment is stopped, thereby enabling fully automatic clarity adjustment.

[0078] In step S4, the movement of the motor is adjusted according to the gradient descent algorithm to adjust the angle and / or position of the printing format, and the process then proceeds to step S1.

[0079] In some embodiments, in step S4, the step of controlling and adjusting the motor motion according to the gradient descent algorithm includes:

[0080] Step S410: Calculate the target position z′ that the motor needs to adjust using the following formula (4):

[0081]

[0082] Wherein, z represents the current position of the regulating motor; α represents the descent rate, and α can be taken from 0.001 to 0.3; F(z) represents the Laplacian gradient function value of the corresponding image when the regulating motor is at the z position; represents the gradient value of F(z); the target position z′ is equivalent to the position after the motor is adjusted.

[0083] Step S420: Control the regulating motor to move to the target position z′.

[0084] Exemplarily, formula (4) is equivalent to a gradient descent algorithm. The present application can accurately calculate the target adjustment position of the regulating motor through the gradient descent algorithm, and can effectively guide the regulating motor to move in the direction with the fastest gradient descent, thereby achieving continuous optimization of the print format clarity until the optimal state is reached.

[0085] In some embodiments, the gradient value of F(z) is calculated using the following formula (5):

[0086]

[0087] Wherein, ε represents the step length, and ε is related to the step length of the regulating motor. Exemplarily, the value of ε can be set according to the step length of the regulating motor.

[0088] The technical solution of the present application obtains images of multiple positions of the printed surface, calculates the gradient function value of the image to evaluate the clarity, and uses the gradient descent algorithm to iteratively control the motor movement if the preset convergence threshold is not reached to adjust the angle and / or position of the printed surface until the full-scale clarity is optimized. The present application can efficiently, automatically and accurately adjust the full-scale clarity during 3D printing, avoiding the subjectivity and inefficiency of manual adjustment. The present application significantly improves the stability and precision consistency of 3D printing, and can greatly improve the application value and production efficiency of 3D printing technology.

[0089] The present application also includes a print format definition adjustment system, including a memory and a processor, wherein the memory is used to store instructions executable by the processor; the processor is used to execute the instructions to implement the print format definition adjustment method described above.

[0090] Figure 4 1 is a system block diagram of a print format clarity adjustment system according to an embodiment of the present application. Figure 4As shown, the print format definition adjustment system 400 may include an internal communication bus 401, a processor 402, a read-only memory (ROM) 403, a random access memory (RAM) 404, and a communication port 405. The print format definition adjustment system 400 may also include a hard disk 406. The internal communication bus 401 can realize data communication between the components of the print format definition adjustment system 400. The processor 402 can make judgments and issue prompts. In some embodiments, the processor 402 can be composed of one or more processors. The communication port 405 can realize data communication between the print format definition adjustment system 400 and the outside. In some embodiments, the print format definition adjustment system 400 can send and receive information and data from the network through the communication port 405. The print format definition adjustment system 400 may also include different forms of program storage units and data storage units, such as a hard disk 406, a read-only memory (ROM) 403 and a random access memory (RAM) 404, which can store various data files used for computer processing and / or communication, and possible program instructions executed by the processor 402. The processor executes these instructions to implement the main part of the method. The results of the processor processing are transmitted to the user device through the communication port and displayed on the user interface.

[0091] The above-mentioned method for adjusting the clarity of the printing format can be implemented as a computer program, stored in the hard disk 406, and loaded into the processor 402 for execution to implement the method for adjusting the clarity of the printing format of the present application.

[0092] The present application also includes a computer-readable medium storing a computer program code, which, when executed by a processor, implements the method for adjusting the clarity of the printed format described above.

[0093] When the method for adjusting the clarity of the printed format is implemented as a computer program, it can also be stored in a computer-readable storage medium as a product. For example, a computer-readable storage medium may include, but is not limited to, a magnetic storage device (e.g., a hard disk, a floppy disk, a magnetic strip), an optical disk (e.g., a compact disk (CD), a digital versatile disk (DVD)), a smart card, and a flash memory device (e.g., an electrically erasable programmable read-only memory (EPROM), a card, a stick, a key drive). In addition, the various storage media described herein can represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media (and / or storage media) that can store, contain and / or carry code and / or instructions and / or data.

[0094] It should be understood that the embodiments described above are only illustrative. The embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For hardware implementation, the processor may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, and / or other electronic units designed to perform the functions described herein, or a combination thereof.

[0095] Some aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". The processor may be one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or combinations thereof. In addition, various aspects of the present application may be expressed as computer products located in one or more computer-readable media, which include computer-readable program codes. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, tapes ...), optical disks (e.g., compact disks CDs, digital versatile disks DVDs ...), smart cards, and flash memory devices (e.g., cards, sticks, key drives ...).

[0096] A computer-readable medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may have a variety of manifestations, including electromagnetic, optical, etc., or a suitable combination. A computer-readable medium may be any computer-readable medium other than a computer-readable storage medium, which may be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit a program for use. The program code on the computer-readable medium may be propagated via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above mediums.

[0097] The basic concepts have been described above. Obviously, for those skilled in the art, the above application disclosure is only an example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.

[0098] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.

[0099] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values ​​is as accurate as possible within the feasible range.

Claims

1. A method for adjusting the clarity of a printing format, characterized in that: include: Step S1: acquiring format images of multiple positions of the printing format; Step S2: Calculate the gradient function value of each frame image; Step S3: determining whether the gradient function value is less than a preset convergence threshold value, if the determination is no, proceeding to step S4; If the judgment is yes, then the definition adjustment method is terminated; Step S4: Control and adjust the motor movement according to the gradient descent algorithm, thereby adjusting the angle and / or position of the printing format, and then executing step S1.

2. The method for adjusting the clarity according to claim 1, characterized in that: The gradient function value is the Laplacian gradient function value; in step S2, the Laplacian gradient function value of each frame image is calculated using the following formula: Among them, x represents the horizontal coordinate of the pixel, y represents the vertical coordinate of the pixel, and G(x,y) represents the gradient at the pixel coordinate (x,y).

3. The method for adjusting the clarity as claimed in claim 2, characterized in that: The gradient G(x, y) at the pixel coordinate (x, y) is calculated using the following formula: Wherein, f(x,y) represents the brightness of the pixel coordinate (x,y), L represents the convolution kernel, represents the Kronecker product.

4. The method for adjusting the clarity as claimed in claim 3, characterized in that: The convolution kernel L is expressed by the following equation:

5. The method for adjusting clarity according to claim 1 or 2, characterized in that: In step S4, the step of controlling and adjusting the motor motion according to the gradient descent algorithm includes: The target position z′ to be adjusted by the regulating motor is calculated using the following formula: Wherein, z represents the current position of the regulating motor; α represents the descent rate; F(z) represents the Laplacian gradient function value of the corresponding image when the regulating motor is at the z position; Represents the gradient value of F(z); The adjusting motor is controlled to move to the target position z'.

6. The method for adjusting clarity as claimed in claim 5, characterized in that: The gradient value of F(z) is calculated using the following formula: Wherein, ε represents the step length, and ε is related to the step length of the regulating motor.

7. The method for adjusting clarity according to claim 1, characterized in that: The printing format comprises a rectangle, and the format images at the multiple positions comprise: a first format image, a second format image, a third format image, a fourth format image at the four corner positions of the printing format, and a fifth format image at the middle position of the printing format.

8. The method for adjusting clarity according to claim 1 or 7, characterized in that: The adjusting motor includes: a first adjusting motor, a second adjusting motor, and a third adjusting motor; the first adjusting motor and the second adjusting motor are arranged below two corner positions on the first side of the printing format; the third adjusting motor is arranged below the middle position on the second side of the printing format, and the first side and the second side are opposite.

9. A device for adjusting the clarity of a printed page, characterized in that: include: Printing platform, used to carry the printing format; A microscope lens, used for scanning the printed format to obtain a format image; An XY positioning device is connected to the microscope head, and the XY positioning device can drive the microscope head to move and position along the X-axis direction and the Y-axis direction; An image processing unit, used for acquiring format images at multiple positions of the printing format and calculating a gradient function value of each format image; An adjusting motor connected to the printing platform, wherein the adjusting motor is arranged below the printing surface; A control unit, used for controlling the movement of the regulating motor according to a gradient descent algorithm, so as to adjust the angle and / or position of the printing platform and the printing format; a memory for storing instructions executable by a processor; A processor is used to execute the instructions to implement the method for adjusting the clarity of the printing format as described in any one of claims 1-8.

10. A computer readable medium storing computer program code, characterized in that: When the computer program code is executed by a processor, the method for adjusting the clarity of a printing format as described in any one of claims 1 to 8 is implemented.