CN107730574B - Automatic identity card generation method based on powershell - Google Patents
Automatic identity card generation method based on powershell Download PDFInfo
- Publication number
- CN107730574B CN107730574B CN201710911271.6A CN201710911271A CN107730574B CN 107730574 B CN107730574 B CN 107730574B CN 201710911271 A CN201710911271 A CN 201710911271A CN 107730574 B CN107730574 B CN 107730574B
- Authority
- CN
- China
- Prior art keywords
- powershell
- information
- card
- identity card
- template
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/50—Maintenance of biometric data or enrolment thereof
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Document Processing Apparatus (AREA)
Abstract
The invention discloses an automatic ID card generation method based on powershell, which comprises the steps of firstly making a template of an ID card, and removing data of name, gender, ethnicity, birth year and month, address, citizen ID card number, issuing authority and valid period by using a corresponding drawing tool; then inputting the information to be filled into a text message (which may contain multi-person information) in batch; the Powershell script fills the corresponding data in the corresponding position and generates a new picture. The method can quickly generate a large amount of false identity card information for the picture recognition system to use according to the text information.
Description
Technical Field
The invention relates to the technical field of automatic generation of pictures, in particular to an automatic generation method of an identity card based on powershell.
Background
In the test of automatic identification of the image of the identity card, a large number of pictures are needed to judge the accuracy of image identification and perform machine learning. But the information of the relevant person can be leaked by using the real identity card picture. Therefore, the method can produce a large number of identity card pictures, and if the patterns of various pictures are needed, the corresponding templates can be added to generate the pictures of various patterns.
Disclosure of Invention
The invention overcomes the defects of the prior art, provides an automatic identification card generating method based on powershell, and aims to generate an identification card picture for a picture recognition system.
In view of the above problems of the prior art, according to one aspect of the present disclosure, the following technical solutions are adopted in the present invention:
an automatic ID card generation method based on powershell comprises the following steps:
making an identity card template;
writing the information of the identity card to be generated and inputting the information to obtain text information;
compiling powershell script, filling the content of text information into the template picture to generate an identity card picture for the picture recognition system to use.
In order to better realize the invention, the further technical scheme is as follows:
according to one embodiment of the invention, in the step of making the identity card template, a drawing tool is used for removing data of name, gender, ethnicity, year and month of birth, address, citizen identity number, issuing authority and expiry date.
According to another embodiment of the invention, in the step of making the identity card template, Photoshop is used for processing words of the identity card template picture.
According to another embodiment of the invention, the Powershell sets the color and font size of the drawing according to the text content to be filled in.
According to another embodiment of the present invention, the Powershell writes the specified location coordinates of the corresponding field.
The invention can also be:
according to another embodiment of the invention, the text message comprises a multi-person message.
According to another embodiment of the invention, pictures that are not limited to identification cards are generated by modifying powershell scripts.
Compared with the prior art, the invention has the following beneficial effects:
the invention relates to an automatic ID card generation method based on powershell, which is characterized in that a template of an ID card is firstly made, and data of name, gender, ethnicity, birth year and month, address, national ID card number, issuing authority and valid period are removed by using a corresponding drawing tool. Then the information to be filled in is input into a text message (which may contain multi-person information) in batch. The Powershell script fills the corresponding data in the corresponding position and generates a new picture. The method can quickly generate a large amount of false identity card information for the picture recognition system to use according to the text information.
Drawings
For a clearer explanation of the embodiments or technical solutions in the prior art of the present application, the drawings used in the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only references to some embodiments in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic block diagram of a process of generating a picture by powershell according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples, but the embodiments of the present invention are not limited thereto.
An embodiment, as shown in fig. 1, fig. 1 is a schematic block diagram of a flow structure of an automatic id card image generation method based on powershell, and an automatic id card generation method based on powershell includes:
making an identity card template, and processing characters of an identity card template picture by using a drawing tool; if a drawing tool is used, the data of name, sex, nationality, year and month of birth, address, citizen identification number, issuing authority and expiration date are removed.
Writing the information of the identity card to be generated and inputting the information into a text message, wherein the text message can contain multi-person information;
compiling powershell script, filling the content of text information into the template picture to generate an identity card picture for the picture recognition system to use.
Another embodiment may be constituted by powershell, photoshop tools, specifically:
photoshop: the system is used for processing the characters of the identity card template picture;
powershell: and compiling scripts, and filling the contents of the text information into the template pictures to produce a large number of pictures. A Powershell process, comprising:
reading related information of the text file and storing the related information into corresponding fields;
loading a template picture into a system;
setting the color and font size of the drawing according to the text content required to be filled;
specifying the position coordinates written in the corresponding fields;
and saving the picture.
In the invention, the picture which is not limited to the identity card can be generated by modifying the script according to the picture template.
Reference throughout this specification to "one embodiment," "another embodiment," "an embodiment," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment described generally in this application. The appearances of the same phrase in various places in the specification are not necessarily all referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with any embodiment, it is submitted that it is within the scope of the invention to effect such feature, structure, or characteristic in connection with other embodiments.
Although the invention has been described herein with reference to a number of illustrative embodiments thereof, it should be understood that numerous other modifications and embodiments can be devised by those skilled in the art that will fall within the spirit and scope of the principles of this disclosure. More specifically, various variations and modifications are possible in the component parts and/or arrangements of the subject combination arrangement within the scope of the disclosure and claims of this application. In addition to variations and modifications in the component parts and/or arrangements, other uses will also be apparent to those skilled in the art.
Claims (2)
1. An automatic ID card generation method based on powershell is characterized by comprising the following steps:
making an identity card template; processing characters of the ID card template picture by using Photoshop, wherein the processing method comprises removing name, gender, ethnicity, year and month of birth, address, citizen identification number, issuing authority and valid period data;
writing the information of the identity card to be generated and inputting the information to obtain a text message, wherein the text message comprises multi-person information;
compiling Powershell scripts, writing corresponding fields into specified position coordinates through Powershell, setting colors and font sizes, filling the contents of text information into the template pictures to generate identity card pictures for a picture recognition system to use.
2. The automated powershell-based id card generation method of claim 1, wherein pictures that are not limited to id cards are generated by modifying powershell scripts.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710911271.6A CN107730574B (en) | 2017-09-29 | 2017-09-29 | Automatic identity card generation method based on powershell |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710911271.6A CN107730574B (en) | 2017-09-29 | 2017-09-29 | Automatic identity card generation method based on powershell |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107730574A CN107730574A (en) | 2018-02-23 |
CN107730574B true CN107730574B (en) | 2021-04-06 |
Family
ID=61209251
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710911271.6A Active CN107730574B (en) | 2017-09-29 | 2017-09-29 | Automatic identity card generation method based on powershell |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107730574B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114463821A (en) * | 2022-02-15 | 2022-05-10 | 平安科技(深圳)有限公司 | Certificate data generation method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101562795A (en) * | 2009-06-02 | 2009-10-21 | 廖向东 | Group multimedia messaging service business card application system |
CN101702242A (en) * | 2009-11-23 | 2010-05-05 | 中兴通讯股份有限公司 | Method and terminal for automatically filling in document with fixed format |
CN102848786A (en) * | 2012-07-20 | 2013-01-02 | 中国科学院上海光学精密机械研究所 | Three-dimensional identity card and preparation method thereof |
CN104484183A (en) * | 2014-12-30 | 2015-04-01 | 北京天云融创软件技术有限公司 | PowerShell-based heterogeneous management method and PowerShell-based heterogeneous management system for desktop software |
CN105808236A (en) * | 2016-02-25 | 2016-07-27 | 上海畅星软件有限公司 | HMI (Human Machine Interface) picture element composition design and code generation method |
CN106169078A (en) * | 2016-07-14 | 2016-11-30 | 微额速达(上海)金融信息服务有限公司 | Image-recognizing method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130185129A1 (en) * | 2012-01-13 | 2013-07-18 | John F. Berman | Methods and Systems of Payment for Automatic Generation of Discount Transactions |
CN104598288B (en) * | 2013-10-30 | 2018-05-11 | 华为技术有限公司 | Java applet performs method and apparatus |
CN107193949A (en) * | 2017-05-22 | 2017-09-22 | 携程旅游信息技术(上海)有限公司 | The method and system of newly-built tissue based on Active Directory organizational structure |
-
2017
- 2017-09-29 CN CN201710911271.6A patent/CN107730574B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101562795A (en) * | 2009-06-02 | 2009-10-21 | 廖向东 | Group multimedia messaging service business card application system |
CN101702242A (en) * | 2009-11-23 | 2010-05-05 | 中兴通讯股份有限公司 | Method and terminal for automatically filling in document with fixed format |
CN102848786A (en) * | 2012-07-20 | 2013-01-02 | 中国科学院上海光学精密机械研究所 | Three-dimensional identity card and preparation method thereof |
CN104484183A (en) * | 2014-12-30 | 2015-04-01 | 北京天云融创软件技术有限公司 | PowerShell-based heterogeneous management method and PowerShell-based heterogeneous management system for desktop software |
CN105808236A (en) * | 2016-02-25 | 2016-07-27 | 上海畅星软件有限公司 | HMI (Human Machine Interface) picture element composition design and code generation method |
CN106169078A (en) * | 2016-07-14 | 2016-11-30 | 微额速达(上海)金融信息服务有限公司 | Image-recognizing method |
Also Published As
Publication number | Publication date |
---|---|
CN107730574A (en) | 2018-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111191414B (en) | Page watermark generation method, identification method, device, equipment and storage medium | |
US10606533B2 (en) | Editing an image on a medium using a template including attribute information of an object in the image | |
CN109634961B (en) | Test paper sample generation method and device, electronic equipment and storage medium | |
CN108052491B (en) | Automatic processing method and device for certificate document | |
WO2020082610A1 (en) | Identity card information verification method and apparatus, device, and computer readable storage medium | |
CN110866495A (en) | Bill image recognition method, bill image recognition device, bill image recognition equipment, training method and storage medium | |
US11823358B2 (en) | Handwritten content removing method and device and storage medium | |
CN111652232A (en) | Bill identification method and device, electronic equipment and computer readable storage medium | |
JP6795195B2 (en) | Character type estimation system, character type estimation method, and character type estimation program | |
CN112183296B (en) | Simulated bill image generation and bill image recognition method and device | |
CN113011349A (en) | Element identification method and device of bill and storage medium | |
CN112749649A (en) | Method and system for intelligently identifying and generating electronic contract | |
CN112926421A (en) | Image processing method and apparatus, electronic device, and storage medium | |
CN108961361B (en) | Method and system for generating special effect text image and computer equipment | |
CN107730574B (en) | Automatic identity card generation method based on powershell | |
CN109656652B (en) | Webpage chart drawing method, device, computer equipment and storage medium | |
CN112784220A (en) | Paper contract tamper-proof verification method and system | |
CN111338733A (en) | User interface adaptation method and system | |
CN114332895A (en) | Text image synthesis method, text image synthesis device, text image synthesis equipment, storage medium and program product | |
CN112839185B (en) | Method, apparatus, device and medium for processing image | |
CN112417899A (en) | Character translation method, device, computer equipment and storage medium | |
CN116311300A (en) | Table generation method, apparatus, electronic device and storage medium | |
CN115578736A (en) | Certificate information extraction method, device, storage medium and equipment | |
CN114202762A (en) | Handwritten sample generation method and device and application | |
CN113936187A (en) | Text image synthesis method and device, storage medium and electronic equipment |
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 |