CN112925488A - Bill printing calibration method and device, computer equipment and storage medium - Google Patents
Bill printing calibration method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN112925488A CN112925488A CN202110200276.4A CN202110200276A CN112925488A CN 112925488 A CN112925488 A CN 112925488A CN 202110200276 A CN202110200276 A CN 202110200276A CN 112925488 A CN112925488 A CN 112925488A
- Authority
- CN
- China
- Prior art keywords
- calibration
- picture
- printing
- parameter value
- printing position
- 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
- 238000007639 printing Methods 0.000 title claims abstract description 241
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000003860 storage Methods 0.000 title claims abstract description 26
- 230000007246 mechanism Effects 0.000 claims abstract description 59
- 238000004590 computer program Methods 0.000 claims description 24
- 238000005520 cutting process Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 13
- 238000004891 communication Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012015 optical character recognition Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1208—Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1242—Image or content composition onto a page
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The application relates to a bill printing calibration method, a bill printing calibration device, computer equipment and a storage medium. The method comprises the following steps: acquiring a calibration picture, wherein the upper edge and the lower edge of the calibration picture are marked with scale marks and directions; controlling a printing mechanism to print the calibration picture; when the printing position is judged to have the offset condition according to the printed calibration picture, receiving a calibration parameter value sent by an upper computer; adding the calibration parameter value to the printing position information of the calibration picture; controlling the printing mechanism to print a calibration picture added with a calibration parameter value; and when the printing position is judged to be normal according to the printed calibration picture added with the calibration parameter values, determining the calibration parameter values as position compensation parameters. By adopting the method, the problem that the final calibration result is inaccurate due to the cutting error of the calibration size can be solved.
Description
Technical Field
The present application relates to the field of ticket printing technologies, and in particular, to a method and an apparatus for ticket printing calibration, a computer device, and a storage medium.
Background
With the wide use of financial bills such as checks, deposit slips and the like, in order to meet the increasing customer demands, the bank financial self-service equipment realizes more and more integrated bill printing functions through a bill printing technology. The bill printing technology can print information such as account, amount, account name, date and the like at a specific position of a bill according to the bill type. However, in the existing various bill printing devices, the printing mechanisms produced in different batches have certain structural differences, which can cause certain position errors of the information printed on the bills. When the bill is identified by using an OCR (optical character recognition) technology, the printing position of the bill information is strictly required, so that the problems of failure in recognition, error in recognition and the like of the bill information can be caused by overlarge printing position deviation, and business handling is influenced.
In the related art, calibration is performed by printing a standard calibration paper and a calibration image, wherein the calibration paper has scale information thereon, and the calibration image has a fixed reference line thereon. When the calibration picture is printed on the calibration paper, the reference line on the picture is required to be overlapped with the zero scale mark position on the calibration paper, if the reference line is not overlapped with the zero scale mark position on the calibration paper, the printing position is deviated, and the printing mechanism needs to be further calibrated.
However, during the printing of the bill, the cutting error of the size of the calibration paper causes the problem that the final calibration result is inaccurate.
Disclosure of Invention
In view of the above, it is necessary to provide a ticket printing calibration method, apparatus, computer device and storage medium for solving the above technical problems.
A ticket printing calibration method, the method comprising:
acquiring a calibration picture, wherein the upper edge and the lower edge of the calibration picture are marked with scale marks and directions; controlling a printing mechanism to print the calibration picture; when the printing position is judged to have the offset condition according to the printed calibration picture, receiving a calibration parameter value sent by an upper computer; adding the calibration parameter value to the printing position information of the calibration picture; controlling the printing mechanism to print the calibration picture added with the calibration parameter value; and when the printing position is judged to be normal according to the printed calibration picture added with the calibration parameter value, determining the calibration parameter value as a position compensation parameter.
In one embodiment, the acquiring the calibration picture includes:
the calibration picture is acquired by the calibration tool software which is used for issuing the calibration picture and the calibration parameters.
In one embodiment, the controlling the printing mechanism to print the calibration picture comprises:
the calibration picture is printed on the calibration paper by controlling the printing mechanism.
In one embodiment, when it is determined that the printing position has an offset condition according to the printed calibration picture, receiving a calibration parameter value sent by an upper computer includes:
and when the printed calibration picture is judged to have the offset condition, receiving a calibration parameter value sent by the upper computer through calibration tool software, wherein the calibration parameter value is determined according to the positions of the upper edge and the right edge of the calibration paper on the scales of the upper edge and the right edge of the calibration picture.
In one embodiment, the printing position information includes coordinate information of the calibration picture; after the adding the calibration parameter value to the printing position information of the calibration picture, the method further comprises:
the calibration parameter values are saved.
In one embodiment, when it is determined that the printing position is normal according to the printed calibration picture added with the calibration parameter value, determining the calibration parameter value as a position compensation parameter includes:
and judging that the printing position is normal by confirming that the printing position is not shifted, wherein the printing position is not shifted and comprises that the upper edge of the calibration paper is aligned with the zero scale of the upper edge of the calibration picture and the right edge of the calibration paper is aligned with the zero scale of the right edge of the calibration picture.
In one embodiment, the method further comprises:
when the printing position is judged to have the offset condition according to the printed calibration picture added with the calibration parameter values, receiving new calibration parameter values sent by the upper computer again, wherein the new calibration parameter values are determined again according to the positions of the upper edge and the right edge of the calibration paper on the scales at the upper edge and the right edge of the calibration picture; adding the new calibration parameter value to the printing position information of the calibration picture; controlling the printing mechanism to print the calibration picture added with the new calibration parameter value; and when the printing position is judged to be normal according to the printed calibration picture added with the new calibration parameter value, determining the new calibration parameter value as a position compensation parameter.
A ticket printing calibration apparatus, the apparatus comprising:
the acquisition module is used for acquiring a calibration picture, and the upper edge and the lower edge of the calibration picture are marked with scale marks and directions;
the control module is used for controlling the printing mechanism to print the calibration picture;
the receiving module is used for receiving the calibration parameter value sent by the upper computer when the printing position is judged to have the offset condition according to the printed calibration picture;
the adding module is used for adding the calibration parameter value into the printing position information of the calibration picture;
the control module is also used for controlling the printing mechanism to print a calibration picture added with the calibration parameter value;
and the determining module is used for determining the calibration parameter value as the position compensation parameter when the printing position is judged to be normal according to the printed calibration picture added with the calibration parameter value.
In one embodiment, the obtaining module is specifically configured to:
the calibration picture is acquired by the calibration tool software which is used for issuing the calibration picture and the calibration parameters.
In one embodiment, the control module is specifically configured to:
the calibration picture is printed on the calibration paper by controlling the printing mechanism.
In one embodiment, the receiving module is specifically configured to:
and when the printed calibration picture is judged to have the offset condition, receiving a calibration parameter value sent by the upper computer through calibration tool software, wherein the calibration parameter value is determined according to the positions of the upper edge and the right edge of the calibration paper on the scales of the upper edge and the right edge of the calibration picture.
In one embodiment, the printing position information includes coordinate information of the calibration picture; after the adding the calibration parameter value to the printing position information of the calibration picture, the apparatus further includes:
and the storage module is used for storing the calibration parameter value.
In one embodiment, the determining module is specifically configured to:
and judging that the printing position is normal by confirming that the printing position is not shifted, wherein the printing position is not shifted and comprises that the upper edge of the calibration paper is aligned with the zero scale of the upper edge of the calibration picture and the right edge of the calibration paper is aligned with the zero scale of the right edge of the calibration picture.
In one embodiment, the receiving module is further configured to receive a new calibration parameter value sent by the upper computer again when it is determined that the printing position has an offset condition according to the printed calibration image added with the calibration parameter value, where the new calibration parameter value is determined again according to positions of the upper edge and the right edge of the calibration paper on the scales at the upper edge and the right edge of the calibration image;
the adding module is also used for adding the new calibration parameter value into the printing position information of the calibration picture;
the control module is also used for controlling the printing mechanism to print the calibration picture added with the new calibration parameter value;
and the determining module is also used for determining the new calibration parameter value as the position compensation parameter when the printing position is judged to be normal according to the printed calibration picture added with the new calibration parameter value.
A computer device comprising a memory storing a computer program and a processor which when executed implements a ticket print calibration method as claimed in any one of the preceding claims.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements a ticket printing calibration method as in any one of the above.
According to the bill printing calibration method, the bill printing calibration device, the computer equipment and the storage medium, calibration pictures are obtained, and scale marks and directions are marked on the upper edge and the lower edge of each calibration picture; controlling a printing mechanism to print the calibration picture; when the printing position is judged to have the offset condition according to the printed calibration picture, receiving a calibration parameter value sent by an upper computer; then, adding the calibration parameter value to the printing position information of the calibration picture; controlling the printing mechanism to print the calibration picture added with the calibration parameter value; and when the printing position is judged to be normal according to the printed calibration picture added with the calibration parameter value, determining the calibration parameter value as a position compensation parameter. Therefore, in the bill printing and calibrating process, the problem that the final calibrating result is inaccurate due to the cutting error of the calibrating size is solved by using the calibrating picture with the upper edge and the lower edge marked with the scale lines and the direction.
Drawings
FIG. 1 is a diagram of an exemplary embodiment of a ticket printing calibration method;
FIG. 2 is a schematic flow chart diagram illustrating a ticket print calibration method according to one embodiment;
FIG. 3 is a schematic diagram of a calibration picture of a ticket print calibration method in one embodiment;
FIG. 4 is a schematic diagram illustrating a printing process performed by the ticket printing calibration method in one embodiment;
FIG. 5 is a schematic flow chart of a ticket print calibration method in another embodiment;
FIG. 6 is a schematic diagram of a print calibration flow of a ticket print calibration method in one embodiment;
FIG. 7 is a block diagram showing the structure of a bill printing calibration apparatus according to an embodiment;
FIG. 8 is a block diagram showing the structure of a bill printing calibration apparatus according to another embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The bill printing calibration method provided by the application can be applied to the application environment shown in fig. 1. The application environment comprises an upper computer 102 and a bill printing module 104, wherein the upper computer 102 can be but is not limited to a computer, the upper computer 102 comprises a calibration tool software 106, and the calibration tool software 106 is integrated on a test tool of the upper computer 102. The bill printing module 104 includes a main control board 108, a printing mechanism 110, and an auxiliary mechanism 112, wherein the main control board 108 communicates with the upper computer 102 through a USB (Universal Serial Bus), and a USB communication protocol includes a print position compensation parameter setting command, the main control board 108 includes an MCU (micro controller Unit) 114 and a storage element 116, the storage element 116 stores data through an EEPROM (Electrically Erasable Programmable read only memory) and can be stored in a power-down state, the MCU114 and the storage element 116 communicate through a parallel data Bus, and the printing mechanism 110 is connected to the main control board 108 through a Serial data Bus using a TTL (Transistor-Transistor Logic integrated circuit) level signal. In addition, the ticket printing module 104 includes an auxiliary mechanism 112, the auxiliary mechanism 112 providing a stand, a ticket storage bin, etc. for the ticket printing module 104.
In one embodiment, as shown in fig. 2, there is provided a ticket print calibration method, which is described in the context of fig. 1, comprising the steps of:
Specifically, after the bill printing module 104 is assembled, the upper computer 102 issues a calibration picture to the main control board 108 through USB communication.
The calibration picture is a picture for calibrating printing, please refer to fig. 3, which is a schematic diagram of the calibration picture. As shown in fig. 3, a scale is respectively arranged at the upper edge and the right edge of the calibration picture, wherein a zero scale line is flush with the picture edge, the precision of each grid of the scale is 0.6776mm, four arrows at the center of the calibration picture respectively point to 2 directions of an x axis and a y axis, wherein data1 indicates the left offset or the right offset of the x axis respectively by using symbols "+" and "-", data2 indicates the size of the x axis offset, data3 indicates the left offset or the right offset of the y axis respectively by using symbols "+" and "-", and data4 indicates the size of the y axis offset respectively. And the calibration data are pixel points, and 1mm is equal to 1/0.0847 pixel point. It is understood that the precision of each lattice can be set according to practical situations and is not limited to the numerical values listed in the embodiment.
Specifically, after the host computer 102 issues the calibration picture to the main control board 108 through USB communication, the calibration paper is manually loaded into the bill printing module 104, and the main control board 108 controls the printing mechanism to print the calibration picture through serial data bus connection.
And step 206, when the printing position is judged to have the offset condition according to the printed calibration picture, receiving the calibration parameter value sent by the upper computer 102.
Specifically, when the upper edge and the right edge of the calibration paper are not aligned with the zero graduation lines of the graduated scale on the upper edge and the right edge of the calibration picture, the offset condition occurs in printing, data1, data2, data3 and data4 data are obtained through the calibration picture, the data are calibration parameter values, the upper computer 102 obtains the calibration parameter values, and the calibration parameter values are sent to the main control board 108 through USB communication. For example, if the x-direction is shifted by 3 units and the y-direction is shifted by 5 units, the data1 is "-", the data2 is 3, the data3 is "-", the data4 is "5", the host computer 102 obtains the calibration parameter values Dx of-3 and Dy of-5, and the main control board 108 receives the calibration parameter values sent by the host computer 102.
Specifically, after receiving the calibration parameter value sent by the upper computer 102, the main control board 108 adds the calibration parameter value to the printing position information of the calibration picture through a calibration algorithm. The printing coordinates are the position of the bill in actual use, the printing coordinates are defaulted to (0,0) in the calibration process, and the calibration algorithm is integrated on the main control board.
And step 210, controlling the printing mechanism to print the calibration picture added with the calibration parameter value.
Specifically, the main control board 108 controls the printing mechanism 110 through the serial data bus connection, and the printing mechanism 110 is controlled by the MCU114 in the main control board 108 to print a calibration picture, wherein the calibration picture contains calibration parameter values.
And 212, when the printing position is judged to be normal according to the printed calibration picture added with the calibration parameter value, determining the calibration parameter value as a position compensation parameter.
Specifically, when the printing position is normal after the printing mechanism 110 prints, that is, the upper edge and the right edge of the calibration paper are aligned with the zero scale marks of the calibration chart, the calibration parameter value is determined as the position compensation parameter.
In the bill printing calibration method, by acquiring a calibration picture, scale lines and directions are marked on the upper edge and the lower edge of the calibration picture; then controlling the printing mechanism 110 to print the calibration picture; when the printing position is judged to have the offset condition according to the printed calibration picture, receiving a calibration parameter value sent by the upper computer 102; then, adding the calibration parameter value to the printing position information of the calibration picture; then controlling the printing mechanism 110 to print the calibration picture added with the calibration parameter value; and when the printing position is judged to be normal according to the printed calibration picture added with the calibration parameter value, determining the calibration parameter value as a position compensation parameter. Therefore, in the bill printing process, the problem that the final calibration result is inaccurate due to the cutting error of the calibration size is solved by using the calibration picture with the scale lines and the direction marked on the upper edge and the lower edge.
In one embodiment, the calibration picture is acquired by the calibration tool software 106. The calibration tool software 106 is a piece of software specially developed according to a printing communication protocol, and the software has a printing calibration function, that is, printing calibration is performed by issuing calibration pictures and calibration parameters. Through software calibration, any structural device does not need to be newly added, the design difficulty is effectively reduced, the production efficiency is improved, the difference of printing positions among different devices can be improved to the greatest extent on the design precision of the original structure, the problem of printing position deviation caused by structural errors is solved, the cost caused by structural improvement, namely production process improvement, can be effectively saved, and the cost can be saved.
In one embodiment, the calibration picture is printed on the calibration paper by controlling the printing mechanism 110. Specifically, after the bill printing module 104 is assembled, the upper computer 102 issues a calibration picture to the main control board 108 through USB communication, and manually loads the calibration paper into the bill printing module 104, and the main control board 108 controls the printing mechanism to print the calibration picture through serial data bus connection. The calibration picture uses the upper edge and the right edge of the calibration paper as the base line, so that the length and width errors of the calibration paper do not cause the change of the position of the reference line, namely, the calibration deviation caused by the size cutting error of the calibration paper can be eliminated, and the calibration precision is ensured to the maximum extent.
In one embodiment, when it is determined that the printed position has an offset condition according to the printed calibration image, the calibration parameter value sent by the upper computer 102 through the calibration tool software 106 is received, and the calibration parameter value is determined according to the positions of the upper edge and the right edge of the calibration paper on the scales of the upper edge and the right edge of the calibration image. No matter how large the size error of the calibration paper is, no influence is caused on the calibration result, and only the upper edge and the right edge of the calibration paper are required to be straight, and the size of the calibration paper is larger than or equal to that of the calibration picture.
In one embodiment, the print position information includes coordinate information of the calibration picture; after the adding the calibration parameter value to the printing position information of the calibration picture, the method further comprises: the calibration parameter values are saved. The MCU114 in the main control board 108 communicates with the storage element 116 through the parallel data bus, the EEPROM chip of the storage element 116 stores the calibration parameter value, and the parameter on the chip can be stored in power-down mode, so that the calibration parameter is effective for a long time after the calibration is completed without repeated setting.
In one embodiment, the printing position is determined to be normal by confirming that the printing position is not shifted, the printing position not shifted including that the upper edge of the calibration paper is aligned with the zero scale of the upper edge of the calibration picture and the right edge of the calibration paper is aligned with the zero scale of the right edge of the calibration picture. After the ticket printing module 104 is assembled, the direction and the size of the structural deviation are fixed, and random change is avoided during each printing, so that the printing position is confirmed to be normal after calibration, and the inherent deviation of the printing position can be effectively eliminated.
Please refer to fig. 4, which is a schematic diagram illustrating a printing process after calibration is completed according to an embodiment, including the following steps:
at step 402, the module is powered up.
Specifically, after the ticket print module 104 completes calibration, the ticket print module 104 is powered on, wherein the data of the EEPROM chip of the storage element 116 in the main control board 108 can be saved in a power-off state.
In step 404, the main control board 108 is powered on for initialization.
Specifically, when the ticket printing module 104 is started, the main control board 108 is powered on for initialization.
At step 406, the MCU114 reads the calibration data from the storage element 116.
Specifically, the position compensation parameters in the EEPROM chip are read in advance to the MCU114 in the main control board 108 at the start of the bill printing module 104.
Specifically, a position compensation parameter is added to print position information, the position compensation parameter is calibration data, and the print position information is the position of the bill.
And step 410, waiting for a printing command of the upper computer 102.
Specifically, the ticket printing module 104 waits for the upper computer 102 to print a command.
In the printing process after the calibration is completed, because the direction and the size of the structural deviation are fixed after the bill printing module 104 is assembled, the structural deviation does not change randomly during each printing, and therefore, the inherent deviation of the printing position of the bill printing module 104 can be effectively eliminated after the calibration is completed.
In one embodiment, as shown in fig. 5, the ticket printing calibration method further includes:
Specifically, when the upper edge and the right edge of the calibration paper are not aligned with the zero scale marks of the scales on the upper edge and the right edge of the calibration picture added with the calibration parameter values, and the offset condition occurs during printing, the main control board 108 receives the new calibration parameter values issued by the upper computer 102 through the calibration tool software 106 again, and the new calibration parameter values are determined again according to the positions of the upper edge and the right edge of the calibration paper on the scales on the upper edge and the right edge of the calibration picture.
Specifically, after the main control board 108 receives the new calibration parameter value sent by the upper computer 102 again, the calibration parameter value is added to the printing position information of the calibration picture through the calibration algorithm, the printing coordinate is the position of the bill in actual use, the printing coordinate defaults to (0,0) in the calibration process, and the calibration algorithm is integrated on the main control board 108.
Specifically, the main control board 108 controls the printing mechanism 110 through the serial data bus connection, and the printing mechanism 110 is controlled by the MCU114 in the main control board 108 to print a calibration picture, wherein the calibration picture contains new calibration parameter values.
And step 508, when the printing position is judged to be normal according to the printed calibration picture added with the new calibration parameter value, determining the new calibration parameter value as a position compensation parameter.
Specifically, when the printing position is normal after the printing mechanism 110 prints, that is, the upper edge and the right edge of the calibration paper are aligned with the zero scale marks of the calibration chart on which the new calibration parameter value is added, the new calibration parameter value is determined as the position compensation parameter.
According to the bill printing calibration method, when the printing position is judged to have the offset condition according to the printed calibration picture added with the calibration parameter values, the new calibration parameter values sent by the upper computer are received again, and the new calibration parameter values are determined again according to the positions of the upper edge and the right edge of the calibration paper on the scales of the upper edge and the right edge of the calibration picture; adding the new calibration parameter value to the printing position information of the calibration picture; controlling the printing mechanism to print the calibration picture added with the new calibration parameter value; and when the printing position is judged to be normal according to the printed calibration picture added with the new calibration parameter value, determining the new calibration parameter value as a position compensation parameter. Therefore, in the bill printing process, the problem that the final calibration result is inaccurate due to the cutting error of the calibration size is solved by using the calibration picture with the scale lines and the direction marked on the upper edge and the lower edge.
Please refer to fig. 6, which is a schematic diagram illustrating a printing calibration process according to an embodiment, including the following steps:
in step 602, the calibration tool issues a calibration picture to the main control board 108.
Specifically, after the bill printing module 104 is assembled, the calibration tool software 106 in the upper computer 102 issues a calibration picture to the main control board 108 through USB communication.
Specifically, after the host computer 102 issues the calibration picture to the main control board 108 through USB communication, the calibration paper is manually loaded into the bill printing module 104, and the main control board 108 controls the printing mechanism 110 to print the calibration picture through serial data bus connection.
And step 606, observing whether the printing position is accurate.
Specifically, by observing whether the upper edge and the right edge of the calibration paper are aligned with the zero scale marks of the calibration chart upper edge and the right edge scale, if the upper edge and the right edge of the calibration paper are aligned with the zero scale marks of the calibration chart upper edge and the right edge scale, namely the printing position is accurate, the module completes the printing calibration process.
At step 608, the calibration tool issues calibration data to the main control board 108.
Specifically, if the upper edge and the right edge of the calibration paper are not aligned with the zero scale marks of the calibration chart upper edge and the right edge scale by observing, that is, the printing position is deviated, calibration data is obtained through the calibration chart, the data is a calibration parameter value, the upper computer 102 obtains the calibration parameter value, and the calibration parameter value is sent to the main control board 108 through the USB communication.
In step 610, the main control board 108 saves the calibration data to the storage unit and superimposes it on the picture print position information.
Specifically, after the main control board 108 receives the calibration parameter value sent by the upper computer 102, the calibration parameter value is saved by a storage element EEPROM chip in the main control board 108, and the calibration parameter value is added to the printing position information of the calibration picture by a calibration algorithm.
At step 612, the picture is printed again.
Specifically, the main control board 108 controls the printing mechanism 110 through a serial data bus connection, and the printing mechanism 110 is controlled by the MCU114 in the main control board 108 to print calibration pictures.
And step 614, observing whether the printing position is accurate.
Specifically, by observing whether the upper edge and the right edge of the calibration paper are aligned with the zero scale marks of the scale on the upper edge and the right edge of the calibration paper, if the upper edge and the right edge of the calibration paper are aligned with the zero scale marks of the scale on the upper edge and the right edge of the calibration paper, that is, the printing position is accurate, the module completes the printing calibration process, if the upper edge and the right edge of the calibration paper are not aligned with the zero scale marks of the scale on the upper edge and the right edge of the calibration paper, the main control board 108 receives a new calibration parameter value sent by the upper computer 102 through the calibration tool software 106 again, the calibration parameter value is added into the printing position information of the calibration picture through the calibration algorithm, the main control board 108 controls the printing mechanism 110 through the serial data bus connection, the printing mechanism 110 is controlled by the MCU114 in the main control board 108 to print the calibration picture, when the printing position is, determining the new calibration parameter value as a position compensation parameter.
It should be understood that although the various steps in the flow charts of fig. 1-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 7, there is provided a ticket printing calibration apparatus 700, the apparatus 700 comprising an acquisition module 702, a control module 704, a receiving module 706, an adding module 708, and a determining module 710, wherein:
the acquiring module 702 is configured to acquire a calibration picture, where the calibration picture has scale lines and directions marked on an upper edge and a lower edge.
And a control module 704 for controlling the printing mechanism 110 to print the calibration picture.
And the receiving module 706 is configured to receive the calibration parameter value sent by the upper computer 102 when it is determined that the printing position has an offset condition according to the printed calibration picture.
An adding module 708, configured to add the calibration parameter value to the printing position information of the calibration picture.
The control module 704 is further configured to control the printing mechanism 110 to print a calibration picture with calibration parameter values added.
A determining module 710, configured to determine the calibration parameter value as a position compensation parameter when it is determined that the printing position is normal according to the printed calibration picture to which the calibration parameter value is added.
In one embodiment, the obtaining module 702 is configured to obtain the calibration picture through the calibration tool software 106, and the calibration tool software 106 is configured to issue the calibration picture and the calibration parameters.
In one embodiment, control module 704 is configured to print the calibration picture on the calibration paper by controlling print mechanism 110.
In one embodiment, the receiving module 706 is configured to receive the calibration parameter values sent by the upper computer 102 through the calibration tool software 106 when it is determined that the print position has the deviation condition according to the printed calibration image, where the calibration parameter values are determined according to the positions of the upper edge and the right edge of the calibration paper on the scales of the upper edge and the right edge of the calibration image.
In one embodiment, as shown in fig. 8, a ticket printing calibration apparatus is provided. The apparatus 700 further comprises a saving module 712, wherein:
a saving module 712, configured to save the calibration parameter value.
In one embodiment, the determining module 710 is configured to determine that the printing position is normal by confirming that the printing position is not shifted, where the printing position is not shifted and the printing position includes that the upper edge of the calibration paper is aligned with the zero scale of the upper edge of the calibration picture and the right edge of the calibration paper is aligned with the zero scale of the right edge of the calibration picture.
In an embodiment, the receiving module 706 is further configured to, when it is determined that the printing position has an offset condition according to the printed calibration picture with the calibration parameter value added thereto, receive a new calibration parameter value sent by the upper computer 102 again, where the new calibration parameter value is determined again according to positions of the upper edge and the right edge of the calibration paper on the scales at the upper edge and the right edge of the calibration picture.
The adding module 708 is further configured to add the new calibration parameter value to the printing position information of the calibration picture.
The control module 704 is further configured to control the printing mechanism 110 to print the calibration picture with the new calibration parameter value added.
The determining module 710 is further configured to determine, when it is determined that the printing position is normal according to the printed calibration picture with the new calibration parameter value added, the new calibration parameter value as a position compensation parameter.
The bill printing calibration device provided by the embodiment of the application can realize the method embodiment, the realization principle and the technical effect are similar, and the details are not repeated.
For specific definition of the bill printing calibration device, reference may be made to the above definition of the bill printing calibration method, which is not described herein again. The modules in the bill printing calibration device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store ticket print calibration data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a ticket print calibration method.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a calibration picture, wherein the upper edge and the lower edge of the calibration picture are marked with scale marks and directions; controlling the printing mechanism 110 to print the calibration picture; when the printing position is judged to have the offset condition according to the printed calibration picture, receiving a calibration parameter value sent by the upper computer 102; adding the calibration parameter value to the printing position information of the calibration picture; controlling the printing mechanism 110 to print the calibration picture added with the calibration parameter value; and when the printing position is judged to be normal according to the printed calibration picture added with the calibration parameter value, determining the calibration parameter value as a position compensation parameter.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the calibration picture is acquired by the calibration tool software 106, and the calibration tool software 106 is used for issuing the calibration picture and the calibration parameters.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the calibration picture is printed on the calibration paper by controlling the printing mechanism 110.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the printed calibration picture is judged to have the offset condition at the printing position, the calibration parameter value sent by the upper computer 102 through the calibration tool software 106 is received, and the calibration parameter value is determined according to the positions of the upper edge and the right edge of the calibration paper on the scales at the upper edge and the right edge of the calibration picture.
The print position information includes coordinate information of the calibration picture, and in one embodiment, the processor when executing the computer program further performs the following steps:
the calibration parameter values are saved.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and judging that the printing position is normal by confirming that the printing position is not shifted, wherein the printing position is not shifted and comprises that the upper edge of the calibration paper is aligned with the zero scale of the upper edge of the calibration picture and the right edge of the calibration paper is aligned with the zero scale of the right edge of the calibration picture.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the printing position is judged to have the offset condition according to the printed calibration picture added with the calibration parameter values, the new calibration parameter values sent by the upper computer 102 are received again, and the new calibration parameter values are determined again according to the positions of the upper edge and the right edge of the calibration paper on the scales at the upper edge and the right edge of the calibration picture; adding the new calibration parameter value to the printing position information of the calibration picture; controlling the printing mechanism 110 to print the calibration picture added with the new calibration parameter value; and when the printing position is judged to be normal according to the printed calibration picture added with the new calibration parameter value, determining the new calibration parameter value as a position compensation parameter.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a calibration picture, wherein the upper edge and the lower edge of the calibration picture are marked with scale marks and directions; controlling the printing mechanism 110 to print the calibration picture; when the printing position is judged to have the offset condition according to the printed calibration picture, receiving a calibration parameter value sent by the upper computer 102; adding the calibration parameter value to the printing position information of the calibration picture; controlling the printing mechanism 110 to print the calibration picture added with the calibration parameter value; and when the printing position is judged to be normal according to the printed calibration picture added with the calibration parameter value, determining the calibration parameter value as a position compensation parameter.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the calibration picture is acquired by the calibration tool software 106, and the calibration tool software 106 is used for issuing the calibration picture and the calibration parameters.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the calibration picture is printed on the calibration paper by controlling the printing mechanism 110.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the printed calibration picture is judged to have the offset condition at the printing position, the calibration parameter value sent by the upper computer 102 through the calibration tool software 106 is received, and the calibration parameter value is determined according to the positions of the upper edge and the right edge of the calibration paper on the scales at the upper edge and the right edge of the calibration picture.
The print position information comprises coordinate information of the calibration picture, and in one embodiment the computer program when executed by the processor further performs the steps of:
the calibration parameter values are saved.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and judging that the printing position is normal by confirming that the printing position is not shifted, wherein the printing position is not shifted and comprises that the upper edge of the calibration paper is aligned with the zero scale of the upper edge of the calibration picture and the right edge of the calibration paper is aligned with the zero scale of the right edge of the calibration picture.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the printing position is judged to have the offset condition according to the printed calibration picture added with the calibration parameter values, the new calibration parameter values sent by the upper computer 102 are received again, and the new calibration parameter values are determined again according to the positions of the upper edge and the right edge of the calibration paper on the scales at the upper edge and the right edge of the calibration picture; adding the new calibration parameter value to the printing position information of the calibration picture; controlling the printing mechanism 110 to print the calibration picture added with the new calibration parameter value; and when the printing position is judged to be normal according to the printed calibration picture added with the new calibration parameter value, determining the new calibration parameter value as a position compensation parameter.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A ticket printing calibration method, the method comprising:
acquiring a calibration picture, wherein the upper edge and the lower edge of the calibration picture are marked with scale marks and directions;
controlling a printing mechanism to print the calibration picture;
when the printing position is judged to have the offset condition according to the printed calibration picture, receiving a calibration parameter value sent by an upper computer;
adding the calibration parameter value to the printing position information of the calibration picture;
controlling the printing mechanism to print a calibration picture added with a calibration parameter value;
and when the printing position is judged to be normal according to the printed calibration picture added with the calibration parameter values, determining the calibration parameter values as position compensation parameters.
2. The method of claim 1, wherein the obtaining the calibration picture comprises:
and acquiring a calibration picture through calibration tool software, wherein the calibration tool software is used for issuing the calibration picture and calibration parameters.
3. The method of claim 1, wherein controlling the printing mechanism to print the calibration picture comprises:
and printing the calibration picture on the calibration paper by controlling a printing mechanism.
4. The method according to claim 1, wherein when it is determined from the printed calibration picture that the printing position has an offset condition, receiving calibration parameter values sent by an upper computer comprises:
and when the printed calibration picture is judged to have the offset condition, receiving a calibration parameter value sent by an upper computer through calibration tool software, wherein the calibration parameter value is determined according to the positions of the upper edge and the right edge of the calibration paper on the scales of the upper edge and the right edge of the calibration picture.
5. The method according to claim 1, wherein the printing position information includes coordinate information of a calibration picture; after the adding the calibration parameter value to the printing position information of the calibration picture, the method further comprises:
and saving the calibration parameter value.
6. The method according to claim 1, wherein the determining that the calibration parameter value is a position compensation parameter when the printing position is determined to be normal according to the printed calibration picture to which the calibration parameter value is added comprises:
and judging that the printing position is normal by confirming that the printing position is not shifted, wherein the printing position is not shifted and comprises that the upper edge of the calibration paper is aligned with the zero scale of the upper edge of the calibration picture and the right edge of the calibration paper is aligned with the zero scale of the right edge of the calibration picture.
7. The method of claim 1, further comprising:
when the printing position is judged to have the offset condition according to the printed calibration picture added with the calibration parameter values, receiving new calibration parameter values sent by the upper computer again, wherein the new calibration parameter values are determined again according to the positions of the upper edge and the right edge of the calibration paper on the scales at the upper edge and the right edge of the calibration picture;
adding the new calibration parameter value to the printing position information of the calibration picture;
controlling the printing mechanism to print the calibration picture added with the new calibration parameter value;
and when the printing position is judged to be normal according to the printed calibration picture added with the new calibration parameter value, determining the new calibration parameter value as a position compensation parameter.
8. A ticket printing calibration apparatus, said apparatus comprising:
the device comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a calibration picture, and the upper edge and the lower edge of the calibration picture are marked with scale marks and directions;
the control module is used for controlling the printing mechanism to print the calibration picture;
the receiving module is used for receiving the calibration parameter value sent by the upper computer when the printing position is judged to have the offset condition according to the printed calibration picture;
the adding module is used for adding the calibration parameter values into the printing position information of the calibration picture;
the control module is also used for controlling the printing mechanism to print a calibration picture added with calibration parameter values;
and the determining module is used for determining the calibration parameter value as a position compensation parameter when the printing position is judged to be normal according to the printed calibration picture added with the calibration parameter value.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110200276.4A CN112925488A (en) | 2021-02-23 | 2021-02-23 | Bill printing calibration method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110200276.4A CN112925488A (en) | 2021-02-23 | 2021-02-23 | Bill printing calibration method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112925488A true CN112925488A (en) | 2021-06-08 |
Family
ID=76170320
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110200276.4A Pending CN112925488A (en) | 2021-02-23 | 2021-02-23 | Bill printing calibration method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112925488A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020101598A1 (en) * | 2001-01-31 | 2002-08-01 | Helmer Swenholt | Printer output calibration system |
US20020136579A1 (en) * | 2001-03-22 | 2002-09-26 | Paul Michel | Paper tray adjustment page |
US20050001867A1 (en) * | 2003-04-04 | 2005-01-06 | Seiko Epson Corporation | Printing method, computer-readable medium, printing apparatus, printing system, and pattern for correction |
US20130278967A1 (en) * | 2008-05-12 | 2013-10-24 | Wilopen Products Lc | Printer Calibration System and Associated Methods |
US20140160497A1 (en) * | 2012-12-12 | 2014-06-12 | Hewlett-Packard Development Company, L.P. | Printer image alignment |
CN108349624A (en) * | 2015-10-30 | 2018-07-31 | 惠普发展公司有限责任合伙企业 | Detection dislocation |
CN109062520A (en) * | 2018-07-11 | 2018-12-21 | 森大(深圳)技术有限公司 | print image output size error compensating method, device, equipment and storage medium |
WO2021006910A1 (en) * | 2019-07-11 | 2021-01-14 | Hewlett-Packard Development Company, L.P. | Print indicia for skew correction |
-
2021
- 2021-02-23 CN CN202110200276.4A patent/CN112925488A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020101598A1 (en) * | 2001-01-31 | 2002-08-01 | Helmer Swenholt | Printer output calibration system |
US20020136579A1 (en) * | 2001-03-22 | 2002-09-26 | Paul Michel | Paper tray adjustment page |
US20050001867A1 (en) * | 2003-04-04 | 2005-01-06 | Seiko Epson Corporation | Printing method, computer-readable medium, printing apparatus, printing system, and pattern for correction |
US20130278967A1 (en) * | 2008-05-12 | 2013-10-24 | Wilopen Products Lc | Printer Calibration System and Associated Methods |
US20140160497A1 (en) * | 2012-12-12 | 2014-06-12 | Hewlett-Packard Development Company, L.P. | Printer image alignment |
CN108349624A (en) * | 2015-10-30 | 2018-07-31 | 惠普发展公司有限责任合伙企业 | Detection dislocation |
CN109062520A (en) * | 2018-07-11 | 2018-12-21 | 森大(深圳)技术有限公司 | print image output size error compensating method, device, equipment and storage medium |
WO2021006910A1 (en) * | 2019-07-11 | 2021-01-14 | Hewlett-Packard Development Company, L.P. | Print indicia for skew correction |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070011395A1 (en) | Non-volatile memory card apparatus and method for updating memory capacity information | |
CN106027691B (en) | A kind of inspection modification method of MAC Address of Network Card | |
US20110205581A1 (en) | Configuration data management system, printer, and electronic device control method | |
CN113379651B (en) | Image processing method and system in laser imaging process and related equipment | |
EP1870778A2 (en) | Diagnosing an image forming apparatus | |
CN103227877B (en) | Image processing system and image forming method | |
JP5023868B2 (en) | Wireless tag determination method, wireless tag determination system, reader control device, and program | |
CN110413312B (en) | Method, device and equipment for managing application program and storage medium | |
CN109130542B (en) | Method and device for detecting printing state of bill through black mark sensor | |
CN111259890A (en) | Water level identification method, device and equipment of water level gauge | |
CN114003538A (en) | Intelligent network card and identification method thereof | |
US20090300757A1 (en) | Image forming apparatus performing user authentication using a card | |
EP3157238A1 (en) | Image calibration method and device | |
CN109213448B (en) | Method, device, equipment and storage medium for erasing and writing data of smart card | |
CN109683833A (en) | Image enchancing method, system, equipment and storage medium to be printed | |
CN115686394A (en) | Printing correction method, device, equipment and storage medium | |
CN102402151B (en) | Image processing apparatus and control method for image processing apparatus | |
CN117194306A (en) | Equipment information display method and system | |
CN112925488A (en) | Bill printing calibration method and device, computer equipment and storage medium | |
CN110135429A (en) | Scan text segmentation method, device, computer equipment and storage medium | |
CN117077221A (en) | Hard disk screen printing distribution method and device, computer equipment and medium | |
US20140160497A1 (en) | Printer image alignment | |
CN115630842A (en) | Method, system, device and computer readable storage medium for determining transaction risk | |
US7162166B2 (en) | Image-forming apparatus having an automatic self-test reporting function and method thereof | |
CN114003516B (en) | Method, system, equipment and storage medium for setting BIOS as default value |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210608 |