[go: up one dir, main page]

CN110588181B - Method and device for correcting film offset and terminal - Google Patents

Method and device for correcting film offset and terminal Download PDF

Info

Publication number
CN110588181B
CN110588181B CN201910934594.6A CN201910934594A CN110588181B CN 110588181 B CN110588181 B CN 110588181B CN 201910934594 A CN201910934594 A CN 201910934594A CN 110588181 B CN110588181 B CN 110588181B
Authority
CN
China
Prior art keywords
offset
film
printed
printing
offset distance
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.)
Active
Application number
CN201910934594.6A
Other languages
Chinese (zh)
Other versions
CN110588181A (en
Inventor
詹清泉
吴桐
蓝菊芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanyang Clear Technology Co Ltd
Original Assignee
Nanyang Clear Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanyang Clear Technology Co Ltd filed Critical Nanyang Clear Technology Co Ltd
Priority to CN201910934594.6A priority Critical patent/CN110588181B/en
Publication of CN110588181A publication Critical patent/CN110588181A/en
Application granted granted Critical
Publication of CN110588181B publication Critical patent/CN110588181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J13/00Devices or arrangements of selective printing mechanisms, e.g. ink-jet printers or thermal printers, specially adapted for supporting or handling copy material in short lengths, e.g. sheets
    • B41J13/0009Devices or arrangements of selective printing mechanisms, e.g. ink-jet printers or thermal printers, specially adapted for supporting or handling copy material in short lengths, e.g. sheets control of the transport of the copy material
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/315Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material
    • B41J2/32Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material using thermal heads
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B7/00Measuring arrangements characterised by the use of electric or magnetic techniques
    • G01B7/02Measuring arrangements characterised by the use of electric or magnetic techniques for measuring length, width or thickness

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electronic Switches (AREA)

Abstract

The embodiment of the invention discloses a method, a device and a terminal for correcting offset of a film, wherein the method is applied to a thermal printing system comprising a left coded disc, a right coded disc, a left thimble, a right thimble, a left coded disc sensor and a right coded disc sensor; the method comprises the following steps: judging whether the film to be printed has transmission offset or not, and when the film to be printed has offset, contacting the film to be printed with the left thimble/the right thimble; acquiring a level jump value caused by the rotation of a left code disc/a right code disc through a left code disc sensor/a right code disc sensor, and generating an offset corresponding to a film to be printed according to the level jump value, wherein the offset comprises a left offset and a right offset; and adjusting the heating area of the printing head in the thermal printing system according to the offset so that the adjusted heating area of the printing head is matched with the position of the film to be printed. In addition, the embodiment of the invention also discloses a device for correcting the film offset and a terminal. The invention can ensure the consistency of the printing frames of the films.

Description

Method and device for correcting film offset and terminal
Technical Field
The invention relates to the field of thermal printers, in particular to a method, a device and a terminal for correcting film offset.
Background
In the present hospital, with the widespread use of the thermal film, the thermal film printer becomes a very popular medical device, and is used in the department or hall of the hospital. Most of films printed by a thermal printer are mixed in various sizes, in this case, the film needs to be drawn out firstly when the thermal printer prints, then the drawn thermal film is sent to a printing head through a transmission device to be printed, and the size and the position of each film possibly have inconsistent conditions when the thermal film is put into a printer box, so that the heating area of the printing head possibly cannot be matched with the thermal film when the thermal printer draws the film and then transmits the film to a printing area, and the printed image frames cannot keep the same width.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, and a terminal for correcting film offset, which are used to solve the problem of inconsistent borders of images obtained by printing in a thermal printer in the prior art.
The specific technical scheme of the embodiment of the invention is as follows:
in a first aspect, an embodiment of the present invention provides a method for correcting offset of a film, which is applied to a thermal printing system, where the thermal printing system includes a left code wheel and a right code wheel that are arranged on two sides of a paper feed motor shaft of the thermal printing system; the thermal printing system also comprises a left thimble and a left coded disc sensor which are arranged corresponding to the left coded disc, and a right thimble and a right coded disc sensor which are arranged corresponding to the right coded disc; the thermal printing system is also provided with a rebound component, one end of the rebound component is connected to the left code disc/the right code disc and is used for detecting whether all films to be printed have deviation or not;
the method comprises the following steps:
judging whether the film to be printed has transmission offset or not, and when the film to be printed has transmission offset, contacting the film to be printed with the left thimble/the right thimble; and
when the film to be printed deviates, a level jump value caused by the rotation of the left code disc/right code disc is obtained through the left code disc sensor/right code disc sensor;
calculating an offset corresponding to the film to be printed according to the level jump value, wherein the offset comprises a left offset and a right offset;
and adjusting a heating area of a printing head in the thermal printing system according to the offset, so that the adjusted heating area of the printing head is matched with the position of the film to be printed.
Further, the judging whether the film to be printed has a conveying offset includes:
judging whether the film to be printed is transmitted to a pre-printing area in a preset transmission track;
and when the film to be printed is not conveyed to the pre-printing area by the preset conveying track, judging that the film to be printed has conveying deviation.
Further, before calculating the offset corresponding to the film to be printed according to the level jump value, the method further includes:
acquiring a first reference offset distance corresponding to the left code disc and a second reference offset distance corresponding to the right code disc when the film to be printed is not offset, wherein the first reference offset distance is equal to the second reference offset distance;
taking the first reference offset distance or the second reference offset distance as a standard offset distance.
Further, when the film to be printed deviates, acquiring a level jump value caused by rotation of the left code wheel/right code wheel through the left code wheel sensor/right code wheel sensor, and calculating a deviation amount corresponding to the film to be printed according to the level jump value, includes:
when the film to be printed deviates leftwards, a left level jump value corresponding to the rotation of the left coded disc is obtained through the left coded disc sensor;
calculating a first offset distance corresponding to the film to be printed according to the left level jump value;
calculating a first difference value between the first offset distance and the standard offset distance as the left offset amount; and
when the film to be printed deviates to the right, a right level jump value corresponding to the rotation of the right code disc is obtained through the right code disc sensor;
calculating a second offset distance corresponding to the film to be printed according to the right level jump value;
and calculating a second difference value of the second offset distance and the standard offset distance as the right offset.
Further, the adjusting the heating area of the print head in the thermal printing system according to the offset includes:
judging whether the film to be printed is transmitted to the pre-printing area;
and when the film to be printed is conveyed to the pre-printing area, adjusting the heating area of the printing head according to the left offset or the right offset, so that the adjusted heating area of the printing head is matched with the position of the film to be printed.
In a second aspect, an embodiment of the present invention provides a film offset correction apparatus, including: the device comprises a first offset detection module, a second offset detection module, a data processing module, a printing correction module and a thermal printer; wherein:
the data processing module is connected with the first deviation detection module, the second deviation detection module and the printing correction module, and the printing correction module is connected with the thermal printer; the thermal printer comprises a left coded disc and a right coded disc which are arranged on two sides of a rotating shaft of a paper feeding motor of the thermal printer; the thermal printer is also provided with a rebound component, and one end of the rebound component is connected to the left coded disc/the right coded disc and is used for detecting whether all films to be printed have deviation;
the first offset detection module is used for acquiring a first reference offset distance corresponding to the left code disc when the film to be printed is not offset and a first offset distance corresponding to the film to be printed;
the second offset detection module is used for acquiring a second reference offset distance corresponding to the right code disc when the film to be printed is not offset and a second offset distance corresponding to the film to be printed;
the data processing module is used for calculating a left offset of the film to be printed according to the first reference offset distance and the first offset distance, calculating a right offset of the film to be printed according to the second reference offset distance and the second offset distance, and sending a correction control instruction to the print correction module according to the left offset or the right offset;
the printing correction module is used for adjusting the heating area of the printing head in the thermal printer based on the correction control instruction so as to enable the adjusted heating area of the printing head to be matched with the position of the film to be printed.
Further, the data processing module includes a calculation unit for calculating an offset amount of the film to be printed, the offset amount including a left offset amount and a right offset amount.
Further, the film offset correction device further comprises a status indication module, wherein the status indication module is connected with the data processing module and is used for showing the status of the film offset correction device.
Further, the film offset correction apparatus further includes a judgment unit for judging whether or not the film to be printed is conveyed to a pre-printing area of the thermal printer.
The embodiment of the invention has the following beneficial effects:
after the method, the device and the terminal for correcting the film offset are adopted, in the process of conveying the film to be printed to the pre-printing area, the offset of the film to be printed is obtained, and the heating area of the printing head in the thermal printing system is adjusted according to the offset, so that the heating assembly of the printing head is matched with the position of the film to be printed after being adjusted; calculating the offset of the film to be printed according to a level jump value of a coded disc sensor caused by the offset of the film to be printed; the method and the device adjust the heating area of the printing head according to the offset of the film to be printed, ensure that the heating area of the printing head is matched with the film to be printed, and ensure that the obtained frame of the printed image is consistent with the set frame.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic flow chart of a film offset correction method according to an embodiment;
FIG. 2 is a schematic structural diagram of the left/right code wheel sensor in one embodiment;
fig. 3 is a schematic flow chart of a film offset correction method according to another embodiment;
FIG. 4 is a flow diagram illustrating an implementation of the standard offset distance in one embodiment;
FIG. 5 is a schematic diagram illustrating a process of determining the offset direction of the film to be printed according to an embodiment;
fig. 6 is a schematic structural view of the film offset correction apparatus in one embodiment;
fig. 7 is a schematic view showing the structure of the film shift correction apparatus in another embodiment;
fig. 8 is a schematic diagram showing an internal configuration of a computer device for executing the above-described film offset correction method in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problem that in the process that a film to be printed is extracted from a film box and then is conveyed to a region to be printed in the traditional thermal printer, the film to be printed is easy to be conveyed according to a preset track, so that the printed image frame is inconsistent, in the embodiment, the film offset correction method is specially provided, the realization of the method can depend on a computer program, and the computer program can run on a computer system based on a Von Neumann system.
In the actual operation process, films to be printed in the thermal printing system are uniformly placed in a film box, and a conveying channel for conveying the films to be printed is arranged between the film box and the printing head.
Specifically, as shown in fig. 1, the method for correcting the film offset includes the following steps S102 to S108:
step S102: and judging whether the film to be printed has transmission offset or not, wherein when the film to be printed has transmission offset, the film to be printed is in contact with the left thimble/the right thimble.
In a specific embodiment, a plurality of films to be printed are preloaded in a film box of the thermal printing system, and when the films to be printed are extracted, positions of the films to be printed placed in the film box are inconsistent, so that in an actual operation process, the situation that the positions of the films to be printed and a printing head are not matched with a preset relative position during printing may occur, and thus frames of printed images are inconsistent.
Based on the above situation, in the process of transferring the film to be printed from the film box to the pre-printing area, the embodiment performs position offset detection on the film to be printed, where the pre-printing area refers to a placement position of the film to be printed when a general thermal printing system performs a printing operation; specifically, whether a film to be printed is transmitted to a pre-printing area according to a preset transmission track is detected; in this embodiment, if the film to be printed undergoes a transport offset, the film to be printed contacts with the left thimble or the right thimble, i.e. the film to be printed collides with the left thimble or the right thimble; it is understood that when the film to be printed is in contact with the left thimble, it is determined that the film to be printed is offset to the left, and when the film to be printed is in contact with the right thimble, it is determined that the film to be printed is offset to the right.
After the film to be printed is subjected to offset detection, the offset condition of the film to be printed is favorable for follow-up actual operation, so that the frame of the image obtained by printing is ensured to be consistent with the preset condition.
Step S104: and when the film to be printed deviates, acquiring a level jump value caused by the rotation of the left coded disc/the right coded disc through the left coded disc sensor/the right coded disc sensor.
The left thimble is fixed at the edge of the left code disc, when a film to be printed deviates and contacts with the thimble, the film to be printed moves forwards according to the conveying direction, so that the film to be printed can drive the left code disc to rotate, the left code disc rotates, the left code disc sensor generates a corresponding level jump value, specifically, as shown in fig. 2, the left code disc sensor is shown as a structural schematic diagram of the left code disc sensor, the left code disc sensor comprises a light emitting part 10, a light receiving part 20, a channel 30 and a base plate 40, the light emitting part 10 and the light receiving part 20 are fixed on the base plate 40, the channel 30 is arranged between the light emitting part 10 and the light receiving part 20, a part of the left code disc is positioned in the channel 30, under a normal condition, if the left code disc does not rotate, at the moment, the light emitting part 10 emits light, the; when the left code wheel rotates, the left code wheel can block the light emitted by the light emitting part 10, so that the light cannot be transmitted to the light receiving part 20, and at the moment, based on the photoelectric effect principle, the left code wheel sensor generates a corresponding level jump value, so that the offset corresponding to the film to be printed can be obtained.
In order to determine the offset of the film to be printed more easily, the present embodiment is provided with a plurality of scales on the left code wheel, so that the offset of the film to be printed can be acquired more quickly and effectively.
The implementation principle of the right coded disc, the right thimble and the right coded disc sensor in the embodiment is consistent with that of the left thimble, the left coded disc and the left coded disc sensor, and reference may be made to the related contents.
In the embodiment, in order to ensure that the left code wheel or the right code wheel does not continuously block the light transmission between the light emitting part 10 and the light receiving part 20 after the current film to be printed is detected, a resilient member is provided, specifically, one end of the resilient member is connected to the left code wheel/the right code wheel, for example, one end of the resilient member is connected to the left thimble/the right thimble, and the other end is fixed to an arbitrary fixing member, and whether all the films to be printed have the deviation is detected through the resilient member.
The embodiment acquires the level jump value of the coded disc sensor caused by the rotation of the corresponding coded disc according to the rotation of the left coded disc/right coded disc caused by the collision of the film to be printed and the left thimble/right thimble, so as to acquire the corresponding offset displacement according to the level jump value.
Step S106: and calculating an offset corresponding to the film to be printed according to the level jump value, wherein the offset comprises a left offset and a right offset.
In the specific embodiment, because the level jump value of the code wheel sensor (left code wheel sensor or right code wheel sensor) is related to the rotation radian of the code wheel (left code wheel or right code wheel), and the rotation radian is related to the collision between the film to be printed and the thimble (left thimble or right thimble), and the code wheel is provided with corresponding scales, on the basis of the level jump value of the code wheel sensor, the specific example of code wheel rotation can be obtained, so as to obtain the offset corresponding to the film to be printed; based on the uncertainty of the offset direction of the film to be printed, the obtained offset amount includes: a left offset corresponding to a left offset state of the film to be printed and a right offset corresponding to a right offset state of the film to be printed.
Because the sizes of the films to be printed are not consistent, in the actual operation process, even if some films to be printed with larger sizes do not shift, the films to be printed may contact the code wheel, so as to generate a shift amount, based on this, in this embodiment, before the films to be printed shift, a standard shift distance is set, as shown in fig. 3, including steps S201 to S202: specifically, the offset distance when the left offset and the right offset of the film to be printed are equal is taken as the standard offset distance; the method comprises the steps that a first reference offset distance corresponding to a left code disc when a film to be printed is not offset is obtained, and a second reference offset distance corresponding to a right code disc is obtained, so that the first reference offset distance or the second reference offset distance can be used as a standard offset distance when the first reference offset distance and the second reference offset distance are equal.
According to the obtained standard offset distance, after a level jump value obtained based on a coded disc sensor (a left coded disc sensor or a right coded disc sensor), the corresponding offset distance can be obtained, so that the offset corresponding to the film to be printed is obtained; specifically, as shown in fig. 4, the method specifically includes steps S1061 to S1067, and is specifically implemented as follows: judging the offset direction of a film to be printed, and when the film to be printed is offset leftwards, acquiring a left level jump corresponding to the rotation of a left code wheel through a left code wheel sensor; then, calculating a first offset distance corresponding to the film to be printed according to the left level jump value; and finally, calculating a first difference value between the first offset distance and the standard offset distance, and taking the first difference value as the left offset. Similarly, when the film to be printed deviates to the right, a right level jump value corresponding to the rotation of the right code wheel is obtained through the right code wheel sensor; then, calculating a second offset distance corresponding to the film to be printed according to the right level jump value; and finally, calculating a second difference value between the second offset distance and the standard offset distance, and taking the second difference value as a right offset.
In the embodiment, the offset (left offset or right offset) corresponding to the film to be printed is obtained, and the size of the heating area of the printing head can be adjusted according to the offset, so that the consistency of the frame of the printed image is ensured.
It should be noted that the code wheel sensor (left code wheel sensor or right code wheel sensor) is an existing distance measuring device, and the principle that the code wheel (left code wheel or right code wheel) implements offset calculation according to the level jump value is the prior art, so the implementation of offset calculation by the code wheel sensor is common knowledge and is clear and realizable for those skilled in the art; based on this, this application does not give unnecessary details to the calculation process of code wheel sensor.
Step S108: and adjusting a heating area of a printing head in the thermal printing system according to the offset, so that the adjusted heating area of the printing head is matched with the position of the film to be printed.
In a specific embodiment, after obtaining an offset (left offset or right offset) corresponding to a film to be printed, the offset can be adjusted according to the offset to ensure the consistency of a frame of an image obtained by printing; specifically, the present embodiment adjusts the heating area of the print head in the thermal printing system based on the obtained offset, so that the heating area of the print head matches with the position of the film to be printed, that is, the size of the heating area of the print head is adjusted to be consistent with the size of the film to be printed, where when the relative position of the heating area of the print head and the film to be printed is consistent with the preset relative position, the image frame obtained by printing is consistent.
The heating area of the printing head is adjusted based on the offset of the film to be printed, so that the heating area of the printing head after adjustment can be matched with the position of the film to be printed, and a printed image with a consistent frame can be obtained.
In order to realize the printing operation of the thermal printing system, a complete printing operation can be completed only when the film to be printed is conveyed to the designated printing area, and based on this, as shown in fig. 5, in one embodiment, the present embodiment further needs to execute steps S1021 to S1022:
step S1021: and judging whether the film to be printed is transmitted to the pre-printing area.
The position of the film to be printed can be determined by manual inspection or real-time monitoring through the existing camera equipment, so that the film to be printed is ensured to be in a preset pre-printing area, and subsequent printing operation is facilitated.
Step S1022: and when the film to be printed is conveyed to the pre-printing area, adjusting the heating area of the printing head according to the left offset or the right offset, so that the adjusted heating area of the printing head is matched with the position of the film to be printed.
The embodiment ensures the normal execution of the printing of the thermal printing system by determining that the film to be printed is in the set pre-printing area; the heating area of the printing head is adjusted through the left offset or the right offset, the consistency of the image frame obtained by printing is guaranteed, and the quality of image printing is improved.
Further, based on the same concept, as shown in fig. 6, the embodiment of the present invention provides a film offset correction apparatus 100; the method comprises the following steps: a first offset detection module 101, a second offset detection module 102, a data processing module 103, a print correction module 104, and a thermal printer 105; the data processing module 103 is connected with the first deviation detection module 101, the second deviation detection module 102 and the printing correction module 104, and the printing correction module 104 is connected with the thermal printer 105; the first offset detection module 101 is configured to acquire a first reference offset distance and a first offset distance corresponding to a film to be printed; the second offset detection module 102 is configured to acquire a second reference offset distance and a second offset distance corresponding to a film to be printed; the data processing module 103 is configured to calculate a left offset of the film to be printed according to the first reference offset distance and the first offset distance, calculate a right offset of the film to be printed according to the second reference offset distance and the second offset distance, and send a correction control instruction to the print correction module 104 according to the left offset or the right offset; the printing correction module 104 adjusts the heating area of the thermal printer 105, specifically the heating area of the print head of the thermal printer 105, based on the correction control instruction, so that the adjusted heating area of the print head matches with the position of the film to be printed.
In one embodiment, the data processing module 103 may be an MCU processor, and based on the above-described film offset correction method, the first detection module 101 may be comprised of a left thimble, a left code wheel, and a left code wheel sensor, and the second detection module 102 may be comprised of a right thimble, a right code wheel, and a right code wheel sensor. Namely, the correction method of the film offset detects the first offset distance of the film to be printed by combining a left thimble, a left code wheel and a left code wheel sensor, detects the second offset distance of the film to be printed by combining a right thimble, a right code wheel and a right code wheel sensor, sets the standard offset distance in an MCU processor, transmitting the first offset distance and/or the second offset distance to the MCU processor, calculating a difference from a standard offset distance, thereby realizing the calculation of the left offset and/or the right offset of the film to be printed, the MCU processor sends a correction control instruction to the printing correction module 104 based on the left offset and/or the right offset, adjusts the heating area of the printing head in the thermal printer 105, the heating area of the printing head is matched with the position of the film to be printed after being adjusted, and therefore the printing image with the consistent frame is obtained.
In one embodiment, the data processing module 103 includes a calculation unit for calculating an offset amount of the film to be printed, the offset amount including a left offset amount and a right offset amount; specifically, the calculating unit is configured to calculate an absolute value of a difference between a first reference offset distance and a first offset distance, which are obtained by the first detecting module 101 and correspond to the film to be printed, so as to obtain a left offset amount; and is used for calculating the absolute value of the difference between the second reference offset distance corresponding to the film to be printed and the second offset distance acquired by the second detection module 102 to acquire a right offset; specifically, reference may be made to the above-mentioned obtaining process of the left offset and the right offset, which is not described herein again.
In one embodiment, as shown in fig. 7, the film offset correction apparatus 100 further comprises a status indication module 106, the status indication module 106 being connected to the thermal printer 105 for showing the status of the film offset correction apparatus 100, wherein the status may include whether the film offset correction apparatus is in an active state and an inactive state. Illustratively, the status indicating device 106 may be an LED lamp that shows a status corresponding to the film offset correction device 100 by displaying a different color, for example, when the LED lamp is green, it indicates that the film offset correction device 100 is not in an operating state, i.e., there is no print job; when the LED lamp is red, it indicates that the film shift correction apparatus 100 is in an operating state, and so on.
In one embodiment, the film offset correction apparatus 100 further includes a judgment unit for judging whether the film to be printed is conveyed to a pre-printing area of the thermal printer. For example, by monitoring the pre-printing area in real time by the image pickup device, it can be determined that the film to be printed has been transferred into the printing area only when the image pickup device acquires that the film to be printed is in the pre-printing area, and conversely, it can be determined that the film to be printed is not in the pre-printing area and waits.
Corresponding to the correction method of the multi-light source system, the film offset correction apparatus of this embodiment first obtains a first reference offset distance and a first offset distance corresponding to a film to be printed through the first detection module 101, and obtains a second reference offset distance and a second offset distance corresponding to the film to be printed through the second offset detection module 102; then, the first reference offset distance, the first offset distance and/or the second reference offset distance and the second offset distance are processed according to the data processing module 103 to obtain a corresponding left offset and/or right offset, and a correction control instruction is sent to the printing correction module 104 based on the left offset/right offset, so that the adjustment of the heating area of the printing head is realized, and the consistency of the frame of the obtained printing image is ensured.
It should be noted that the implementation concept of the film offset correction apparatus in this embodiment is consistent with the implementation concept of the film offset correction method, and the specific implementation principle thereof is not described herein again, and it can refer to the corresponding content in the method.
After the method, the device and the terminal for correcting the film offset are adopted, in the process of conveying the film to be printed to the pre-printing area, the offset of the film to be printed is obtained, and the heating area of the printing head in the thermal printing system is adjusted according to the offset, so that the heating assembly of the printing head is matched with the position of the film to be printed after being adjusted; calculating the offset of the film to be printed according to a level jump value of a coded disc sensor caused by the offset of the film to be printed; the method and the device adjust the heating area of the printing head according to the offset of the film to be printed, ensure that the heating area of the printing head is matched with the film to be printed, and ensure that the obtained frame of the printed image is consistent with the set frame.
FIG. 8 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a server or a terminal. As shown in fig. 8, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the edge detection method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform a method of correcting film offset. Those skilled in the art will appreciate that the architecture shown in fig. 8 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 a particular computing device may include more or less components than those shown in fig. 8, or may combine certain components, or have a different arrangement of components.
In one embodiment, the method for detecting glass boundary defects provided herein can be implemented in the form of a computer program that can be run on a computer device as shown in fig. 8. The memory of the computer device may store therein the various program modules constituting the film offset correction apparatus. Such as data processing module 103, etc.
In one embodiment, a computer device is proposed, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of: judging whether a film to be printed has transmission offset or not, wherein when the film to be printed has transmission offset, the film to be printed is in contact with the left thimble/the right thimble; when the film to be printed deviates, a level jump value caused by the rotation of the left code disc/the right code disc is obtained through the left code disc sensor/the right code disc sensor; calculating an offset corresponding to the film to be printed according to the level jump value, wherein the offset comprises a left offset and a right offset; and adjusting a heating area of a printing head in the thermal printing system according to the offset, so that the adjusted heating area of the printing head is matched with the position of the film to be printed.
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 a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM). The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (9)

1. The correction method for the offset of the film is characterized by being applied to a thermal printing system, wherein the thermal printing system comprises a left coded disc and a right coded disc which are arranged on two sides of a rotating shaft of a paper feeding motor of the thermal printing system; the thermal printing system also comprises a left thimble and a left coded disc sensor which are arranged corresponding to the left coded disc, and a right thimble and a right coded disc sensor which are arranged corresponding to the right coded disc; the thermal printing system is also provided with a rebound component, one end of the rebound component is connected to the left code disc/the right code disc and is used for detecting whether all films to be printed have deviation or not;
the method comprises the following steps:
judging whether the film to be printed has transmission offset or not, and when the film to be printed has transmission offset, contacting the film to be printed with the left thimble/the right thimble; and
when the film to be printed deviates, a level jump value caused by the rotation of the left code disc/right code disc is obtained through the left code disc sensor/right code disc sensor;
calculating an offset corresponding to the film to be printed according to the level jump value, wherein the offset comprises a left offset and a right offset;
and adjusting a heating area of a printing head in the thermal printing system according to the offset, so that the adjusted heating area of the printing head is matched with the position of the film to be printed.
2. The film offset correction method according to claim 1, wherein said judging whether the film to be printed has a conveyance offset includes:
judging whether the film to be printed is transmitted to a pre-printing area in a preset transmission track;
and when the film to be printed is not conveyed to the pre-printing area by the preset conveying track, judging that the film to be printed has conveying deviation.
3. The method for correcting film offset according to claim 2, wherein before calculating the offset amount corresponding to the film to be printed based on the level jump value, further comprising:
acquiring a first reference offset distance corresponding to the left code disc and a second reference offset distance corresponding to the right code disc when the film to be printed is not offset, wherein the first reference offset distance is equal to the second reference offset distance;
taking the first reference offset distance or the second reference offset distance as a standard offset distance.
4. The film offset correction method according to claim 3, wherein said acquiring a level jump value caused by the rotation of said left/right code wheel by said left/right code wheel sensor when the film to be printed is offset, and calculating an offset amount corresponding to the film to be printed based on said level jump value, comprises:
when the film to be printed deviates leftwards, a left level jump value corresponding to the rotation of the left coded disc is obtained through the left coded disc sensor;
calculating a first offset distance corresponding to the film to be printed according to the left level jump value;
calculating a first difference value between the first offset distance and the standard offset distance as the left offset amount; and
when the film to be printed deviates to the right, a right level jump value corresponding to the rotation of the right code disc is obtained through the right code disc sensor;
calculating a second offset distance corresponding to the film to be printed according to the right level jump value;
and calculating a second difference value of the second offset distance and the standard offset distance as the right offset.
5. The method of correcting for film offset according to claim 3, wherein said adjusting the heating zone of a print head in the thermal printing system according to the offset amount comprises:
judging whether the film to be printed is transmitted to the pre-printing area;
and when the film to be printed is conveyed to the pre-printing area, adjusting the heating area of the printing head according to the left offset or the right offset, so that the adjusted heating area of the printing head is matched with the position of the film to be printed.
6. A film shift correction apparatus, comprising: the device comprises a first offset detection module, a second offset detection module, a data processing module, a printing correction module and a thermal printer; wherein:
the data processing module is connected with the first deviation detection module, the second deviation detection module and the printing correction module, and the printing correction module is connected with the thermal printer; the thermal printer comprises a left coded disc and a right coded disc which are arranged on two sides of a rotating shaft of a paper feeding motor of the thermal printer; the thermal printer is also provided with a rebound component, and one end of the rebound component is connected to the left coded disc/the right coded disc and is used for detecting whether all films to be printed have deviation;
the first offset detection module is used for acquiring a first reference offset distance corresponding to the left code disc when the film to be printed is not offset and a first offset distance corresponding to the film to be printed;
the second offset detection module is used for acquiring a second reference offset distance corresponding to the right code disc when the film to be printed is not offset and a second offset distance corresponding to the film to be printed;
the data processing module is used for calculating a left offset of the film to be printed according to the first reference offset distance and the first offset distance, calculating a right offset of the film to be printed according to the second reference offset distance and the second offset distance, and sending a correction control instruction to the print correction module according to the left offset or the right offset;
the printing correction module is used for adjusting a heating area of a printing head in the thermal printer based on the correction control instruction so that the adjusted heating area of the printing head is matched with the position of the film to be printed.
7. The film offset correction apparatus according to claim 6, wherein the data processing module includes a calculation unit for calculating an offset amount of the film to be printed, the offset amount including a left offset amount and a right offset amount.
8. The film offset correction apparatus of claim 6 or 7, further comprising a status indication module connected to said data processing module for displaying the status of said film offset correction apparatus.
9. The film offset correction apparatus according to claim 6 or 7, further comprising a judgment unit for judging whether the film to be printed is conveyed to a pre-print area of the thermal printer.
CN201910934594.6A 2019-09-29 2019-09-29 Method and device for correcting film offset and terminal Active CN110588181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910934594.6A CN110588181B (en) 2019-09-29 2019-09-29 Method and device for correcting film offset and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910934594.6A CN110588181B (en) 2019-09-29 2019-09-29 Method and device for correcting film offset and terminal

Publications (2)

Publication Number Publication Date
CN110588181A CN110588181A (en) 2019-12-20
CN110588181B true CN110588181B (en) 2020-11-27

Family

ID=68864992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910934594.6A Active CN110588181B (en) 2019-09-29 2019-09-29 Method and device for correcting film offset and terminal

Country Status (1)

Country Link
CN (1) CN110588181B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110757956B (en) * 2019-10-26 2021-03-30 森大(深圳)技术有限公司 Method, device and equipment for acquiring installation deviation value of spray head and storage medium
IT202100008324A1 (en) * 2021-04-01 2022-10-01 Danieli Off Mecc PLANT AND PROCEDURE FOR PRINTING ON VARNISHED RIBBONS
CN113400819B (en) * 2021-06-17 2023-03-24 浙江汇诚汇捷影像数码科技有限公司 Medical thermal printer system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59230768A (en) * 1983-06-13 1984-12-25 Fujitsu Ltd Color printer
JPS63251263A (en) * 1987-04-08 1988-10-18 Ricoh Co Ltd image recording device
JPH08174881A (en) * 1994-12-26 1996-07-09 Fuji Xerox Co Ltd Thermal transfer recorder and halftone recording method
JP2004009610A (en) * 2002-06-07 2004-01-15 Fuji Photo Film Co Ltd Method for printing and printer
JP2006038639A (en) * 2004-07-27 2006-02-09 Brother Ind Ltd End position detection apparatus and method, and program
JP6651013B2 (en) * 2016-07-07 2020-02-19 富士フイルム株式会社 Printer, imaging device with printer, and print control method
US10105963B2 (en) * 2017-03-03 2018-10-23 Datamax-O'neil Corporation Region-of-interest based print quality optimization
CN109849535B (en) * 2019-01-03 2021-05-11 南阳柯丽尔科技有限公司 Printing expansion device and system

Also Published As

Publication number Publication date
CN110588181A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN110588181B (en) Method and device for correcting film offset and terminal
US9446586B2 (en) Systems and methods for image distortion reduction in web printing
DE69736415T2 (en) An image forming apparatus and control apparatus and method therefor
US20190388967A1 (en) System and method for detecting 3d printing errors
US9651887B2 (en) Image forming device, image forming method and program
US7746518B2 (en) Area image acquiring method for image reading apparatus
US10093110B2 (en) Printing apparatus and printing method
JP6813266B2 (en) Web transfer device
US10362189B2 (en) Image reading apparatus having an abnormality detecting unit for a calibration plate
JP2010008516A5 (en)
US20120105876A1 (en) Color plane registration error correction
JP6163806B2 (en) Inspection device, inspection method, and program for inspection device
US11590779B2 (en) Image forming apparatus, position detection method, and computer-readable medium
US10148835B2 (en) Image processing device, printing apparatus, and control method
JP2019174999A5 (en) Printing system, image forming apparatus and its control method, and program
JP2024082122A5 (en)
CN109828729B (en) Networking communication method for coordinating laser printer
JP6236819B2 (en) Inspection device, inspection method, and program for inspection device
JP2022131232A5 (en)
US20210173600A1 (en) Image processing apparatus, method of controlling image processing apparatus, and non-transitory computer-readable storage medium storing program
JP2005212300A (en) Print color correcting method
CN113498317A (en) Production system
US20240323294A1 (en) Information processing system, non-transitory computer readable medium storing information processing program, and information processing method
CN104553348A (en) Card printer and card checking method of card printer
JP4397850B2 (en) Inspection device, correction data generation device, and PTP packaging machine

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
GR01 Patent grant
GR01 Patent grant