CN113157221A - Parameter calibration method, device, equipment and storage medium for visible card printer - Google Patents

Parameter calibration method, device, equipment and storage medium for visible card printer Download PDF

Info

Publication number
CN113157221A
CN113157221A CN202110290339.XA CN202110290339A CN113157221A CN 113157221 A CN113157221 A CN 113157221A CN 202110290339 A CN202110290339 A CN 202110290339A CN 113157221 A CN113157221 A CN 113157221A
Authority
CN
China
Prior art keywords
card
gray
visual
value
writing
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.)
Granted
Application number
CN202110290339.XA
Other languages
Chinese (zh)
Other versions
CN113157221B (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.)
Xiamen Hanyin Electronic Technology Co Ltd
Original Assignee
Xiamen Hanyin Electronic 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 Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN202110290339.XA priority Critical patent/CN113157221B/en
Publication of CN113157221A publication Critical patent/CN113157221A/en
Application granted granted Critical
Publication of CN113157221B publication Critical patent/CN113157221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1205Improving or facilitating administration, e.g. print management resulting in increased flexibility in print job configuration, e.g. job settings, print requirements, job tickets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/128Direct printing, e.g. sending document file, using memory stick, printing from a camera

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)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention provides a method, a device, equipment and a storage medium for calibrating parameters of a visual card printer, wherein the method comprises the following steps: in calibrating the write parameters: controlling to input a blank visual card into a printing channel of a visual card printer so that the visual card printer prints a preset pattern on a card surface in the blank visual card according to current writing parameters, and scanning the card surface through a scanning module to generate a card surface image; wherein the predetermined pattern includes pixel blocks having multi-order gray scales; carrying out gray processing on the card surface image to obtain a gray image, and traversing the gray value of each pixel block on the gray image; and adjusting or determining the writing parameters of the visible card printer according to the size relation between each gray value and a preset first threshold value. The invention realizes the full-automatic calibration of the erasing effect of the visual card.

Description

Parameter calibration method, device, equipment and storage medium for visible card printer
Technical Field
The invention relates to the technical field of printing, in particular to a method, a device, equipment and a storage medium for calibrating parameters of a visual card printer.
Background
The visible card is also called a rewritable card, a visible card, a rewritable card, an erasable card, a window IT card, a heat-sensitive rewritable card, an intelligent visible card, a heat-sensitive card, etc., and is a card capable of being repeatedly printed and erased by heating. Visual cards have found widespread use in many areas and industries, such as in the areas of commercial retail, transportation, healthcare, cultural entertainment, and the like. As digital consumption and smart card consumption become mainstream consumption modes of the business society, more and more fields and industries start and will apply carbon copy card products.
The visual card has the working principle similar to that of thermal paper, and is characterized in that a special thermal sensitive coating is coated on the surface of a PET or PVC card, and the coating can be rapidly cooled to show specific black or blue after being heated to a specific temperature. The color information of the surface is lost by slowly cooling the surface after heating to a specific temperature. Normally, a visible card can be rewritten hundreds of times, and has high resolution and good printability.
As shown in fig. 1, the temperature at which the visible card of fig. 1 is erased (the temperature typically provided by the print head) is 120 degrees c to 150 degrees c. The temperature of color development is 170 ℃ to 180 ℃. It can be seen that to achieve high definition printing and complete erasure, the temperature provided by the printhead needs to be tightly controlled to the corresponding erase and color gamut.
However, most of the current visible card printers on the market support cards with fixed thickness, when the thickness of the card changes, especially becomes thinner, the temperature conductivity decreases due to the pressure change of the printing head on the card, so that the temperature finally provided to the card cannot reach the corresponding range, and further, the erasing effect is greatly reduced, and the printing effect is not good.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for calibrating parameters of a visual card printer, and aims to solve the problems.
The invention is realized by the following steps:
a method for calibrating parameters of a visual card printer, comprising:
in calibrating the write parameters:
s101, controlling to input a blank visual card into a printing channel of a visual card printer, so that the visual card printer prints a preset pattern on a card surface in the blank visual card according to current writing parameters, and scanning the card surface through a scanning module to generate a card surface image; wherein the predetermined pattern includes a pattern having a plurality of gradations;
s102, carrying out gray processing on the card surface image to obtain a gray image, and traversing the gray value of each pixel block on the gray image;
s103, adjusting or determining the writing parameters of the visible card printer according to the size relation between each gray value and a preset first threshold value.
Preferably, the predetermined pattern is a 256-step pattern.
Preferably, the writing parameters include writing speed, writing heating time and writing heating gradation; adjusting or determining the writing parameters of the visible card printer according to the size relationship between each gray value and a preset first threshold, specifically comprising:
judging the number of pixel blocks with the gray values smaller than a first threshold value;
if the number of the first threshold values is less than zero, adjusting the writing speed, and returning to the step S101;
if the number smaller than the first threshold is larger than zero and smaller than or equal to M, adjusting the writing heating time, and returning to the step S101;
and if the number smaller than the first threshold is larger than M, acquiring the current writing heating tone of the pixel block with the maximum gray value, and setting the current writing heating time, the current writing speed and the current writing heating tone to the visual card printer.
Preferably, the method further comprises the following steps:
in calibrating the erasure parameters:
s104, controlling to input a visual card into a printing channel of a visual card printer, so that the visual card printer scans the card surface of the visual card printer through a scanning module to generate a card surface image;
s105, receiving the card surface image, and carrying out gray level processing on the card surface image to generate a gray level image;
s106, judging whether the input visual card is a blank card or not according to the gray scale map; if yes, executing S107; if not, executing S109;
s107, recording the gray value of the card surface;
s108, controlling the card to retreat to a printing head position so that a printer can print the preset pattern on the visual card;
s109, traversing the gray value of each pixel block on the gray map;
and S110, adjusting or determining the erasing parameters of the visible card printer according to the size relation between each gray value and a preset second threshold value.
Preferably, adjusting or determining the erasing parameters of the visible card printer according to the size relationship between each gray value and a preset second threshold specifically includes:
judging the number of pixel blocks with gray values larger than a second threshold value;
if the number of the visual cards is larger than the second threshold value, adjusting the erasing speed, controlling to input a blank visual card into the printing channel, and returning to the step S108;
if the number of the visible cards larger than the second threshold is larger than zero and smaller than or equal to N, adjusting erasing heating time, controlling to input a blank visible card into the printing channel, and returning to the step S108;
and if the number of the pixel blocks is larger than the first threshold value and is larger than N, acquiring the current erasing heating tone of the pixel block with the minimum gray value, and setting the current erasing heating time, erasing speed and erasing heating tone to the visual card printer.
Preferably, when the erasing speed is adjusted, when the erasing is executed at the current erasing speed, if the number larger than the second threshold is zero, the first speed value is reduced; if the number of the first speed value which is larger than the second threshold value is still zero after the first speed value is reduced, increasing the first speed value on the basis of the current erasing speed; the first speed value is accumulated according to the number of times of adjustment, and the adjusted erasing speed is within a preset speed range.
Preferably, a difference between the first threshold and a minimum gray value in the multi-level gray is less than or equal to a preset calibration precision value; and the absolute value of the difference value between the second threshold and the gray value of the visual card is less than or equal to a preset calibration precision value.
The embodiment of the invention also provides a parameter calibration device of a visible card printer, which comprises:
the visual card input control unit is used for controlling a blank visual card to be input into a printing channel of the visual card printer so that the visual card printer prints a preset pattern on a card surface in the blank visual card according to the current writing parameters, and the card surface is scanned through the scanning module to generate a card surface image; wherein the predetermined pattern includes pixel blocks having multi-order gray scales;
the gray processing unit is used for carrying out gray processing on the card surface image to obtain a gray image and traversing the gray value of each pixel block on the gray image;
and the writing setting unit is used for adjusting or determining the writing parameters of the visible card printer according to the size relation between each gray value and a preset first threshold value.
The embodiment of the invention also provides a parameter calibration device of a visible card printer, which comprises a memory and a processor, wherein a computer program is stored in the memory, and the computer program can be executed by the processor so as to realize the parameter calibration method of the visible card printer.
The embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, where the computer program can be executed by a processor of a device where the computer-readable storage medium is located, so as to implement the parameter calibration method for a visible card printer as described above.
In the above embodiment, when a new visual card is erased and written, the current writing parameters of the visual card printer are automatically calibrated through the preset pattern and the judgment of the gray value, so that the current writing parameters of the visual card are adapted to the current visual card, and the writing effect and the erasing effect of the current visual card are ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic diagram of erasing and writing temperature variation of a prior art video card;
FIG. 2 is a flowchart illustrating a method for calibrating parameters of a video card printer according to a first embodiment of the present invention;
FIG. 3 is a schematic flow chart of automatic calibration of write parameters;
FIG. 4 is a graph of time-temperature-card travel speed;
FIG. 5 is a schematic flow chart illustrating automatic calibration of erasure parameters;
fig. 6 is a schematic structural diagram of a parameter calibration apparatus of a video card printer according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 2 and fig. 3, a first embodiment of the present invention provides a method for calibrating parameters of a video card printer, which can be executed by a parameter calibration device (hereinafter referred to as a calibration device) of the video card printer, and in particular, executed by one or more processors in the calibration device, so as to implement the following steps:
in calibrating the write parameters:
s101, controlling to input a blank visual card into a printing channel of a visual card printer, so that the visual card printer prints a preset pattern on a card surface in the blank visual card according to current writing parameters, and scanning the card surface through a scanning module to generate a card surface image; wherein the predetermined pattern includes pixel blocks having multi-level gray scales.
In this embodiment, the calibration device may be a terminal with computing processing capability, such as a desktop computer, a service station, a notebook computer, a tablet computer, or a mobile terminal, and the calibration device may establish a communication connection with the visible card printer, and implement data interaction and sending of a control instruction with the visible card printer based on the established communication connection.
In this embodiment, when calibrating the writing parameters of the visible card printer, a blank visible card is first input into the printing channel of the visible card printer, and after the visible card printer detects the blank visible card, the blank visible card is controlled to be transported in the printing channel, and the printing operation is performed at the position of the printing head, so that the predetermined pattern is written on the card surface of the visible card.
In this embodiment, the writing parameters include writing speed, writing heating time, and writing heating tone. The writing speed is the moving speed of the visible card in the printing channel during writing. For the write heating time and the write heating gradation, since the thermal head cannot continuously turn on heating for a long time, the head is easily damaged. Typically, one unit of heating time is selected and the heating is repeated several times. This embodiment refers to the unit heating time as the writing heating time, and the number of times of heating as the writing heating gradation.
In this embodiment, specifically, the multi-level gray scale is 256 levels, and accordingly, the predetermined pattern includes pixel blocks having 256 levels of gray scale, specifically, the predetermined pattern is a 256-level map including 256 pixel blocks each having different color levels or gray scale values. Each pixel block may include one pixel point or a plurality of pixel points, and the present invention is not limited in particular.
In this embodiment, after the printing is completed, the visible card printer scans the card surface of the visible card through a scanning module disposed in the printing channel to obtain a card surface image, and sends the card surface image to the calibration device.
The main component of the scanning module is a CIS (Contact Image Sensor) or a CCD (Charge Coupled Device) Sensor, and the card surface Image is generally a color RGB Image.
And S102, carrying out gray processing on the card surface image to obtain a gray image, and traversing the gray value of each pixel block on the gray image.
In this embodiment, the calibration device converts the card surface image into a grayscale image after receiving it. In the field of computer color, the relationship between white and black is generally divided into several levels according to a logarithmic relationship, which is called "gray scale". Typically ranging from 0 to 255, with a white gray scale value of 255 and a black gray scale value of 0.
The method of converting a color image into a gray scale image depends on the field of application and is generally converted by a weighted method, and the ratio of R: G: B is generally 3:6: 1. An alternative formula is: gray ═ R0.299 + G0.587 + B0.114.
In this embodiment, the actual erasable area of the video card can be adjusted according to the distribution of the 256-level images, so that the position of each pixel block can be accurately obtained, and the gray values of 256 pixel blocks are collected and recorded as G1-G256.
S103, adjusting or determining the writing parameters of the visible card printer according to the size relation between each gray value and a preset first threshold value.
Specifically, in the examples:
first, the number of pixel blocks with gray values smaller than a first threshold is determined.
The difference between the first threshold and the minimum gray value in the multi-level gray is less than or equal to a preset calibration precision value, and the smaller the difference between the first threshold and the minimum gray value in the multi-level gray is, the higher the calibration precision is.
In this embodiment, for a 256-level graph, the minimum gray value is 0, which represents a pure black pixel block.
If the number smaller than the first threshold is zero, the writing speed is adjusted, and the process returns to step S101.
And if the number smaller than the first threshold is larger than zero and smaller than or equal to M, adjusting the writing heating time, and returning to the step S101.
In order to improve the compatibility of the machine, at least M consecutive gradations are required to meet the requirement, and M is generally set to 6, or may be set to other values.
And if the number smaller than the first threshold is larger than M, acquiring the current writing heating tone of the pixel block with the maximum gray value, and setting the current writing heating time, the current writing speed and the current writing heating tone to the visual card printer.
In this embodiment, if the number smaller than the first threshold is greater than M, it indicates that the current writing parameter meets the writing requirement, and at this time, the current writing heating time, the current writing speed, and the current writing heating level are set in the visible card printer.
Similarly, referring to fig. 4, the embodiment can also be used to adjust the erasing parameters of the visible card printer, wherein the step of adjusting the erasing parameters is as follows:
and S104, controlling to input a visual card into a printing channel of the visual card printer, so that the visual card printer scans the card surface of the visual card printer through a scanning module to generate a card surface image.
And S105, receiving the card surface image, and performing gray processing on the card surface image to generate a gray image.
S106, judging whether the input visual card is a blank card or not according to the gray scale map; if yes, executing S107; if not, executing S109;
s107, recording the gray value of the card surface;
and S108, controlling the card to retreat to the printing head position so that the printer can print the preset pattern on the visual card.
Here, also, the predetermined pattern is preferably a 256-step pattern.
S109, traversing the gray value of each pixel block on the gray map;
and S110, adjusting or determining the erasing parameters of the visible card printer according to the size relation between each gray value and a preset second threshold value.
The second threshold is generated according to the own gray value of the card surface, and the closer the second threshold is to the own gray value of the visual card, the better the second threshold is.
In this embodiment, step S110 specifically includes:
judging the number of pixel blocks with gray values larger than a second threshold value;
if the number of the visible cards is larger than the second threshold is zero, adjusting the erasing speed, controlling to input a blank visible card into the printing channel, and returning to the step S108.
In the present embodiment, as shown in fig. 5, the larger the card travel speed, the more the time-temperature waveform curves toward the speed V3, and conversely curves toward the speed V1. It is assumed that the second threshold of G1 to G256> is satisfied between V1 and V3, i.e., it is permissible as long as the speed falls within this range. When the erasing speed is adjusted, when erasing is performed at the current erasing speed Vdef, if the number larger than the second threshold is zero, the first speed value is decreased (for example, decreased by 1 mm/s); if the number of the first speed value which is larger than the second threshold value is still zero after the first speed value is reduced, increasing the first speed value on the basis of the current erasing speed; the first speed value is accumulated according to the number of times of adjustment (for example, at the time of the next adjustment, the first speed value becomes 2mm/s), and it is satisfied that the adjusted erasing speed is within a predetermined speed range.
If the number of the visible cards larger than the second threshold is larger than zero and smaller than or equal to N, adjusting erasing heating time, controlling to input a blank visible card into the printing channel, and returning to the step S108;
and if the number of the pixel blocks is larger than the first threshold value and is larger than N, acquiring the current erasing heating tone of the pixel block with the minimum gray value, and setting the current erasing heating time, erasing speed and erasing heating tone to the visual card printer.
Where N is also preferably set to 6, although other values are possible and are within the scope of the invention.
In summary, according to the parameter calibration method for the video card printer provided in this embodiment, when a new video card is erased, the current writing parameter or erasing parameter of the video card printer is automatically calibrated through the preset pattern and the judgment on the gray scale value, so that the current writing parameter or erasing parameter of the video card is adapted to the current video card, and the writing effect and the erasing effect of the current video card are ensured.
Referring to fig. 6, a second embodiment of the present invention further provides a parameter calibration apparatus for a video card printer, which includes:
a visible card input control unit 210, configured to control to input a blank visible card into a printing channel of a visible card printer, so that the visible card printer prints a predetermined pattern on a card surface in the blank visible card according to a current writing parameter, and scans the card surface through a scanning module to generate a card surface image; wherein the predetermined pattern includes pixel blocks having multi-order gray scales;
the gray processing unit 220 is configured to perform gray processing on the card surface image to obtain a gray map, and traverse the gray value of each pixel block on the gray map;
and the writing setting unit 230 is used for adjusting or determining the writing parameters of the visible card printer according to the size relationship between each gray value and a preset first threshold value.
Preferably, the writing parameters include writing speed, writing heating time and writing heating gradation; the write setting unit 230 is specifically configured to:
judging the number of pixel blocks with the gray values smaller than a first threshold value;
if the number of the first threshold values is less than zero, adjusting the writing speed, and returning to the step S101;
if the number smaller than the first threshold is larger than zero and smaller than or equal to M, adjusting the writing heating time, and returning to the step S101;
and if the number smaller than the first threshold is larger than M, acquiring the current writing heating tone of the pixel block with the maximum gray value, and setting the current writing heating time, the current writing speed and the current writing heating tone to the visual card printer.
Preferably, a write setting unit 230 is further included for:
in calibrating the erasure parameters:
s104, controlling to input a visual card into a printing channel of a visual card printer, so that the visual card printer scans the card surface of the visual card printer through a scanning module to generate a card surface image;
s105, receiving the card surface image, and carrying out gray level processing on the card surface image to generate a gray level image;
s106, judging whether the input visual card is a blank card or not according to the gray scale map; if yes, executing S107; if not, executing S109;
s107, recording the gray value of the card surface;
s108, controlling the card to retreat to a printing head position so that a printer can print the preset pattern on the visual card;
s109, traversing the gray value of each pixel block on the gray map;
and S110, adjusting or determining the erasing parameters of the visible card printer according to the size relation between each gray value and a preset second threshold value.
Preferably, adjusting or determining the erasing parameters of the visible card printer according to the size relationship between each gray value and a preset second threshold specifically includes:
judging the number of pixel blocks with gray values larger than a second threshold value;
if the number of the visual cards is larger than the second threshold value, adjusting the erasing speed, controlling to input a blank visual card into the printing channel, and returning to the step S108;
if the number of the visible cards larger than the second threshold is larger than zero and smaller than or equal to N, adjusting erasing heating time, controlling to input a blank visible card into the printing channel, and returning to the step S108;
and if the number of the pixel blocks is larger than the first threshold value and is larger than N, acquiring the current erasing heating tone of the pixel block with the minimum gray value, and setting the current erasing heating time, erasing speed and erasing heating tone to the visual card printer.
The third embodiment of the present invention further provides a parameter calibration device for a visible card printer, which includes a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the parameter calibration method for a visible card printer as described above.
The fourth embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, where the computer program is executable by a processor of a device where the computer-readable storage medium is located, so as to implement the parameter calibration method for a visible card printer as described above.
Illustratively, the above method flows may be implemented by a processor executing a computer program. The computer program may be divided into one or more units, which are stored in the memory and executed by the processor to accomplish the present invention. The one or more elements may be a series of computer program instruction segments capable of performing certain functions.
The printer and the business server may include, but are not limited to, a processor, a memory. Those skilled in the art will appreciate that the schematic diagrams are merely examples of a printer and a service server, are not limiting, and may include more or fewer components than those shown, or some components may be combined, or different components.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may be used to store the computer programs and/or modules, and the processor may implement the various functions of the data transmission device by running or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the printer and the service server integrated unit can be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A method for calibrating parameters of a visual card printer is characterized by comprising the following steps:
in calibrating the write parameters:
s101, controlling to input a blank visual card into a printing channel of a visual card printer, so that the visual card printer prints a preset pattern on a card surface in the blank visual card according to current writing parameters, and scanning the card surface through a scanning module to generate a card surface image; wherein the predetermined pattern includes pixel blocks having multi-order gray scales;
s102, carrying out gray processing on the card surface image to obtain a gray image, and traversing the gray value of each pixel block on the gray image;
s103, adjusting or determining the writing parameters of the visible card printer according to the size relation between each gray value and a preset first threshold value.
2. The method as claimed in claim 1, wherein the multi-level gray scale is 256 levels, and the predetermined pattern is a 256-level graph.
3. The method of claim 2, wherein the writing parameters include writing speed, writing heating time, and writing heating gradation; adjusting or determining the writing parameters of the visible card printer according to the size relationship between each gray value and a preset first threshold, specifically comprising:
judging the number of pixel blocks with the gray values smaller than a first threshold value;
if the number of the first threshold values is less than zero, adjusting the writing speed, and returning to the step S101;
if the number smaller than the first threshold is larger than zero and smaller than or equal to M, adjusting the writing heating time, and returning to the step S101;
and if the number smaller than the first threshold is larger than M, acquiring the current writing heating tone of the pixel block with the maximum gray value, and setting the current writing heating time, the current writing speed and the current writing heating tone to the visual card printer.
4. The method for calibrating parameters of a video card printer according to claim 2, further comprising:
in calibrating the erasure parameters:
s104, controlling to input a visual card into a printing channel of a visual card printer, so that the visual card printer scans the card surface of the visual card printer through a scanning module to generate a card surface image;
s105, receiving the card surface image, and carrying out gray level processing on the card surface image to generate a gray level image;
s106, judging whether the input visual card is a blank card or not according to the gray scale map; if yes, executing S107; if not, executing S109;
s107, recording the gray value of the card surface;
s108, controlling the card to retreat to a printing head position so that a printer can print the preset pattern on the visual card;
s109, traversing the gray value of each pixel block on the gray map;
and S110, adjusting or determining the erasing parameters of the visible card printer according to the size relation between each gray value and a preset second threshold value.
5. The method for calibrating parameters of a video card printer according to claim 4, wherein adjusting or determining the erasing parameters of the video card printer according to the magnitude relationship between each gray-level value and a preset second threshold comprises:
judging the number of pixel blocks with gray values larger than a second threshold value;
if the number of the visual cards is larger than the second threshold value, adjusting the erasing speed, controlling to input a blank visual card into the printing channel, and returning to the step S108;
if the number of the visible cards larger than the second threshold is larger than zero and smaller than or equal to N, adjusting erasing heating time, controlling to input a blank visible card into the printing channel, and returning to the step S108;
and if the number of the pixel blocks is larger than the first threshold value and is larger than N, acquiring the current erasing heating tone of the pixel block with the minimum gray value, and setting the current erasing heating time, erasing speed and erasing heating tone to the visual card printer.
6. The parameter calibration method for a video card printer according to claim 5, wherein in adjusting the erasing speed, when erasing is performed at the current erasing speed, if the number larger than the second threshold value is zero, the first speed value is decreased; if the number of the first speed value which is larger than the second threshold value is still zero after the first speed value is reduced, increasing the first speed value on the basis of the current erasing speed; the first speed value is accumulated according to the number of times of adjustment, and the adjusted erasing speed is within a preset speed range.
7. The method as claimed in claim 5, wherein the difference between the first threshold and the minimum gray level in the multi-level gray levels is less than or equal to a predetermined calibration precision; and the absolute value of the difference value between the second threshold and the gray value of the visual card is less than or equal to a preset calibration precision value.
8. A parameter calibration device for a video card printer, comprising:
the visual card input control unit is used for controlling a blank visual card to be input into a printing channel of the visual card printer so that the visual card printer prints a preset pattern on a card surface in the blank visual card according to the current writing parameters, and the card surface is scanned through the scanning module to generate a card surface image; wherein the predetermined pattern includes pixel blocks having multi-order gray scales;
the gray processing unit is used for carrying out gray processing on the card surface image to obtain a gray image and traversing the gray value of each pixel block on the gray image;
and the writing setting unit is used for adjusting or determining the writing parameters of the visible card printer according to the size relation between each gray value and a preset first threshold value.
9. A parameter calibration device for a visual card printer, comprising a memory and a processor, the memory having stored therein a computer program executable by the processor to implement the parameter calibration method for a visual card printer according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored, the computer program being executable by a processor of a device in which the computer-readable storage medium is located, to implement the method for parameter calibration of a visual card printer according to any one of claims 1 to 7.
CN202110290339.XA 2021-03-18 2021-03-18 Parameter calibration method, device, equipment and storage medium for visible card printer Active CN113157221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110290339.XA CN113157221B (en) 2021-03-18 2021-03-18 Parameter calibration method, device, equipment and storage medium for visible card printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110290339.XA CN113157221B (en) 2021-03-18 2021-03-18 Parameter calibration method, device, equipment and storage medium for visible card printer

Publications (2)

Publication Number Publication Date
CN113157221A true CN113157221A (en) 2021-07-23
CN113157221B CN113157221B (en) 2022-11-18

Family

ID=76887669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110290339.XA Active CN113157221B (en) 2021-03-18 2021-03-18 Parameter calibration method, device, equipment and storage medium for visible card printer

Country Status (1)

Country Link
CN (1) CN113157221B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102416781A (en) * 2011-08-31 2012-04-18 宁波荣大证卡打印设备有限公司 Adjusting device for angle of print head of visual card printer
US20150224763A1 (en) * 2012-09-17 2015-08-13 Tonejet Limited Printhead calibration and printing
JP2017144592A (en) * 2016-02-16 2017-08-24 理想科学工業株式会社 Ink jet printer
CN107521248A (en) * 2017-09-14 2017-12-29 航天信息股份有限公司 The thermal control Method of printing of erasable card
CN109766063A (en) * 2019-01-21 2019-05-17 深圳市邻友通科技发展有限公司 A kind of nail beauty machine printing calibration method, device, nail beauty machine and storage medium
CN110505459A (en) * 2019-08-16 2019-11-26 域鑫科技(惠州)有限公司 Suitable for the image color correction method of endoscope, device and storage medium
CN111845100A (en) * 2019-04-26 2020-10-30 森大(深圳)技术有限公司 Printer ink amount setting method, device, equipment and medium based on image processing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102416781A (en) * 2011-08-31 2012-04-18 宁波荣大证卡打印设备有限公司 Adjusting device for angle of print head of visual card printer
US20150224763A1 (en) * 2012-09-17 2015-08-13 Tonejet Limited Printhead calibration and printing
JP2017144592A (en) * 2016-02-16 2017-08-24 理想科学工業株式会社 Ink jet printer
CN107521248A (en) * 2017-09-14 2017-12-29 航天信息股份有限公司 The thermal control Method of printing of erasable card
CN109766063A (en) * 2019-01-21 2019-05-17 深圳市邻友通科技发展有限公司 A kind of nail beauty machine printing calibration method, device, nail beauty machine and storage medium
CN111845100A (en) * 2019-04-26 2020-10-30 森大(深圳)技术有限公司 Printer ink amount setting method, device, equipment and medium based on image processing
CN110505459A (en) * 2019-08-16 2019-11-26 域鑫科技(惠州)有限公司 Suitable for the image color correction method of endoscope, device and storage medium

Also Published As

Publication number Publication date
CN113157221B (en) 2022-11-18

Similar Documents

Publication Publication Date Title
US11477343B2 (en) Dynamic printing system compensation mechanism
US10534987B2 (en) Image processing apparatus image processing method and program
US7633650B2 (en) Apparatus and method for processing binary image produced by error diffusion according to character or line drawing detection
US6771814B1 (en) Image processing device and image processing method
US20130176600A1 (en) Halftone Calibration Mechanism Employing an Ink Model
US20210064859A1 (en) Image processing system, image processing method, and storage medium
US8594446B2 (en) Method for enhancing a digitized document
US9406005B2 (en) Gamma correction table generation method, image processing device using the gamma correction table and control program thereof
US20060165292A1 (en) Noise resistant edge detection
US20120301026A1 (en) Image processing apparatus, image processing method, and computer readable medium
US9338310B2 (en) Image processing apparatus and computer-readable medium for determining pixel value of a target area and converting the pixel value to a specified value of a target image data
CN113157221B (en) Parameter calibration method, device, equipment and storage medium for visible card printer
JP2008147937A (en) Image processor and image processing method
JP5508031B2 (en) Image processing apparatus and image processing method
JP7282314B2 (en) Image processing device, image processing method and image processing program
US8400670B2 (en) Image down-sampling with fine detail enhancement
US20020041397A1 (en) Method of processing pixels with binary or multibit error diffusion
US11155099B2 (en) Printer density control mechanism
US8605332B2 (en) Image processing method and apparatus
JP4894664B2 (en) Image processing system and image processing program
Kuznetsov et al. High-Definition Halftone Printing
US10944885B2 (en) Image processing apparatus, method, and computer product low pass filtering correction coefficient for correcting image then subject to halftone processing
JP2017169162A (en) Image reading apparatus, and image processing method
Kuznetsov et al. Tonal Conversions
JP2019176336A (en) Image processing device, image transmission device, image processing method, and image processing program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant