CN116993613A - A laser printer image density correction method, device, equipment and medium - Google Patents
A laser printer image density correction method, device, equipment and medium Download PDFInfo
- Publication number
- CN116993613A CN116993613A CN202310985623.8A CN202310985623A CN116993613A CN 116993613 A CN116993613 A CN 116993613A CN 202310985623 A CN202310985623 A CN 202310985623A CN 116993613 A CN116993613 A CN 116993613A
- Authority
- CN
- China
- Prior art keywords
- standard
- image
- unit block
- equal
- coordinate system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
- G06T2207/10008—Still image; Photographic image from scanner, fax or copier
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20021—Dividing image into blocks, subimages or windows
Landscapes
- Image Processing (AREA)
Abstract
The application is suitable for the technical field of image processing, and provides a method, a device, equipment and a medium for correcting image density of a laser printer. The image density correction method of the laser printer comprises the following steps: dividing a print image corresponding to data to be printed into a plurality of standard unit blocks; respectively placing the standard equal parts in a plane coordinate system aiming at each standard equal part, acquiring vertex coordinates of the standard equal parts in the plane coordinate system, and determining reference coordinate points of the standard equal parts in the plane coordinate system by utilizing the vertex coordinates; scanning the divided printing image to obtain a mapping image; comparing the printed image with the mapping image to determine a distorted unit block which is distorted in the mapping image; and correcting the distorted unit blocks in the mapping image by using the reference coordinate points of the standard equal parts in the plane coordinate system to obtain the mapping image after density correction. The image density correction method of the laser printer can improve the image density correction effect.
Description
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, and a medium for correcting image density of a laser printer.
Background
An image forming apparatus is a device that forms an image on a recording medium by an image forming principle, such as a printer, a copier, a facsimile machine, a multi-function image forming and copying apparatus, an electrostatic printing apparatus, and any other similar apparatus. In order to perform an image forming operation with an image forming apparatus, a control device generally converts print data into a printer language and transmits the printer language to the image forming apparatus. Wherein the image density is used to reflect the depth of the image. In the image forming process, there are many factors that affect the image density. For example, changes in the environment such as temperature or humidity, large gaps between the printed original and the scanning device, changes in voltage, etc. can affect the image density of the imaged image. Therefore, in the image forming process, image density correction is required.
The existing printer image density correction method is usually to directly sample parameters of end points and coordinate points of an image, and then fill or delete the parameters to realize the correction of the image density, but the correction is easy to generate omission, so that the effect of image density correction is poor, and the corrected effect is difficult to be visually recognized by naked eyes.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a medium for correcting image density of a laser printer, which can solve the problem of poor image density correction effect.
In a first aspect, an embodiment of the present application provides a method for correcting an image density of a laser printer, including:
dividing a print image corresponding to data to be printed into a plurality of standard unit blocks; each standard cell block comprises a plurality of standard aliquots;
respectively placing the standard equal parts in a plane coordinate system aiming at each standard equal part, acquiring vertex coordinates of the standard equal parts in the plane coordinate system, and determining reference coordinate points of the standard equal parts in the plane coordinate system by utilizing the vertex coordinates; the plane coordinate system is a two-dimensional rectangular coordinate system constructed by taking a scanning starting point of a scanning system of the laser printer as an origin;
scanning the divided printing image to obtain a mapping image;
comparing the printed image with the mapping image to determine a distorted unit block which is distorted in the mapping image;
and correcting the distorted unit blocks in the mapping image by using the reference coordinate points of the standard equal parts in the plane coordinate system to obtain the mapping image after density correction.
Optionally, the vertex coordinates of the ith standard aliquot of the kth standard cell block of the plurality of standard cell blocks are:
{i 1 (x 1 ,y 1 );i 2 (x 2 ,y 1 );i 3 (x 1 ,y 2 );i 4 (x 2 ,y 2 )}
wherein I E, i=1, 2,..i, E is a standard equal-sized sequence number matrix containing I elements, k=1, 2,..k, K represents the total number of standard cell blocks, I 1 (x 1 ,y 1 ) The first vertex coordinates, i, representing the ith standard aliquot of the kth standard cell block 2 (x 2 ,y 1 ) Second vertex coordinates, i, representing the ith standard aliquot of the kth standard cell block 3 (x 1 ,y 2 ) Third vertex coordinates, i, representing the ith standard aliquot of the kth standard cell block 4 (x 2 ,y 2 ) Fourth vertex coordinates, x, representing the ith standard aliquot of the kth standard cell block 1 And x 2 All representing the abscissa value, y 1 And y 2 All represent ordinate values.
Optionally, determining the reference coordinate point of the standard aliquot in the planar coordinate system using the vertex coordinates includes:
by the formula:
calculating the reference coordinate point p of the ith standard aliquot of the kth standard cell block i (a i ,b i );
Wherein a is i Representing ginsengCoordinate point of examination p i And (b) the abscissa value of b i Representing the position point p i Is defined by the longitudinal coordinate values of (a).
Optionally, the mapping image includes mapping blocks corresponding to the standard cell blocks one by one;
comparing the printed image with the mapping image to determine a distorted unit block in the mapping image, wherein the distorted unit block comprises:
Comparing the shape of the mapping block with the shape of the standard unit block corresponding to the mapping block for each mapping block respectively;
if the shape of the mapping block is different from the shape of the standard unit block corresponding to the mapping block, determining that the mapping block is a distorted unit block with distortion.
Optionally, the standard cell block corresponding to the kth distorted cell block is the kth standard cell block of the printed image, and the kth distorted cell block includes I distorted aliquots.
Optionally, correcting the distorted unit block in the mapped image by using a reference coordinate point of the standard equal part in the plane coordinate system to obtain a mapped image after density correction, including:
for the ith distortion equal part of the kth distortion unit block, if i is not the element of the E middle column, acquiring the reference vertex coordinates of the ith distortion equal part of the kth distortion unit block by utilizing the reference coordinate points of the standard equal part of the kth standard unit block in the plane coordinate system;
if i is the element of the E middle column, the reference vertex coordinates of the ith twisting equal part are obtained by utilizing the reference vertex coordinates of the twisting equal parts adjacent to the ith twisting equal part in the kth twisting unit block;
correcting the reference vertex coordinates of the ith warp aliquot of the kth warp unit block based on the reference vertex coordinates of the ith warp aliquot of the kth warp unit block;
If the total number of columns of E is even, the middle column of E is the middle two columns, and if the total number of columns of E is odd, the middle column of E is the middle one column.
Optionally, using the reference coordinate point of the standard aliquot of the kth standard cell block in the planar coordinate system, obtaining the reference vertex coordinate of the ith distorted aliquot of the kth distorted cell block includes:
by the formula:
Δa i,j =|a j -a i |
calculating a corrected spacing Δa between the ith and jth warp aliquots on the abscissa i,j ;
Wherein a is i Reference coordinate point p representing the ith equal portion of the kth standard cell block of the printed image i Is a j Reference coordinate point p representing the jth equal part of the kth standard cell block of the printed image j The j-th aliquot is an adjacent aliquot to the I-th aliquot, k=1, 2..k, K represents the total number of standard cell blocks, j noteq I, I, j E, E is a sequence number matrix of standard aliquots, containing I elements;
by the formula:
Δb i,j =|b j -b i |
calculating a corrected pitch Δb on the ordinate between the ith and jth warped aliquots i,j ;
Wherein b i Reference coordinate point p representing kth standard cell block of printed image i Is the longitudinal coordinate value of b j Reference coordinate point p representing the jth equal part of the kth standard cell block of the printed image j Is a vertical coordinate value of (2);
correction distance Δa according to abscissa i,j And a correction pitch Δb of the ordinate i,j And correcting the interval between the vertexes of the ith warp equal parts to obtain the reference vertex coordinates of the ith warp equal parts of the kth warp unit blocks.
In a second aspect, an embodiment of the present application provides a laser printer image density correction apparatus, including:
the dividing module is used for dividing the printing image corresponding to the data to be printed into a plurality of standard unit blocks; each standard cell block comprises a plurality of standard aliquots;
the calculation module is used for respectively arranging the standard equal parts in a plane coordinate system for each standard equal part, acquiring vertex coordinates of the standard equal parts in the plane coordinate system, and determining reference coordinate points of the standard equal parts in the plane coordinate system by utilizing the vertex coordinates; the plane coordinate system is a two-dimensional rectangular coordinate system constructed by taking a scanning starting point of a scanning system of the laser printer as an origin;
the scanning module is used for scanning the divided printing image to obtain a mapping image;
the comparison module is used for comparing the printed image and the mapping image and determining a distorted unit block which is distorted in the mapping image;
and the correction module is used for correcting the distorted unit blocks in the mapping image by using the reference coordinate points of the standard equal parts in the plane coordinate system to obtain the mapping image after density correction.
In a third aspect, an embodiment of the present application provides a laser printer, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the above-mentioned method for correcting image density of the laser printer when executing the above-mentioned computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described laser printer image density correction method.
The scheme of the application has the following beneficial effects:
in the embodiment of the application, the printing image corresponding to the data to be printed is divided into a plurality of standard unit blocks, then the standard equal parts are respectively arranged in a plane coordinate system for each standard equal part, the vertex coordinates of the standard equal parts are obtained in the plane coordinate system, the vertex coordinates are used for determining the reference coordinate points of the standard equal parts in the plane coordinate system, the divided printing image is scanned to obtain a mapping image, the printing image and the mapping image are compared to determine the distorted unit blocks in the mapping image, and finally the distorted unit blocks in the mapping image are corrected by using the reference coordinate points of the standard equal parts in the plane coordinate system to obtain the mapping image after density correction. The printing image corresponding to the data to be printed is divided into a plurality of standard unit blocks, each standard unit block is divided into a plurality of standard equal parts, the printing image can be finely divided, the divided printing image is scanned to obtain a mapping image, the shape change of the distorted unit blocks in the mapping image before and after correction is easy to observe, the effect of image density correction is easy to recognize, the distorted unit blocks in the mapping image are corrected by utilizing the reference coordinate points of the standard equal parts in a plane coordinate system, the correction accuracy can be improved, and the correction effect of the image density is improved.
Other advantageous effects of the present application will be described in detail in the detailed description section which follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for correcting image density of a laser printer according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a printed image according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a standard cell block according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating the correction of a distorted cell block according to an embodiment of the present application;
FIG. 5 is a block flow diagram of a method for correcting image density of a laser printer according to an embodiment of the present application;
FIG. 6 is a block diagram of an image density correction device for a laser printer according to an embodiment of the present application;
fig. 7 is a block diagram of a laser printer according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Aiming at the problem of poor effect of image density correction, the embodiment of the application provides a laser printer image density correction method, which divides a printing image corresponding to data to be printed into a plurality of standard unit blocks, respectively aims at each standard equal part, places the standard equal part in a plane coordinate system, acquires vertex coordinates of the standard equal part in the plane coordinate system, determines a reference coordinate point of the standard equal part in the plane coordinate system by using the vertex coordinates, scans the divided printing image to obtain a mapping image, compares the printing image with the mapping image to determine a distorted unit block in the mapping image, and finally corrects the distorted unit block in the mapping image by using the reference coordinate point of the standard equal part in the plane coordinate system to obtain the mapping image after density correction. The printing image corresponding to the data to be printed is divided into a plurality of standard unit blocks, each standard unit block is divided into a plurality of standard equal parts, the printing image can be finely divided, the divided printing image is scanned to obtain a mapping image, the shape change of the distorted unit blocks in the mapping image before and after correction is easy to observe, the effect of image density correction is easy to recognize, the distorted unit blocks in the mapping image are corrected by utilizing the reference coordinate points of the standard equal parts in a plane coordinate system, the correction accuracy can be improved, and the correction effect of the image density is improved.
The image density correction method of the laser printer provided by the application is exemplified below.
As shown in fig. 1, the method for correcting the image density of the laser printer provided by the application comprises the following steps:
step 11, dividing the print image corresponding to the data to be printed into a plurality of standard cell blocks.
Each standard cell block described above includes a plurality of standard aliquots.
It should be noted that the sizes of the plurality of standard cell blocks may be equal; the size of the standard aliquot may be the smallest pixel point scanned by the scanning system of the laser printer.
For example, the printed image is divided into K standard unit blocks, each standard unit block is rectangular and has an equal size, each standard unit block includes I standard equal parts, and the size of each standard equal part is the size of the I minimum pixel point, which is scanned by the scanning system of the laser printer, as can be known.
For example, as shown in fig. 2, the printed image is a 9×8 pixel image, and the printed image is divided into 12 standard cell blocks, each including 6 standard aliquots, and a total of 72 standard aliquots. In the figure, each grid is a standard equal part, the size of each standard equal part is one pixel, the black grid is a black pixel, and the white grid is a white pixel.
It should be noted that the printed image is divided into a plurality of standard unit blocks, and each standard unit block is divided into a plurality of standard equal parts, so that the printed image can be finely divided, the minimum pixel point scanned by the scanning system of the laser printer can be used as the processing object of image density correction, and the image density can be finely corrected.
And step 12, respectively placing the standard equal parts in a plane coordinate system for each standard equal part, acquiring vertex coordinates of the standard equal parts in the plane coordinate system, and determining reference coordinate points of the standard equal parts in the plane coordinate system by using the vertex coordinates.
The planar coordinate system is a two-dimensional rectangular coordinate system constructed by taking a scanning starting point of a scanning system of the laser printer as an origin.
In some embodiments of the present application, the standard equal parts are placed in a plane coordinate system, vertex coordinates of the standard equal parts are obtained in the plane coordinate system, and reference coordinate points of the standard equal parts in the plane coordinate system are determined by using the vertex coordinates, and the method specifically comprises the following steps:
firstly, placing the standard equal parts in a plane coordinate system to obtain the vertex coordinates of the ith standard equal part of the kth standard unit block in the plurality of standard unit blocks as follows:
{i 1 (x 1 ,y 1 );i 2 (x 2 ,y 1 );i 3 (x 1 ,y 2 );i 4 (x 2 ,y 2 )}
Wherein I E, i=1, 2,..i, E is a standard equal-sized sequence number matrix containing I elements, k=1, 2,..k, K represents the total number of standard cell blocks, I 1 (x 1 ,y 1 ) The first vertex coordinates, i, representing the ith standard aliquot of the kth standard cell block 2 (x 2 ,y 1 ) Second vertex coordinates, i, representing the ith standard aliquot of the kth standard cell block 3 (x 1 ,y 2 ) Third vertex coordinates, i, representing the ith standard aliquot of the kth standard cell block 4 (x 2 ,y 2 ) Fourth vertex coordinates, x, representing the ith standard aliquot of the kth standard cell block 1 X represents the abscissa value of the first vertex coordinate and the third vertex coordinate of the ith standard aliquot of the kth standard cell block 2 The abscissa value of the second vertex coordinate and the fourth vertex coordinate, y, representing the ith standard aliquot of the kth standard cell block 1 The ordinate values of the first vertex coordinates and the second vertex coordinates representing the ith standard aliquot of the kth standard cell block, y 2 And the ordinate values of the third vertex coordinates and the fourth vertex coordinates of the ith standard aliquot of the kth standard cell block.
It should be noted that, the elements in the sequence number matrix of the standard equal parts are sequence numbers of the standard equal parts sequenced in sequence, and the dimension of the sequence number matrix is changed according to different division modes of the standard unit blocks. For example, the standard cell block is divided into 9 standard equal parts in a 3×3 manner, and the sequence numbers of the standard equal parts are sequentially ordered from the first column of the first row, so that the sequence number matrix of the standard equal parts is a 3×3 matrix with 9 elements in total and the element ordering identical to that of the standard equal parts.
And secondly, determining a reference coordinate point of the standard equal part in a plane coordinate system by using vertex coordinates, wherein the reference coordinate point is specifically defined by the formula:
calculating the reference coordinate point p of the ith standard aliquot of the kth standard cell block i (a i ,b i );
Wherein a is i Representing a reference coordinate point p i And (b) the abscissa value of b i Representing the position point p i Is defined by the longitudinal coordinate values of (a).
The above standard cell block is exemplarily described below with reference to a specific example.
As shown in fig. 3, the standard cell block is divided into 3×2 standard equal parts, and the standard cell block and the standard equal parts are rectangular. For the 1 st standard aliquot, the first vertex coordinate is 1 by reading the coordinate value of its vertex on the x-axis (i.e., the abscissa axis) and the coordinate value on the y-axis (i.e., the ordinate axis) 1 (0, 2), the second vertex coordinates 1 2 (1, 2), the third vertex coordinates are 1 3 (0, 1), the fourth vertex coordinate is 1 4 (1,1). Similarly, the vertex coordinates of the 2 nd standard aliquot were 2 1 (1,2)、2 2 (2,2)、3 3 (1,1)、3 4 (2, 1), the vertex coordinates of the 3 rd standard aliquot are 3 1 (2,2)、3 2 (3,2)、3 3 (2,1)、3 4 (3, 1), vertex coordinates of the 4 th standard aliquot were 4 1 (0,1)、4 2 (1,1)、4 3 (0,0)、4 4 (1, 0), the 5 th standard aliquot has a vertex coordinate of 5 1 (1,1)、5 2 (2,1)、5 3 (1,0)、5 4 (2, 0), the 6 th standard aliquot has a vertex coordinate of 6 1 (2,1)、6 2 (3,1)、6 3 (2,0)、6 4 (3,0)。
It is worth mentioning that the reference coordinate point is used for referencing the interval between standard aliquots.
And step 13, scanning the divided printing image to obtain a mapping image.
In some embodiments of the present application, the divided print image may be scanned by a scanning system of a laser printer to obtain a mapped image.
It should be noted that, for the mapping image, the mapping image may be obtained by a common scanning technique, such as laser spot scanning, line scanning, and common scanning. In the process of obtaining the mapping image, the mapping image may be distorted due to factors such as voltage, static electricity, unstable scanning system and the like.
And 14, comparing the printed image with the mapping image to determine a distorted unit block which is distorted in the mapping image.
The map image includes map blocks corresponding to a plurality of standard cell blocks one by one.
Specifically, for each mapping block, comparing the shape of the mapping block with the shape of the standard unit block corresponding to the mapping block; if the shape of the mapping block is different from the shape of the standard unit block corresponding to the mapping block, determining that the mapping block is a distorted unit block with distortion; if the shape of the mapping block is the same as the shape of the unit block corresponding to the standard mapping block, judging that the mapping block is not distorted.
The standard cell block corresponding to the kth distorted cell block is the kth standard cell block of the printed image, and the kth distorted cell block includes I distorted equal parts.
For example, for the kth mapping block, the corresponding standard unit block is the kth standard unit block of the printed image, the kth standard unit block is rectangular, the shape of the kth mapping block is compared with the shape of the kth standard unit block, and if the shape of the kth mapping block is not rectangular or is different from the shape of the kth standard unit block in size, the kth mapping block is judged to have distortion, and the mapping block is the distorted unit block; if the shape of the kth mapping block is rectangular and the same as the shape and the size of the kth standard cell block, judging that the kth mapping block is not distorted and does not need correction.
It should be noted that, by comparing the printed image and the mapped image, the distorted unit block in the mapped image is determined, and the object to be corrected can be determined.
And 15, correcting the distorted unit blocks in the mapping image by using the reference coordinate points of the standard equal parts in the plane coordinate system to obtain the mapping image after density correction.
In some embodiments of the application, the steps include:
the method comprises the steps that firstly, for an ith distortion equal part of a kth distortion unit block, if i is not an element of an E middle column, a reference coordinate point of a standard equal part of the kth standard unit block in a plane coordinate system is utilized to obtain a reference vertex coordinate of the ith distortion equal part of the kth distortion unit block;
specifically, the formula is as follows:
Δa i,j =|a j -a i |
calculating a corrected spacing Δa between the ith and jth warp aliquots on the abscissa i,j ;
Wherein a is i Reference coordinate point p representing the ith equal portion of the kth standard cell block of the printed image i Is a j Reference coordinate point p representing the jth equal part of the kth standard cell block of the printed image j The j-th aliquot is an adjacent aliquot to the I-th aliquot, k=1, 2..k, K represents the total number of standard cell blocks, j noteq I, I, j E, E is a sequence number matrix of standard aliquots, containing I elements;
by the formula:
Δb i,j =|b j -b i |
calculating a corrected pitch Δb on the ordinate between the ith and jth warped aliquots i,j ;
Wherein b i Reference coordinate point p representing kth standard cell block of printed image i Is the longitudinal coordinate value of b j Reference coordinate point p representing the jth equal part of the kth standard cell block of the printed image j Is a vertical coordinate value of (2);
correction distance Δa according to abscissa i,j And a correction pitch Δb of the ordinate i,j Correcting the interval between the vertexes of the ith distorted equal part to obtain the reference vertex coordinates of the distorted equal part;
secondly, if i is the element of the E middle column, the reference vertex coordinates of the ith twisting equal part are obtained by utilizing the reference vertex coordinates of the twisting equal parts adjacent to the ith twisting equal part in the kth twisting unit block;
third, correcting the reference vertex coordinates of the ith warp aliquot of the kth warp unit block based on the reference vertex coordinates of the ith warp aliquot of the kth warp unit block.
If the total number of columns of E is even, the middle column of E is the middle two columns, and if the total number of columns of E is odd, the middle column of E is the middle one column.
Specifically, the vertices of the warped aliquots are moved to corresponding reference vertex coordinates.
For example, the sequence matrix has 5 columns in total, the middle column of the sequence matrix is the 3 rd column, and if the sequence matrix has 4 columns in total, the middle column of the sequence matrix is the 2 nd column and the 3 rd column. For a warped block of 3×2, if its 1 st vertex of the 1 st warped portion has a coordinate of 1' 1 (x′ 1 ,y′ 1 ) The correction interval delta a between the 1 st twist equal part and the 2 nd twist equal part in the horizontal coordinate is obtained through the standard unit block corresponding to the twist unit block 1,2 And a correction pitch Δb on the ordinate 1,2 Corrected spacing Δa on the abscissa between the 1 st and 4 th twisted aliquots 1,4 And a correction pitch Δb on the ordinate 1,4 Then the reference vertex coordinates of the 2 nd vertex of the 1 st warp aliquot is 1' 2 (x′ 1 +Δa 1,2 ,y′ 1 +Δb 1,2 ) The reference vertex coordinates of the 3 rd vertex of the 1 st warp aliquot are 1' 3 (x′ 1 +Δa 1,4 ,y′ 1 +Δb 1,4 ) The reference vertex coordinates of the 4 th vertex of the 1 st warp aliquot are 1' 4 (x′ 1 +Δa 1,2 +Δa 1,4 ,y′ 1 +Δb 1,2 +Δb 1,4 ) And (3) moving the four vertex coordinates of the 1 st distortion equal part to the corresponding reference vertex coordinates to finish the correction of the 1 st distortion equal part. Similarly, the 3 rd, 4 th and 6 th distorted parts are corrected, the reference vertex coordinates of the 2 nd and 5 th distorted parts are determined through the corrected distorted parts, and the 2 nd and 5 th distorted parts are corrected to complete the correction of the distorted unit blocks.
The determination of the 1 st vertex coordinates of the distorted aliquot was: determining whether a distorted aliquot adjacent to the distorted aliquot has been corrected, if so, using the reference vertex coordinates of the common vertex between the corrected distorted aliquot and the distorted aliquot as the 1 st vertex coordinates of the distorted aliquot, and determining that the 1 st vertex coordinates of the 4 th distorted aliquot are 4 'when correcting the 4 th distorted aliquot as in the above example' 1 (x′ 1 +Δa 1,4 ,y′ 1 +Δb 1,4 ) Otherwise, the coordinates of the four vertices of the twisted aliquot, which are not shared with other twisted aliquots, are taken as the 1 st vertex coordinates.
It should be noted that, the reference vertex coordinates of the distorted equal parts in the middle row are determined by the reference vertex coordinates of the adjacent distorted equal parts, so that the influence of the middle part of the distorted unit block during correction can be reduced, and the smoothness of the corrected unit block can be improved.
The above steps are exemplified in conjunction with a specific example.
As shown in fig. 4, one standard cell block divided into the 1 st standard cell block, the 2 nd standard cell block, the 3 rd standard cell block, the 4 th standard cell block, the 5 th standard cell block and the 6 th standard cell block, which are 6 standard cell blocks, is changed in the shape of the mapping image obtained after scanning, and the vertex coordinates of the 6 standard cell blocks are changed in both the horizontal axis (x-axis) and the vertical axis (y-axis) to become distorted cell blocks, and the shape of the distorted cell block becomes standard again after correction.
It can be seen that the correction of the distorted unit blocks in the mapping image by using the reference coordinate points of the standard equal parts in the plane coordinate system can improve the correction accuracy and the correction effect of the mapping image.
The image density correction method for a laser printer according to the present application will be exemplarily described with reference to a specific example.
As shown in fig. 5, the original image (i.e., the print image corresponding to the data to be printed) is scanned by a scanning module of the laser printer to obtain a map (i.e., the map image), after the map image is subjected to density correction, if the density correction is not achieved, the density correction is performed again on the map image after the density correction until the preset effect is achieved, the map image after the density correction is used as the print image, and the laser printer prints the print image.
It is worth mentioning that the print image corresponding to the data to be printed is divided into a plurality of standard unit blocks, each standard unit block is divided into a plurality of standard equal parts, the print image can be finely divided, the divided print image is scanned to obtain a mapping image, the shape change of the distorted unit blocks in the mapping image before and after correction is easy to observe, the effect of image density correction is easy to recognize, the standard equal parts are utilized to correct the distorted unit blocks in the mapping image at the reference coordinate points in the plane coordinate system, the correction accuracy can be improved, and the correction effect of the mapping image is improved.
The image density correction device for a laser printer according to the present application will be exemplarily described.
As shown in fig. 6, an embodiment of the present application provides a laser printer image density correction apparatus 600, including:
a dividing module 601, configured to divide a print image corresponding to data to be printed into a plurality of standard cell blocks; each standard cell block comprises a plurality of standard aliquots;
the calculation module 602 is configured to place the standard aliquots in a plane coordinate system for each standard aliquot, obtain vertex coordinates of the standard aliquots in the plane coordinate system, and determine a reference coordinate point of the standard aliquots in the plane coordinate system using the vertex coordinates; the plane coordinate system is a two-dimensional rectangular coordinate system constructed by taking a scanning starting point of a scanning system of the laser printer as an origin;
a scanning module 603, configured to scan the divided print image to obtain a mapped image;
the comparison module 604 is configured to compare the printed image and the mapped image, and determine a distorted unit block in the mapped image;
the correction module 605 corrects the distorted unit blocks in the mapped image by using the reference coordinate points of the standard equal parts in the plane coordinate system, and obtains the mapped image after density correction.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
As shown in fig. 7, an embodiment of the present application provides a laser printer, the laser printer D10 of which includes: at least one processor D100 (only one processor is shown in fig. 7), a memory D101 and a computer program D102 stored in the memory D101 and executable on the at least one processor D100, the processor D100 implementing the steps in any of the various method embodiments described above when executing the computer program D102.
Specifically, when the processor D100 executes the computer program D102, the print image corresponding to the data to be printed is divided into a plurality of standard unit blocks, then the standard unit blocks are respectively placed in a plane coordinate system for each standard unit, vertex coordinates of the standard unit blocks are obtained in the plane coordinate system, reference coordinate points of the standard unit blocks in the plane coordinate system are determined by using the vertex coordinates, the divided print image is scanned to obtain a mapping image, the print image and the mapping image are compared to determine a distorted unit block with distortion in the mapping image, and finally the distorted unit block in the mapping image is corrected by using the reference coordinate points of the standard unit blocks in the plane coordinate system to obtain the mapping image with corrected density. The printing image corresponding to the data to be printed is divided into a plurality of standard unit blocks, each standard unit block is divided into a plurality of standard equal parts, the printing image can be finely divided, the divided printing image is scanned to obtain a mapping image, the shape change of the distorted unit blocks in the mapping image before and after correction is easy to observe, the effect of image density correction is easy to recognize, the distorted unit blocks in the mapping image are corrected by utilizing the reference coordinate points of the standard equal parts in a plane coordinate system, the correction accuracy can be improved, and the correction effect of the image density is improved.
The processor D100 may be a central processing unit (CPU, central Processing Unit), the processor D100 may also be other general purpose processors, digital signal processors (DSP, digital Signal Processor), application specific integrated circuits (ASIC, application Specific Integrated Circuit), off-the-shelf programmable gate arrays (FPGA, field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory D101 may in some embodiments be an internal storage unit of the laser printer D10, such as a hard disk or a memory of the laser printer D10. The memory D101 may also be an external storage device of the laser printer D10 in other embodiments, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the laser printer D10. Further, the memory D101 may also include both an internal memory unit and an external memory device of the laser printer D10. The memory D101 is used for storing an operating system, an application program, a boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory D101 may also be used to temporarily store data that has been output or is to be output.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a laser printer, causes the laser printer to perform steps that enable the implementation of the method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to the laser printer image density correction method apparatus/terminal device, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
While the foregoing is directed to the preferred embodiments of the present application, it will be appreciated by those skilled in the art that various modifications and adaptations can be made without departing from the principles of the present application, and such modifications and adaptations are intended to be comprehended within the scope of the present application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310985623.8A CN116993613A (en) | 2023-08-07 | 2023-08-07 | A laser printer image density correction method, device, equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310985623.8A CN116993613A (en) | 2023-08-07 | 2023-08-07 | A laser printer image density correction method, device, equipment and medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116993613A true CN116993613A (en) | 2023-11-03 |
Family
ID=88523039
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310985623.8A Pending CN116993613A (en) | 2023-08-07 | 2023-08-07 | A laser printer image density correction method, device, equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116993613A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109871841A (en) * | 2019-02-14 | 2019-06-11 | 腾讯科技(深圳)有限公司 | Image processing method, device, terminal and storage medium |
| CN110930336A (en) * | 2019-11-29 | 2020-03-27 | 深圳市商汤科技有限公司 | Image processing method and device, electronic equipment and storage medium |
| CN114693532A (en) * | 2020-12-28 | 2022-07-01 | 富泰华工业(深圳)有限公司 | Image correction method and related equipment |
| CN115375543A (en) * | 2022-08-04 | 2022-11-22 | 黑芝麻智能科技有限公司 | Image processing method and device, electronic equipment and storage medium |
-
2023
- 2023-08-07 CN CN202310985623.8A patent/CN116993613A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109871841A (en) * | 2019-02-14 | 2019-06-11 | 腾讯科技(深圳)有限公司 | Image processing method, device, terminal and storage medium |
| CN110930336A (en) * | 2019-11-29 | 2020-03-27 | 深圳市商汤科技有限公司 | Image processing method and device, electronic equipment and storage medium |
| CN114693532A (en) * | 2020-12-28 | 2022-07-01 | 富泰华工业(深圳)有限公司 | Image correction method and related equipment |
| CN115375543A (en) * | 2022-08-04 | 2022-11-22 | 黑芝麻智能科技有限公司 | Image processing method and device, electronic equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5077811A (en) | Character and picture image data processing system | |
| CN104346640A (en) | Two-dimensional code and method for generating two-dimensional code | |
| US20100225937A1 (en) | Imaged page warp correction | |
| CN112215756B (en) | Scanning correction method, device, storage medium and computer equipment | |
| WO2023284784A1 (en) | Bar code image restoration method and apparatus, computer device and storage medium | |
| US6683983B1 (en) | Document-inclination detector | |
| CN112241739A (en) | Method, device, equipment and computer readable medium for identifying text errors | |
| CN116777769A (en) | Distorted image correction method and device, electronic equipment, storage medium | |
| CN118883582A (en) | A correction method and system for linear array AOI detection system image acquisition | |
| JP4013060B2 (en) | Image correction method and image correction apparatus | |
| CN114419303A (en) | Character recognition method and scanning system based on scanning software | |
| US6608702B1 (en) | Method for generating threshold patterns and gradation image binarizing device | |
| CN116993613A (en) | A laser printer image density correction method, device, equipment and medium | |
| JP4958868B2 (en) | Document feature extraction apparatus and method | |
| JPH08237486A (en) | Method for smoothing character in scanner/printer | |
| CN117953316B (en) | Image quality inspection method and system based on artificial intelligence | |
| US20170359481A1 (en) | Printing apparatus, printing method and program medium | |
| US20240203091A1 (en) | External parameter determination method and image processing device | |
| CN118629063B (en) | A financial bill analysis method and system based on image recognition technology | |
| JPH08334476A (en) | Inspection area setting method and apparatus and inspection apparatus using the apparatus | |
| CN120411048A (en) | Quality detection method, device and terminal equipment | |
| JPH07152906A (en) | Recognition processor for two-dimensional symbol image | |
| JP4517667B2 (en) | Document image collation device, document image alignment method and program | |
| CN120101639A (en) | A printed matter size measuring method, system, measuring device and storage medium | |
| JP6732428B2 (en) | Image processing device, halftone dot determination method, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |