CN104108245B - The method and apparatus that error compensation printing is carried out to card - Google Patents

The method and apparatus that error compensation printing is carried out to card Download PDF

Info

Publication number
CN104108245B
CN104108245B CN201310136465.5A CN201310136465A CN104108245B CN 104108245 B CN104108245 B CN 104108245B CN 201310136465 A CN201310136465 A CN 201310136465A CN 104108245 B CN104108245 B CN 104108245B
Authority
CN
China
Prior art keywords
mrow
coordinate
image
card
corner
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
CN201310136465.5A
Other languages
Chinese (zh)
Other versions
CN104108245A (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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201310136465.5A priority Critical patent/CN104108245B/en
Publication of CN104108245A publication Critical patent/CN104108245A/en
Application granted granted Critical
Publication of CN104108245B publication Critical patent/CN104108245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)
  • Credit Cards Or The Like (AREA)

Abstract

The embodiments of the invention provide a kind of method that error compensation printing is carried out to card.This method mainly includes:Card is taken pictures, according to the coordinate of the identification information in the identification of the image information for acquisition of taking pictures and extraction card, the coordinate of the corner of card;According to the coordinate of the identification information extracted and the coordinate of corner, and identification information set in advance and the standard coordinate of corner, original coordinates error corresponding to the identification information is calculated;Original coordinates error corresponding to the identification information is added to obtain with the standard coordinate of identification information set in advance and identifies corresponding printing coordinate, print individualized information is carried out on the card using the printing coordinate.The method for carrying out error compensation printing to card of the embodiment of the present invention obtains original coordinates error corresponding to identification information by first being taken pictures to card from image, the problem of can effectively correct for the customized information position skew during card print.

Description

The method and apparatus that error compensation printing is carried out to card
Technical field
The present invention relates to card print field, more particularly to a kind of method and dress that error compensation printing is carried out to card Put.
Background technology
In personalized card maker, print module is needed on the card of original identification information is printed on, and printing is personalized Information, above-mentioned identification information can be base map and word.In order to reduce cost, efficiency is improved, is printed on hard copy and word Card is usually to use Array printing, then made by reducing the mode of cutting, in such card production course, reduce The error of cutting equipment in itself can make original identification information produce certain skew on card surface, have one relative to standard coordinate Determine error.
In the case where above-mentioned error be present, when customized information is printed, if still being printed according to standard coordinate, The problems such as then causing to occur deviateing in the customized information printed on card or be overlapping with raw information, have a strong impact on accreditation Quality, cause the rise of useless card rate.
The content of the invention
The embodiment provides a kind of method and apparatus that error compensation printing is carried out to card, to overcome card The problem of customized information position in print procedure is offset.
A kind of method that error compensation printing is carried out to card, including:
Card is taken pictures, identifies and extract the seat of the identification information on card according to the image information for acquisition of taking pictures Mark, the coordinate of the corner of card;
According to the coordinate of the identification information extracted and the coordinate of corner, and identification information set in advance and side The standard coordinate at angle, calculate original coordinates error corresponding to the identification information;
Original coordinates error corresponding to the identification information is added with the standard coordinate of identification information set in advance To coordinate is printed corresponding to mark, print individualized information is carried out on the card using the printing coordinate.
A kind of device that error compensation printing is carried out to card, including:
Coordinate extraction module, for being taken pictures to card, card is identified and extracted according to the image information for acquisition of taking pictures On the coordinate of identification information, card corner coordinate;
Error of coordinate computing module, for the coordinate of identification information and the coordinate of corner extracted according to, and Identification information set in advance and the standard coordinate of corner, calculate original coordinates error corresponding to the identification information;
Error compensation print module, for by original coordinates error corresponding to the identification information and mark set in advance The standard coordinate of information, which is added to obtain, identifies corresponding printing coordinate, and individual character is carried out on the card using the printing coordinate Change information printing.
The embodiment of the present invention misses to card it can be seen from the technical scheme provided by embodiments of the invention described above The method of difference compensation printing obtains original coordinates error corresponding to identification information, Ke Yiyou by first being taken pictures to card from image The problem of customized information position that effect ground correct for during card print is offset.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill of field, without having to pay creative labor, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of handling process for method that error compensation printing is carried out to card that the embodiment of the present invention one provides Figure;
Fig. 2 a and Fig. 2 b are a kind of partial structural diagram for above-mentioned card feeding device that the embodiment of the present invention one provides;
Fig. 3 is a kind of schematic diagram for standard original card that the embodiment of the present invention one provides;
Fig. 4 is a kind of schematic diagram for actual card that the embodiment of the present invention one provides;
Fig. 5 is to be printed after one kind that the embodiment of the present invention one provides carries out error compensation according to original coordinates control information Card schematic diagram;
Fig. 6 is a kind of concrete structure for device that error compensation printing is carried out to card that the embodiment of the present invention two provides Figure.
Embodiment
For ease of the understanding to the embodiment of the present invention, done further by taking several specific embodiments as an example below in conjunction with accompanying drawing Explanation, and each embodiment does not form the restriction to the embodiment of the present invention.
Embodiment one
A kind of handling process such as Fig. 1 institutes of method that error compensation printing is carried out to card provided in an embodiment of the present invention Show, including following processing step:
Step 11, card is taken pictures, identify and extract the mark on card according to the image information for acquisition of taking pictures and believe The coordinate of breath, the coordinate of the corner of card.
The main industrial computer of card print equipment include industrial control computer, memory, bus interface board, power interface and Other communication interfaces.Control core of the main industrial computer as whole card print equipment, there is provided user interface, pass through control program The processing procedure of each functional device is uniformly controlled, coordinates each functional device and cooperates, and receives each function dress Put the running state information of feedback.
Chip in storing each card in the database of memory or by the attachable remote data base of network Corresponding relation between sequence number and the essential information of card user, the essential information of above-mentioned card user include name, shone The information such as piece, sex, address, occupation.
Some original identification informations, above-mentioned identification information are pre-set on the card for needing to print customized information Quantity can be it is multiple, be specifically as follows base map and word, each identification information corresponds to one in above-mentioned essential information respectively The specific customized information of kind.
The card of outside input is received by card feeding device first, and card is separated one by one.What the embodiment provided A kind of partial structural diagram of above-mentioned card feeding device as shown in Figure 2 a and 2 b, including:The lampshade 1 put on transmission track, clap According to the part such as device 8 and lighting device, transport mechanism 6, motor driving plate, control panel, motor 3, sensor 5, roller 2, belt Composition.
The running of above-mentioned card feeding device mainly includes:Motor 3 in control software control transport mechanism 6 drives roller 2 rotate, and card 7 is entered card feeding device.After card run identifies position to the corner specified, position sensor senses Card is stated, Setup Controller sends the announcement information of above-mentioned card arrival corner identification position to main industrial computer.Main industrial computer leads to The stopping of Setup Controller controlled motor is crossed, card rests on the field range for the camera arrangement being arranged on above the identification position of corner Interior, camera arrangement is taken pictures to card, and the image information for taking pictures to obtain is sent to main industrial computer by Setup Controller.Main industry control Machine identifies and extracted the coordinate of the identification information on card and the coordinate of the corner of card according to image information,
Main industrial computer extracts mark letter by Digital Image Processing correlation technique by the way of characteristics of image template matches The coordinate of breath.Concrete processing procedure includes:
Standard card is put into mechanism, is taken pictures to obtain standard picture when operation is to picture-taking position, to standard picture Processing is digitized, and the disposal of gentle filter is carried out to the standard picture, removes noise.Live in state mark with the first rectangle frame circle Identification information part in quasi- image, the parts of images that above-mentioned first rectangle frame encloses is intercepted out, and by the portion of interception Partial image sets coordinate conduct of the template identification image T upper left corner in above-mentioned standard image as template identification image T The standard coordinate of identification information set in advance.Lived in the second rectangle frame circle state in standard picture with above-mentioned identification information away from From nearest corner areas, the parts of images that above-mentioned second rectangle frame encloses is intercepted out, and by the parts of images of interception As template corner image F, coordinate of the corner image F upper left corner in above-mentioned standard image is set as set in advance The standard coordinate of corner.
Then, using template above identification image T and template corner image F, obtained after being taken pictures for each card Image all carries out the operation and calculating of following steps:
The first step:The original image obtained after being taken pictures to some card of input carries out segmentation interception.Card is transported in device Dynamic and stopping passes through sensor and motor control, and position can be with substantially stationary, therefore the identification information of card is in original image Relative position it is also substantially stationary, first calculate original image length and width, on the basis of above-mentioned relative position, from original image The region of middle interception each half of original image length and width, obtains image I1, image I1In include above-mentioned identification information.Such as when When above-mentioned relative position is the upper left region of image.Therefore the length and width of image is calculated first, and since the image upper left corner The region of each half of original image length and width is intercepted, obtains image I1
Second step:To above-mentioned image I1Image gaussian filtering process is carried out to remove picture noise, obtains image I2
3rd step:In units of template identification image T size, with mean square error matching process calculation template identification image T and image I2Between mean square error.
Wherein, MSE (x, y) representative image I2In(x,y)The mean square error of opening position, M, N are template identification image T horizontal stroke To the number of pixels of, longitudinal direction, i is variable, 0<=i<=M-1, j are variable, 0<=j<=N-1, T (x+i, y+j) represent template identification The pixel value of (x+i, y+j) opening position in image T, I2(i, j) represents image I2In (i, j) place pixel value;
The region minimum with template identification image T errors is found, the upper left corner in the region in above-mentioned original image Coordinate, the coordinate as the identification information of some above-mentioned card(Rx, Ry).
In units of template corner image F size, with mean square error matching process calculation template corner image F and image I2Between mean square error.
Wherein, MSF (x, y) representative image I2In(x,y)The mean square error of opening position, Q, P are template corner image F horizontal stroke To the number of pixels of, longitudinal direction, u is variable, 0<=u<=Q-1, v are variable, 0<=v<=P-1, T (x+u, y+v) represent template identification The pixel value of (x+u, y+v) opening position in image T, I2(i, j) represents image I2In (i, j) place pixel value;
The region minimum with template corner image F errors is found, the upper left corner in the region in above-mentioned original image Coordinate, the coordinate as the corner of some above-mentioned card(Ax, Ay).
By the coordinate of the corner of the card of above-mentioned acquisition(Ax, Ay)With the coordinate of the identification information of card(Rx, Ry)It can obtain, The card identification is relative to the coordinate of corner(X, y)=(Rx-Ax,Ry-Ay
If there are multiple identification informations on card, such as, there is identification information in the upper left corner of card and the lower right corner, then need Coordinate corresponding to each identification information difference is calculated respectively, and correspondingly calculates the coordinate of multiple corners.
Step 12, main industrial computer are and above-mentioned by the identification information obtained from image information and the coordinate of the corner of card The standard coordinate of the corner of identification information and card is compared, and obtains original coordinates error corresponding to standard information.
Also need to store in the memory of above-mentioned main industrial computer above-mentioned identification information set in advance standard coordinate and The standard coordinate of the corner of above-mentioned card.
Above-mentioned main industrial computer subtracts each other the standard coordinate of the identification information and the standard coordinate of the corner of the card, obtains The standard deviation corresponding to the identification information.And by the coordinate of the identification information extracted and the corner extracted Coordinate subtract each other, obtain actual difference corresponding to the identification information.Then, the actual difference is subtracted into the standard deviation Obtain original coordinates error corresponding to the identification information.
If there are multiple identification informations on card, need to calculate original seat corresponding to each identification information difference respectively Mark error.
Then, motor drives roller and belt to rotate to main industrial computer again, and then drives card along running track Run forward, the card reaches the position for writing chuck device, and writing chuck device includes read write line and radio-frequency antenna, the read write line Chip serial number on card is read by radio-frequency antenna, the chip serial number is sent to main industrial computer, main industrial computer should Chip serial number, the numbering of identification information and original coordinates error corresponding to identification information are entered in the database of above-mentioned memory Row associated storage.
For example in the standard original card shown in Fig. 3, original identification information is " name:", " sex:", " year Age:" and " address:" several printed words.Using the upper left corner as origin, " name is identified:" standard coordinate be(X, y)=(10.00, 10.00).
Actual card generates error in original card production course, in the actual card shown in Fig. 4, using the upper left corner as Origin, identify " name:" actual coordinate be(X1, y1)=(9.00 9.00), then " name is identified:" corresponding to original coordinates miss Difference is(X, y)-(X1, y1)=(1.00 1.00).
Step 13, original coordinates error corresponding to identification information be added with the standard coordinate of identification information set in advance Obtain identifying corresponding printing coordinate, customized information is carried out on card using coordinate is printed.
Card is sent to surface information processing unit by above-mentioned card feeding device.Surface information processing unit receives main industry control After what machine was sent connects card instruction, the chip serial number on card is read out by read write line and radio-frequency antenna, by reading Chip serial number is sent to main industrial computer.Main industrial computer is looked into according to chip serial number in the database of above-mentioned memory Ask, original coordinates error and specific individual character corresponding to each identification information difference corresponding to acquisition and chip serial number on card Change information.
Main industrial computer sends control command to surface information processing unit, and above-mentioned each mark is carried in the control command Original coordinates error and specific customized information corresponding to information difference, surface information processing unit driving printer mobile device Mobile card puncher, by above-mentioned each identification information, corresponding original coordinates error and specific customized information input to respectively Card puncher, and drive cards conveying device that card is sent into card puncher position.
Card puncher is by original coordinates error corresponding to above-mentioned identification information and the standard of identification information set in advance Coordinate is added, and obtains printing coordinate corresponding to identification information.
Then, card puncher is according to printing coordinate corresponding to identification information, by specific personalization corresponding to identification information Information prints to the specified location in card.If multiple identification informations, then according to above-mentioned processing procedure, print respectively each Specific customized information corresponding to identification information.
Above-mentioned original coordinates control information can correct printing deviation.Such as according to each identification information set in advance Corresponding standard coordinate prints customized information corresponding to each mark in the card shown in Fig. 3, can obtain going out shown in Fig. 4 The card of customized information position skew is showed.After carrying out error compensation according to above-mentioned original coordinates control information, print Card is as shown in figure 5, from fig. 5, it can be seen that the problem of effectively correct for the skew of customized information position.
Embodiment two
This embodiment offers a kind of device that error compensation printing is carried out to card, its concrete structure is as shown in fig. 6, bag Include following module:
Coordinate extraction module 61, for being taken pictures to card, identified and extracted according to the image information for acquisition of taking pictures and blocked The coordinate of identification information on piece, the coordinate of the corner of card;
Error of coordinate computing module 62, for the coordinate of identification information and the coordinate of corner that extract according to, with And identification information set in advance and the standard coordinate of corner, calculate original coordinates error corresponding to the identification information;
Error compensation print module 63, for by original coordinates error corresponding to the identification information and mark set in advance The standard coordinate of knowledge information, which is added to obtain, identifies corresponding printing coordinate, is carried out using the printing coordinate on the card individual Property information printing.
Specifically, described coordinate extraction module 61, right specifically for being taken pictures to obtain standard picture to standard card The standard picture is digitized processing and the disposal of gentle filter, and the mark in standard picture is stated with the first rectangle frame circle residence Message part, the parts of images that first rectangle frame encloses is intercepted out, and using the parts of images of interception as template Identification image T, coordinate of the upper left corner of the template identification image T in the standard picture is set as mark set in advance Know the standard coordinate of information;The corner closest with the identification information in standard picture is stated with the second rectangle frame circle residence Region, the parts of images that second rectangle frame encloses is intercepted out, and using the parts of images of interception as template corner Image F, coordinate of the upper left corner of the template corner image F in the standard picture is set as corner set in advance Standard coordinate;
Using the template identification image T and template corner image F, obtained using mean square error matching process on card The coordinate of identification information, the coordinate of the corner of card.
Specifically, described coordinate extraction module 61, the original graph obtained after being taken pictures specifically for acquisition to some card Picture, the length and width of the original image is calculated, relative position of the identification information of card in original image is obtained, with the phase Contraposition is set to benchmark, and the region of each half of original image length and width is intercepted from original image, obtains image I1, image I1Include The identification information;
To described image I1Image gaussian filtering process is carried out, obtains image I2
In units of the size of the template identification image T, with mean square error matching process calculation template identification image T with Image I2Between mean square error.
Wherein, MSE (x, y) representative image I2In(x,y)The mean square error of opening position, M, N are template identification image T horizontal stroke To the number of pixels of, longitudinal direction, i is variable, 0<=i<=M-1, j are variable, 0<=j<=N-1, T (x+i, y+j) represent template identification The pixel value of (x+i, y+j) opening position in image T, I2(i, j) represents image I2In (i, j) place pixel value;
The region minimum with the template identification image T mean square errors is found, the upper left corner in the region described original Coordinate in image, the coordinate as the identification information of some card;
In units of the size of the template corner image F, with mean square error matching process calculation template corner image F with Image I2Between mean square error;
Wherein, MSF (x, y) representative image I2In(x,y)The mean square error of opening position, Q, P are template corner image F horizontal stroke To the number of pixels of, longitudinal direction, u is variable, 0<=u<=Q-1, v are variable, 0<=v<=P-1, T (x+u, y+v) represent template identification The pixel value of (x+u, y+v) opening position in image T, I2(i, j) represents image I2In (i, j) place pixel value;
The region minimum with the template corner image F mean square errors is found, the upper left corner in the region described original Coordinate in image, the coordinate as the corner of some card.
Specifically, described error of coordinate computing module 62, specifically for by the standard coordinate of the identification information and institute The standard coordinate for stating the corner of card subtracts each other, and obtains standard deviation corresponding to the identification information;
The coordinate of the identification information extracted and the coordinate of the corner extracted are subtracted each other, obtain the mark Actual difference corresponding to information;
The actual difference is subtracted into the standard deviation and obtains original coordinates error corresponding to the identification information.
One of ordinary skill in the art will appreciate that:Accompanying drawing is the schematic diagram of one embodiment, device in accompanying drawing or Flow is not necessarily implemented necessary to the present invention.
One of ordinary skill in the art will appreciate that:The device in equipment in embodiment can describe to divide according to embodiment It is distributed in the equipment of embodiment, respective change can also be carried out and be disposed other than in one or more equipment of the present embodiment.On The device for stating embodiment can be merged into a device, can also be further split into multiple sub-devices.
In summary, the embodiment of the present invention to card carry out error compensation printing method by first being taken pictures to card, Original coordinates error corresponding to identification information is obtained from image, can effectively correct for the personalized letter during card print The problem of ceasing position skew, so as to improve the quality of card print, reduce useless card rate.
The foregoing is only a preferred embodiment of the present invention, but protection scope of the present invention be not limited thereto, Any one skilled in the art the invention discloses technical scope in, the change or replacement that can readily occur in, It should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with scope of the claims It is defined.

Claims (6)

  1. A kind of 1. method that error compensation printing is carried out to card, it is characterised in that including:
    Card is taken pictures, identifies and extract the coordinate of the identification information on card, card according to the image information for acquisition of taking pictures The coordinate of the corner of piece;
    According to the coordinate of the identification information extracted and the coordinate of corner, and identification information set in advance and corner Standard coordinate, calculate original coordinates error corresponding to the identification information;
    Original coordinates error corresponding to the identification information is added with the standard coordinate of identification information set in advance and marked Printing coordinate corresponding to knowing, print individualized information is carried out on the card using the printing coordinate;
    Described basis take pictures acquisition image information identification and the coordinate of identification information on extraction card, the corner of card Coordinate, including:
    Standard card is taken pictures to obtain standard picture, the standard picture is digitized at processing and smothing filtering Reason, the identification information part in standard picture, the part that first rectangle frame is enclosed are stated with the first rectangle frame circle residence Image interception comes out, and using the parts of images of interception as template identification image T, sets the upper left of the template identification image T Standard coordinate of coordinate of the angle in the standard picture as identification information set in advance;Stated with the second rectangle frame circle residence The corner areas closest with the identification information in standard picture, the parts of images that second rectangle frame is enclosed Interception comes out, and using the parts of images of interception as template corner image F, the upper left corner for setting the template corner image F exists Standard coordinate of the coordinate as corner set in advance in the standard picture;
    Using the template identification image T and template corner image F, the mark on card is obtained using mean square error matching process The coordinate of information, the coordinate of the corner of card.
  2. 2. the method according to claim 1 that error compensation printing is carried out to card, it is characterised in that described utilization institute Template identification image T and template corner image F are stated, the seat of the identification information on card is obtained using mean square error matching process Mark, the coordinate of the corner of card, including:
    The original image obtained after being taken pictures to some card is obtained, calculates the length and width of the original image, obtains the mark of card Relative position of the information in original image, on the basis of the relative position, it is each that original image length and width is intercepted from original image The region of half, obtain image I1, image I1In include the identification information;
    To described image I1Image gaussian filtering process is carried out, obtains image I2
    In units of the size of the template identification image T, with mean square error matching process calculation template identification image T and image I2Between mean square error;
    <mrow> <mi>M</mi> <mi>S</mi> <mi>E</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>,</mo> <mi>y</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mn>1</mn> <mrow> <mi>M</mi> <mi>N</mi> </mrow> </mfrac> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>i</mi> <mo>=</mo> <mn>0</mn> </mrow> <mrow> <mi>M</mi> <mo>-</mo> <mn>1</mn> </mrow> </munderover> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>j</mi> <mo>=</mo> <mn>0</mn> </mrow> <mrow> <mi>N</mi> <mo>-</mo> <mn>1</mn> </mrow> </munderover> <msup> <mrow> <mo>&amp;lsqb;</mo> <mi>T</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>+</mo> <mi>i</mi> <mo>,</mo> <mi>y</mi> <mo>+</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>-</mo> <msub> <mi>I</mi> <mn>2</mn> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>&amp;rsqb;</mo> </mrow> <mn>2</mn> </msup> </mrow>
    Wherein, MSE (x, y) representative image I2In (x, y) opening position mean square error, M, N be template identification image T it is horizontal, vertical To number of pixels, i is variable, 0<=i<=M-1, j are variable, 0<=j<=N-1, T (x+i, y+j) represent template identification figure As the pixel value of (x+i, y+j) opening position in T, I2(i, j) represents image I2In (i, j) place pixel value;
    The region minimum with the template identification image T mean square errors is found, the upper left corner in the region in the original image In coordinate, the coordinate as the identification information of some card;
    In units of the size of the template corner image F, with mean square error matching process calculation template corner image F and image I2Between mean square error;
    <mrow> <mi>M</mi> <mi>S</mi> <mi>F</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>,</mo> <mi>y</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mn>1</mn> <mrow> <mi>Q</mi> <mi>P</mi> </mrow> </mfrac> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>u</mi> <mo>=</mo> <mn>0</mn> </mrow> <mrow> <mi>Q</mi> <mo>-</mo> <mn>1</mn> </mrow> </munderover> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>v</mi> <mo>=</mo> <mn>0</mn> </mrow> <mrow> <mi>P</mi> <mo>-</mo> <mn>1</mn> </mrow> </munderover> <msup> <mrow> <mo>&amp;lsqb;</mo> <mi>F</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>+</mo> <mi>u</mi> <mo>,</mo> <mi>y</mi> <mo>+</mo> <mi>v</mi> <mo>)</mo> </mrow> <mo>-</mo> <msub> <mi>I</mi> <mn>2</mn> </msub> <mrow> <mo>(</mo> <mi>u</mi> <mo>,</mo> <mi>v</mi> <mo>)</mo> </mrow> <mo>&amp;rsqb;</mo> </mrow> <mn>2</mn> </msup> </mrow> 1
    Wherein, MSF (x, y) representative image I2In (x, y) opening position mean square error, Q, P be template corner image F it is horizontal, vertical To number of pixels, u is variable, 0<=u<=Q-1, v are variable, 0<=v<=P-1, T (x+u, y+v) represent template identification figure As the pixel value of (x+u, y+v) opening position in T, I2(i, j) represents image I2In (i, j) place pixel value;
    The region minimum with the template corner image F mean square errors is found, the upper left corner in the region in the original image In coordinate, the coordinate as the corner of some card.
  3. 3. the method according to claim 2 that error compensation printing is carried out to card, it is characterised in that described according to institute The coordinate of the identification information extracted and the coordinate of corner, and the standard of identification information set in advance and corner are stated, is calculated Go out original coordinates error corresponding to the identification information, including:
    The standard coordinate of the identification information and the standard coordinate of the corner of the card are subtracted each other, obtain the identification information pair The standard deviation answered;
    The coordinate of the identification information extracted and the coordinate of the corner extracted are subtracted each other, obtain the identification information Corresponding actual difference;
    The actual difference is subtracted into the standard deviation and obtains original coordinates error corresponding to the identification information.
  4. A kind of 4. device that error compensation printing is carried out to card, it is characterised in that including:
    Coordinate extraction module, for being taken pictures to card, identify and extract on card according to the image information for acquisition of taking pictures The coordinate of identification information, the coordinate of the corner of card;
    Error of coordinate computing module, for the coordinate of identification information and the coordinate of corner extracted according to, and in advance The identification information of setting and the standard coordinate of corner, calculate original coordinates error corresponding to the identification information;
    Error compensation print module, for by original coordinates error corresponding to the identification information and identification information set in advance Standard coordinate be added to obtain identify corresponding to printing coordinate, using it is described printing coordinate personalized letter is carried out on the card Breath printing;
    Described coordinate extraction module, specifically for being taken pictures to obtain standard picture to standard card, to the standard picture Processing and the disposal of gentle filter are digitized, the identification information part in standard picture is stated with the first rectangle frame circle residence, will The parts of images that first rectangle frame encloses intercepts out, and using the parts of images of interception as template identification image T, if Coordinate standard as set in advance identification information of the fixed template identification image T upper left corner in the standard picture Coordinate;The corner areas closest with the identification information in standard picture is stated with the second rectangle frame circle residence, by described in The parts of images that second rectangle frame encloses intercepts out, and using the parts of images of interception as template corner image F, sets institute State coordinate standard coordinate as set in advance corner of the template corner image F upper left corner in the standard picture;
    Using the template identification image T and template corner image F, the mark on card is obtained using mean square error matching process The coordinate of information, the coordinate of the corner of card.
  5. 5. the device according to claim 4 that error compensation printing is carried out to card, it is characterised in that:
    Described coordinate extraction module, the original image obtained after being taken pictures specifically for acquisition to some card, calculates the original The length and width of beginning image, relative position of the identification information of card in original image is obtained, on the basis of the relative position, The region of each half of original image length and width is intercepted from original image, obtains image I1, image I1In include it is described mark letter Breath;
    To described image I1Image gaussian filtering process is carried out, obtains image I2
    In units of the size of the template identification image T, with mean square error matching process calculation template identification image T and image I2Between mean square error;
    <mrow> <mi>M</mi> <mi>S</mi> <mi>E</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>,</mo> <mi>y</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mn>1</mn> <mrow> <mi>M</mi> <mi>N</mi> </mrow> </mfrac> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>i</mi> <mo>=</mo> <mn>0</mn> </mrow> <mrow> <mi>M</mi> <mo>-</mo> <mn>1</mn> </mrow> </munderover> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>j</mi> <mo>=</mo> <mn>0</mn> </mrow> <mrow> <mi>N</mi> <mo>-</mo> <mn>1</mn> </mrow> </munderover> <msup> <mrow> <mo>&amp;lsqb;</mo> <mi>T</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>+</mo> <mi>i</mi> <mo>,</mo> <mi>y</mi> <mo>+</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>-</mo> <msub> <mi>I</mi> <mn>2</mn> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>&amp;rsqb;</mo> </mrow> <mn>2</mn> </msup> </mrow>
    The region minimum with the template identification image T mean square errors is found, the upper left corner in the region in the original image In coordinate, the coordinate as the identification information of some card;
    In units of the size of the template corner image F, with mean square error matching process calculation template corner image F and image I2Between mean square error;
    <mrow> <mi>M</mi> <mi>S</mi> <mi>F</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>,</mo> <mi>y</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mn>1</mn> <mrow> <mi>Q</mi> <mi>P</mi> </mrow> </mfrac> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>u</mi> <mo>=</mo> <mn>0</mn> </mrow> <mrow> <mi>Q</mi> <mo>-</mo> <mn>1</mn> </mrow> </munderover> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>v</mi> <mo>=</mo> <mn>0</mn> </mrow> <mrow> <mi>P</mi> <mo>-</mo> <mn>1</mn> </mrow> </munderover> <msup> <mrow> <mo>&amp;lsqb;</mo> <mi>F</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>+</mo> <mi>u</mi> <mo>,</mo> <mi>y</mi> <mo>+</mo> <mi>v</mi> <mo>)</mo> </mrow> <mo>-</mo> <msub> <mi>I</mi> <mn>2</mn> </msub> <mrow> <mo>(</mo> <mi>u</mi> <mo>,</mo> <mi>v</mi> <mo>)</mo> </mrow> <mo>&amp;rsqb;</mo> </mrow> <mn>2</mn> </msup> </mrow>
    The region minimum with the template corner image F mean square errors is found, the upper left corner in the region in the original image In coordinate, the coordinate as the corner of some card.
  6. 6. the device according to claim 5 that error compensation printing is carried out to card, it is characterised in that:
    Described error of coordinate computing module, specifically for by the corner of the standard coordinate of the identification information and the card Standard coordinate subtracts each other, and obtains standard deviation corresponding to the identification information;
    The coordinate of the identification information extracted and the coordinate of the corner extracted are subtracted each other, obtain the identification information Corresponding actual difference;
    The actual difference is subtracted into the standard deviation and obtains original coordinates error corresponding to the identification information.
CN201310136465.5A 2013-04-18 2013-04-18 The method and apparatus that error compensation printing is carried out to card Active CN104108245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310136465.5A CN104108245B (en) 2013-04-18 2013-04-18 The method and apparatus that error compensation printing is carried out to card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310136465.5A CN104108245B (en) 2013-04-18 2013-04-18 The method and apparatus that error compensation printing is carried out to card

Publications (2)

Publication Number Publication Date
CN104108245A CN104108245A (en) 2014-10-22
CN104108245B true CN104108245B (en) 2017-12-15

Family

ID=51705325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310136465.5A Active CN104108245B (en) 2013-04-18 2013-04-18 The method and apparatus that error compensation printing is carried out to card

Country Status (1)

Country Link
CN (1) CN104108245B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105196708A (en) * 2015-09-22 2015-12-30 深圳前海百递网络有限公司 Printing setting method and printing device
CN106218265A (en) * 2016-07-08 2016-12-14 广东德生科技股份有限公司 A kind of manufacture method of social security card
CN109733079B (en) * 2018-12-28 2019-10-18 浙江锦康实业有限公司 Packing box antiforging printing method
CN112551044B (en) * 2020-12-10 2022-09-27 惠州市恒泰科技股份有限公司 Method and device for feeding to-be-formed battery cell

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1526552A (en) * 2003-03-07 2004-09-08 ���ǵ�����ʽ���� Method and apparatus for correcting image positioning error
CN101190610A (en) * 2006-11-27 2008-06-04 诚研科技股份有限公司 Hot sublimation card printing machine and corresponding card printing method
CN101224675A (en) * 2007-01-18 2008-07-23 三星电子株式会社 Inkjet printer, image forming method and image quality compensation method thereof
EP2084010A1 (en) * 2006-11-03 2009-08-05 Atlantic ZeiserGmbH Device for printing two-dimensional parts, particularly plastic cards
CN102289803A (en) * 2010-06-02 2011-12-21 索尼公司 Image Processing Apparatus, Image Processing Method, and Program
CN102555473A (en) * 2010-12-17 2012-07-11 富士胶片株式会社 Defective recording element detecting apparatus and method, and image forming apparatus and method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3008031B2 (en) * 1990-12-18 2000-02-14 清水建設株式会社 Meeting system using electronic blackboard
JPH05282409A (en) * 1992-03-30 1993-10-29 Victor Co Of Japan Ltd Autoamtic card print system
JP3982878B2 (en) * 1997-07-23 2007-09-26 株式会社日立製作所 IC card system
US20060203028A1 (en) * 2005-03-10 2006-09-14 Manish Agarwal Apparatus and method for print quality control
US8559050B2 (en) * 2009-11-09 2013-10-15 Xerox Corporation Controlling placement and minimizing distortion of images in an imaging device
JP5405987B2 (en) * 2009-11-20 2014-02-05 長野日本無線株式会社 Card printer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1526552A (en) * 2003-03-07 2004-09-08 ���ǵ�����ʽ���� Method and apparatus for correcting image positioning error
EP2084010A1 (en) * 2006-11-03 2009-08-05 Atlantic ZeiserGmbH Device for printing two-dimensional parts, particularly plastic cards
CN101190610A (en) * 2006-11-27 2008-06-04 诚研科技股份有限公司 Hot sublimation card printing machine and corresponding card printing method
CN101224675A (en) * 2007-01-18 2008-07-23 三星电子株式会社 Inkjet printer, image forming method and image quality compensation method thereof
CN102289803A (en) * 2010-06-02 2011-12-21 索尼公司 Image Processing Apparatus, Image Processing Method, and Program
CN102555473A (en) * 2010-12-17 2012-07-11 富士胶片株式会社 Defective recording element detecting apparatus and method, and image forming apparatus and method

Also Published As

Publication number Publication date
CN104108245A (en) 2014-10-22

Similar Documents

Publication Publication Date Title
CN104108245B (en) The method and apparatus that error compensation printing is carried out to card
US9132599B2 (en) System and method for image registration for packaging
US8456690B2 (en) Imposition enhancements for automatic document printing
CN104112151B (en) The verification method and device of card image
US10681234B2 (en) Image processing apparatus and image processing method
WO2014086287A1 (en) Text image automatic dividing method and device, method for automatically dividing handwriting entries
CN106600525A (en) Picture fuzzy processing method and system
CN102262772A (en) Printer with picture editing function and picture printing method using same
JP5770580B2 (en) Printing order determination apparatus, printing order determination method and program
JP2016152035A (en) Account application method and system
CN103458139A (en) Image reading device and image forming apparatus
CN103020814A (en) Intelligent identity card information preprocessing system
CN100561466C (en) A kind of device and method for drafting of in electronic document, drawing seal on the perforation
JP2012208872A (en) Imposition template, imposition data generation device, imposition data generation method and program
JP2018019203A (en) Image processing processor and program
US9370940B1 (en) Single decurler configuration for reduced contamination of decurler
US11034163B2 (en) Two-sided multi-lane print for independent print streams
JP2013237229A (en) Print processing system, image processing apparatus, printing verification device and program
US11983882B2 (en) E13B image interpretation method
JP2016081141A (en) Method and system for accepting application of medium with face image
US10382652B2 (en) Generating a day/night image
JP7251252B2 (en) Program and information processing device
JP5783188B2 (en) Relief processing equipment
JP5783189B2 (en) Relief processing equipment
JP2006019931A5 (en)

Legal Events

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