A kind of identity card Method of printing, system and storage medium

文档序号:1741667 发布日期:2019-11-26 浏览:23次 中文

阅读说明:本技术 一种身份证打印方法、系统和存储介质 (A kind of identity card Method of printing, system and storage medium ) 是由 李哲 于 2019-07-19 设计创作,主要内容包括:本发明公开了一种身份证打印方法、系统和存储介质,方法包括以下步骤:接收感应模块上传的感应信息;根据感应信息读取身份证信息;根据身份证信息在字库信息中匹配字体;根据身份证信息和所述字体生成身份证图像;将身份证图像发送到打印模块,使打印模块打印身份证图像。本发明通过根据感应信息读取身份证信息,并根据身份证信息在字库信息内匹配字体,然后再根据身份证信息和匹配得到的字体生成身份证图像,最后将身份证图像发送到打印模块进行打印,使用户无需重复进行身份证扫描操作,也不用进行扫描过程的位置校准,即可快速得到完整的身份证复印件。本发明可广泛应用于打印技术领域。(The invention discloses a kind of identity card Method of printing, system and storage medium, method is the following steps are included: receive the induction information that induction module uploads;According to induction information reading identity card information;Font is matched in character library information according to ID card information;ID Card Image is generated according to ID card information and the font;Print module is sent by ID Card Image, print module is made to print ID Card Image.The present invention passes through according to induction information reading identity card information, and font is matched in character library information according to ID card information, then the font obtained further according to ID card information and matching generates ID Card Image, finally print module is sent by ID Card Image to print, it makes the user do not need to repeat identity card scan operation, without the position correction for the process that is scanned, complete Copy of ID Card can be quickly obtained.It the composite can be widely applied to printing technique field.)

1. a kind of identity card Method of printing, it is characterised in that: the following steps are included:

Receive the induction information that induction module uploads;

According to induction information reading identity card information;

Font is matched in character library information according to ID card information;

ID Card Image is generated according to ID card information and the font;

Print module is sent by ID Card Image, print module is made to print ID Card Image.

2. a kind of identity card Method of printing according to claim 1, it is characterised in that: described according to ID card information and institute It states font and generates ID Card Image, specifically:

According to ID card information and the font, the character image of ID card information is generated, character image is then inserted into identity It demonstrate,proves in template, obtains ID Card Image.

3. a kind of identity card Method of printing according to claim 2, it is characterised in that: the text for generating ID card information Word image, specifically:

ID card information is verified, after determining that identity information meets setting condition, generates the text figure of ID card information Picture, described impose a condition includes font style condition and identification card number condition.

4. a kind of identity card Method of printing according to claim 2, it is characterised in that: described that character image is inserted identity It demonstrate,proves in template, specifically includes:

Fuzzy processing is carried out to character image;

Character image after the completion of Fuzzy processing is filled into identity card template.

5. a kind of identity card Method of printing according to claim 1, it is characterised in that: described to read body according to induction information Part card information, specifically includes:

SDK interface is called according to induction information;

Pass through SDK interface reading identity card information.

6. a kind of identity card Method of printing according to claim 1, it is characterised in that: uploaded in the reception induction module Induction information the step for before, it is further comprising the steps of:

Receive the function choosing-item that first terminal uploads;

The control signal of induction module is generated according to function choosing-item;

Induction module is sent control signals to, induction module is made to be in sense state.

7. a kind of identity card Method of printing according to claim 6, it is characterised in that: uploaded in the reception first terminal Function choosing-item the step for before, it is further comprising the steps of:

Construct identity card template.

8. a kind of identity card print system, it is characterised in that: include:

Receiving module, for receiving the induction information of induction module upload;

Read module, for according to induction information reading identity card information;

Matching module, for matching font in character library information according to ID card information;

Generation module, for generating ID Card Image according to ID card information and the font;

Sending module makes print module print ID Card Image for sending print module for ID Card Image.

9. a kind of identity card print system, it is characterised in that: include:

At least one processor, for storing program;

At least one processor, for loading described program to execute such as a kind of described in any item identity cards of claim 1-7 Method of printing.

10. a kind of storage medium, wherein being stored with the executable instruction of processor, it is characterised in that: the processor is executable Instruction when executed by the processor for realizing a kind of described in any item identity card Method of printings of such as claim 1-7.

Technical field

The present invention relates to printing technique field, especially a kind of identity card Method of printing, system and storage medium.

Background technique

Identity card can be first placed on the scan position of printer, to the first face when carrying out identity card duplicating by printer After the completion of scanning, identity card is carried out oppositely positioned, is scanned again, is printed after second of scanning is completed, Copy of ID Card could be obtained on same A4 paper, i.e., all be to need to sweep identity card when carrying out identity card duplicating every time Complete Copy of ID Card can just be obtained twice by retouching.Moreover, when identity card is placed on scan position, due to printer Scan position is wider, more difficult that identity card is placed on accurate scan position, so as to cause cannot be complete on copy ID card information is run off to come.

Summary of the invention

In order to solve the above technical problems, it is an object of the invention to: body that is a kind of easy to operate and can quickly duplicating is provided Part card Method of printing, system and storage medium.

The first technical solution of the present invention is:

A kind of identity card Method of printing comprising following steps:

Receive the induction information that induction module uploads;

According to induction information reading identity card information;

Font is matched in character library information according to ID card information;

ID Card Image is generated according to ID card information and the font;

Print module is sent by ID Card Image, print module is made to print ID Card Image.

It is further, described that ID Card Image is generated according to ID card information and the font, specifically:

According to ID card information and the font, the character image of ID card information is generated, then inserts character image In identity card template, ID Card Image is obtained.

Further, the character image for generating ID card information, specifically:

ID card information is verified, after determining that identity information meets setting condition, generates the text of ID card information Word image, described impose a condition includes font style condition and identification card number condition.

Further, described to insert character image in identity card template, it specifically includes:

Fuzzy processing is carried out to character image;

Character image after the completion of Fuzzy processing is filled into identity card template.

Further, described according to induction information reading identity card information, it specifically includes:

SDK interface is called according to induction information;

Pass through SDK interface reading identity card information.

Further, it is described reception induction module upload induction information the step for before, it is further comprising the steps of:

Receive the function choosing-item that first terminal uploads;

The control signal of induction module is generated according to function choosing-item;

Induction module is sent control signals to, induction module is made to be in sense state.

Further, it is described reception first terminal upload function choosing-item the step for before, it is further comprising the steps of:

Construct identity card template.

Second of technical solution of the present invention is:

A kind of identity card print system comprising:

Receiving module, for receiving the induction information of induction module upload;

Read module, for according to induction information reading identity card information;

Matching module, for matching font in character library information according to ID card information;

Generation module, for generating ID Card Image according to ID card information and the font;

Sending module makes print module print ID Card Image for sending print module for ID Card Image.

The third technical solution of the present invention is:

A kind of identity card print system comprising:

At least one processor, for storing program;

At least one processor executes a kind of identity card Method of printing for loading described program.

4th kind of technical solution of the present invention is:

A kind of storage medium, wherein be stored with the executable instruction of processor, the executable instruction of the processor by For realizing a kind of identity card Method of printing when processor executes.

The beneficial effects of the present invention are: the present invention is by according to induction information reading identity card information, and according to identity card Information matches font in character library information, and the font then obtained further according to ID card information and matching generates ID Card Image, Print module finally is sent by ID Card Image to print, and makes the user do not need to repeat identity card scan operation, also not With the position correction for the process that is scanned, complete Copy of ID Card can be quickly obtained.

Detailed description of the invention

Fig. 1 is a kind of flow chart of identity card Method of printing of the specific embodiment of the invention;

Fig. 2 is the module frame chart of the application system of the specific embodiment of the invention.

Specific embodiment

The present invention is described in further detail in the following with reference to the drawings and specific embodiments.In for the examples below Number of steps is arranged only for the purposes of illustrating explanation, does not do any restriction to the sequence between step, each in embodiment The execution sequence of step can be adaptively adjusted according to the understanding of those skilled in the art.

Referring to Fig.1, the embodiment of the invention provides a kind of identity card Method of printings comprising following steps:

S101, the induction information that induction module uploads is received;The induction module sensed identity card close to when, to Server-side uploads a signal, and server-side is made to execute step S102.The induction information is the signal that induction module uploads.

S102, according to induction information reading identity card information;The ID card information is by induction information from sensing Identity card on the information that reads, for example, name, gender, nationality, class origin days, address, identification card number on identity card, Head portrait, issuing authority and validity period etc..Family can be used not have to the position for repeating identity card scanning and scanning process for this step Calibration.

S103, font is matched in character library information according to ID card information;It include kinds of words word in the character library information Body form.Since in the same identity card, there are the text informations of different fonts, therefore, by being matched in character library information Font, it is ensured that the accuracy of font on the copy printed.

S104, ID Card Image is generated according to ID card information and the font;This step is first according to ID card information Character image is generated with the font, then character image is inserted in identity template, obtains ID Card Image.

S105, print module is sent by ID Card Image, print module is made to print ID Card Image.The print module It is that identity card figure is printed according to control instruction after receiving the ID Card Image and corresponding control instruction that server-side issues Picture makes user obtain the Copy of ID Card of papery version.

The present embodiment is by according to induction information reading identity card information, and according to ID card information in character library information With font, the font then obtained further according to ID card information and matching generates ID Card Image, finally sends out ID Card Image It is sent to print module to be printed, makes the user do not need to repeat identity card scan operation, without the position for the process that is scanned Calibration is set, complete Copy of ID Card can be quickly obtained.

It is further used as preferred embodiment, it is described that ID Card Image is generated according to ID card information and the font, Its specifically:

According to ID card information and the font, the character image of ID card information is generated, then inserts character image In identity card template, ID Card Image is obtained.The content of the character image includes working as the secondary ID card information read, described Font form in character image is the font form that matching obtains, by the way that character image is inserted identity card template, it is ensured that The content integrity and accuracy of the Copy of ID Card arrived.

It is further used as preferred embodiment, the character image for generating ID card information, specifically:

ID card information is verified, after determining that identity information meets setting condition, generates the text of ID card information Word image, described impose a condition includes font style condition and identification card number condition.The checking procedure judgement is read Whether the font style of ID card information is consistent with the font style of actual identity card, and judges whether identification card number is correct, For example, read access time is on June 6th, 2018, but read the 7th to the 14th number of the identification card number on identity card It is 20180707, then can directly judges that the identification card number read is wrong, if reading the identification card number on identity card The 7th to the 14th number be 20010101, then may determine that the identification card number be correctly, only in font style and When identification card number meets setting condition, character image is just generated, character image is not otherwise generated.The present embodiment can make to print Font and the identity card card number of Copy of ID Card out meet user's requirement.

It is further used as preferred embodiment, it is described to insert character image in identity card template, it specifically includes:

Fuzzy processing is carried out to character image;After matching obtains character image in character library information, if directly will Character image filling identity card template is printed, and the content on Copy of ID Card can be made excessively clear, made to people's one kind False illusion specifically first calculates the pixel average of identity card template so needing to carry out character image Fuzzy processing, Then stretch processing is carried out to character image according to this pixel average, to reach blur effect.

Character image after the completion of Fuzzy processing is filled into identity card template.This step is by will be at blurring Character image after reason directly inserts the correspondence blank position in identity card template.Character image is being inserted identity card by this step It when template, can be filled by the position coordinates of identity card template, to ensure to insert the accuracy of position.

The present embodiment can make the Copy of ID Card printed be more in line with actual conditions, avoid to artificial vacation Illusion, meanwhile, the Copy of ID Card obtained using the present embodiment, relative to duplicating, obtained Copy of ID Card is more clear It is clear.

It is further used as preferred embodiment, it is described according to induction information reading identity card information, it specifically includes:

SDK interface is called according to induction information;The SDK interface is that the operation sequence of server-side leaves the one of application program for A calling interface.

Pass through SDK interface reading identity card information.

The present embodiment is by calling SDK interface come reading identity card information, using the principle of SDK interface, can reduce this The invention requirement to server-side or terminal in actual application.

Be further used as preferred embodiment, it is described reception induction module upload induction information the step for it Before, it is further comprising the steps of:

Receive the function choosing-item that first terminal uploads;The first terminal can be the microcomputer terminal on printer, It is also possible to the computer of user oneself.Due to having many functions, such as the duplicating of document print, document on each printer Deng user can select these functions on first terminal.

The control signal of induction module is generated according to function choosing-item;When user is body in the function choosing-item that first terminal selects When part card copy function, server-side can generate the control signal of induction module according to this function choosing-item, control induction module Working condition.

Induction module is sent control signals to, induction module is made to be in sense state.Induction module is according to this control Signal carry out inductive operation, when sensed identity card close to when, induction module then can to server-side upload an induction information, Otherwise, induction module then can be in a state of stopping working.

The present embodiment both can guarantee that ID card information uploaded to server-side on time, and it is extra to be also avoided that induction module carries out Inductive operation increases the service life of induction module.

Be further used as preferred embodiment, it is described reception first terminal upload function choosing-item the step for it Before, it is further comprising the steps of:

Construct identity card template.The identity card template is server-side, and constructed according to actual identity card one is virtual Identity card picture, and in advance all had been filled with all ID card informations identical content in picture, server-side is using During, it is only necessary to it calls directly, the information of reading is then filled into corresponding blank position, print module can print Meet the Copy of ID Card of user's requirement out.The present embodiment can carry out duplicate template building to avoid server-side and operate Journey reduces the workload of server-side, improves the working efficiency of print service.

It is illustrated in figure 2 application system of the present invention on specific embodiment, the present invention is applied particularly to application system Server-side, the application system include induction module, print module, first terminal and server-side, the induction module, impression block Block, first terminal are connect with server-side;Wherein, the integrated operation process in the application system is as follows:

The function choosing-item that user selects is uploaded to server-side by the first step, first terminal;

Second step, server-side generate the control signal of induction module according to the function choosing-item that user selects, and control is believed Number it is sent to induction module;

After third step, induction module receive the control signal that server-side issues, induction working condition is entered;

4th step, induction module detected identity card close to when, to server-side upload an induction information, specifically Incude the chip inside identity card;

5th step, server-side are according to induction information reading identity card information, and according to ID card information in character library information Matching obtains font, then generates character image according to the font that ID card information and matching obtain, and carries out mould to character image Character image after Fuzzy processing is inserted identity card template, ID Card Image is obtained, finally by identity card figure by gelatinization processing As being sent to print module;

6th step, print module receive the ID Card Image that server-side issues, and print the ID Card Image.

The embodiment of the invention also provides a kind of with Fig. 1 method relative to identity card print system comprising:

Receiving module, for receiving the induction information of induction module upload;

Read module, for according to induction information reading identity card information;

Matching module, for matching font in character library information according to ID card information;

Generation module, for generating ID Card Image according to ID card information and the font;

Sending module makes print module print ID Card Image for sending print module for ID Card Image.

Suitable for this system embodiment, this system embodiment is implemented content in above method embodiment Function is identical as above method embodiment, and the beneficial effect reached and above method beneficial effect achieved are also identical.

The embodiment of the invention also provides a kind of with Fig. 1 method relative to identity card print system comprising:

At least one processor, for storing program;

At least one processor executes a kind of identity card Method of printing for loading described program.

Suitable for this system embodiment, this system embodiment is implemented content in above method embodiment Function is identical as above method embodiment, and the beneficial effect reached and above method beneficial effect achieved are also identical.

In addition, the present invention also provides a kind of storage mediums, wherein being stored with the executable instruction of processor, the processing The executable instruction of device is when executed by the processor for realizing a kind of identity card Method of printing.

In conclusion the present invention is by according to induction information reading identity card information, and according to ID card information in character library Font is matched in information, the font then obtained further according to ID card information and matching generates ID Card Image, finally by identity Card image is sent to print module and is printed, and makes the user do not need to repeat identity card scan operation, without being scanned The position correction of process can quickly obtain complete Copy of ID Card;Further, by before filling to identity card Information carries out Fuzzy processing, so that the Copy of ID Card printed is more in line with actual conditions.

It is to be illustrated to preferable implementation of the invention, but the present invention is not limited to the embodiment above, it is ripe Various equivalent deformation or replacement can also be made on the premise of without prejudice to spirit of the invention by knowing those skilled in the art, this Equivalent deformation or replacement are all included in the scope defined by the claims of the present application a bit.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种文本打印方法、系统和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类