CN1773495B - Method for generating certificate stencil combined from different literals and images - Google Patents

Method for generating certificate stencil combined from different literals and images Download PDF

Info

Publication number
CN1773495B
CN1773495B CN 200510096124 CN200510096124A CN1773495B CN 1773495 B CN1773495 B CN 1773495B CN 200510096124 CN200510096124 CN 200510096124 CN 200510096124 A CN200510096124 A CN 200510096124A CN 1773495 B CN1773495 B CN 1773495B
Authority
CN
China
Prior art keywords
information
image
text
template
file
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.)
Expired - Fee Related
Application number
CN 200510096124
Other languages
Chinese (zh)
Other versions
CN1773495A (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.)
GANSU ZHONGHUI ELECTRONIC ENGINEERING Co Ltd
Lanzhou University
Original Assignee
GANSU ZHONGHUI ELECTRONIC ENGINEERING Co Ltd
Lanzhou University
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 GANSU ZHONGHUI ELECTRONIC ENGINEERING Co Ltd, Lanzhou University filed Critical GANSU ZHONGHUI ELECTRONIC ENGINEERING Co Ltd
Priority to CN 200510096124 priority Critical patent/CN1773495B/en
Publication of CN1773495A publication Critical patent/CN1773495A/en
Application granted granted Critical
Publication of CN1773495B publication Critical patent/CN1773495B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A method for generating certificate template with combination of different word and image includes fetching and identifying different wording file line by line in computer, carrying out integration according to the same field being able to mark information uniquely in different file, corresponding different word information to image information one by one according to the same field mark number being able to mark information in file and in image for obtaining logic data structure, leading said structure to databank for forming template.

Description

The method for generating certificate stencil of different literals and image combination
Technical field
The present invention relates in the Computer Applied Technology field different literals and image combination, the technology of the template of the relevant specific certificate of formation.
Background technology
Need on some special certificates in the same catalogue with two or more different literals marked content, also need corresponding image simultaneously.For example the I.D. of ethnic group need mark out content and photographs such as name, sex with Chinese character and minority language.Be to adopt the method for separating chromatography to realize the preparation of the special certificate of this class in the prior art.Suppose and to finish this work with computer system, the certificate for preparing this class, need be to the text of different literals or the text file of other document form, and the image file that has a photograph handles and imports in the corresponding database, forms relevant template simultaneously.But there is not the disclosure of this respect content in the prior art.
Summary of the invention
The invention provides a kind of more convenient than prior art, and the method for the special certificate that makes up with kinds of words and image of the systems produce that can use a computer.
Method of the present invention is: the document source of different literals is specific text, when handling, opens earlier by computing machine each text respectively, read line by line and discern, field according to the identical unique flag information of energy of differing document text is carried out integration processing, abandon unwanted information and state exchange sign in the template, again according to the field mark number of the unique flag information of energy identical in text and the image file, make different literals information corresponding one by one with image information, thereby obtain generating needed logic data structure in the database of template, the corresponding information with each required file imports database and forms template according to the requirement that design generates template again.
The certificate of the different literals of method indication of the present invention and image combination refers in particular to two kinds of different literals and the three-in-one certificate of image, therefore its template also should be two kinds of different literals and the three-in-one template of image, and the field mark number of the unique flag information of described energy is meant identification card number and recording mechanism.
By the embodiment of the invention described later as seen, one of particular text file of its different literals is the text of deriving from public security accreditation information bank, is to differentiate and analysis according to the state transitions sign to variant text.More specifically saying, is to differentiate and analyze with ^ to the public security accreditation information bank by Chinese character, to the text of minority language then with the space differentiate, analysis and integration processing.
Use the certificate stencil that the present invention can produce different literals easily, make things convenient for accreditation work.The present invention can be widely used in the certificate that needs kinds of words on it, the field relevant as I.D., driver's license, employee's card etc.
Description of drawings
Accompanying drawing 1 is a schematic flow sheet of the present invention.Accompanying drawing 2 is used to prepare the schematic flow sheet of I.D. for the present invention.
Embodiment
Below in conjunction with drawings and Examples the present invention is further explained orally.
The Data Source of supposing the certificate that will make comprises three parts: A writing text fileinfo, B writing text fileinfo and image file information, and A file and B file, and the field mark number that the unique flag information of energy is arranged in the image file.
Design the computer simulation (this does not belong to content of the present invention) of certificate according to the call format of certificate;
Open A writing text file by computing machine, read in its content, carry out integration processing again by unique flag information in the file.Integration processing described here is meant each field in the identification A file, simultaneously field contents identical in the A file is merged, again unwanted information in the template and state exchange sign are abandoned, and field contents required in the template is imported to database, become the part of the content of template;
Open B writing text file by computing machine, read in the A file in the identical information content of unique flag information, again content is carried out integration processing.Integration processing described here is with last identical.Again unwanted information in the template and state exchange sign are abandoned, and field contents required in the template is imported to database, become another part of the content of template;
Open image file by computing machine, read in A and B file in the identical image file of unique flag information, and this image information imported in the database, be saved as the form of binary digit.
Through above process, in database, just constituted all constituents, and set up relation one to one between different literals information and image by the three-in-one card template of A literal, B writings and image.
Workflow more than the present invention is referring to accompanying drawing 1.
One embodiment of the invention is to hide the Chinese I.D. for preparation template function is provided.
The Data Source of hiding Chinese I.D. manufacturing system comprises three parts: Chinese information, Tibetan language information and image information.This template is made up of following content:
1, Chinese information is to derive from public security accreditation information bank, after the information via audit in the public security accreditation information bank is handled, utilizes data offload scheduling software that the data-base recording after examining is derived and is stored as txt file.Therefore, the processing of Chinese information is that txt file is imported in the database, when Chinese information is imported in the database, has just constituted the part of Tibetan, the Chinese, the three-in-one I.D. template of image.
2, the Tibetan language information processing is the same in theory: the txt file that comprises Tibetan language accreditation information is imported in the database. just the form of the txt file of the form of the txt file of Tibetan language information and Chinese information is different.When Tibetan language information is imported in the database, just constituted another part of Tibetan, the Chinese, image three-in-one I.D. template.
3, the processing of image information is that image information is imported in the database, be saved as the form of binary digit. when image information is imported in the database, just constituted an important component part of Tibetan, the Chinese, the three-in-one I.D. template of image.
Could constitute complete I.D. demonstration printing template because these three parts combine, we make Tibetan language information, Chinese information, image information corresponding one by one according to identification card number and recording mechanism, show printing template thereby generate complete I.D..
I.D. shows that the size of printing template is definite by the accreditation standard, and its ADO database and formed template are ready-made simultaneously.
The technology path of present embodiment such as accompanying drawing 2.
The txt file form of the Chinese character information that is derived by public security accreditation information bank is as follows:
01^0000005300^^^^1985^8^24^^4415^522^630102198508240454^0000005300^^0000005300^^2005.08.02-2015.08.02^0000005300^^01^0000005301^^^^1961^5^26^^448142^^632521196105260614^0000005301^^0000005301^^2005.08.02-2025.08.02^0000005301^^01^0000005302^^^^1967^10^1^^2948312^^532624196710010366^0000005302^^0000005302^^2005.08.02-2025.08.02^0000005302^^01^0000005303^^^^1977^7^11^^6662^^630102197707110025^0000005303^^0000005303^^2005.08.02-2025.08.02^0000005303^^01^0000005304^^^^1974^8^17^^6662^^630102197408170036^0000005304^^0000005304^^2005.08.02-2025.08.02^0000005304^^01^0000005305^^^^1979^1^1^^271^^630102197901010028^0000005305^^0000005305^^2005.08.02-2025.08.02^0000005305^^
Above-mentioned txt file is to be standard with packet that public security population accreditation information database is derived, can draw following information by analysis
1) its information flow form is as follows:
Every information is made up of 19 segment datas.Separate with " ^ ":
Field1: the recording mechanism of the bag at data place
Field2: recording mechanism
Field3: name
Field4: sex
Field5: nationality
Field6: year of birth
Field7: the birth moon
Field8: go out the birthday
Field9: address
Field10: address
Field11: address
Field12: identification card number
Field13: the numbering of image
Field14: the title of image
Field15: positive recording mechanism
Field16: issuing authority
Field17: valid period
Field18: frame number
Field19: frame title
2) according to the analysis to above-mentioned data source information, the logic data structure design is as follows:
Data member ID Data type Whether be empty Explanation
NO VARchar(10) NOT NULL Recording mechanism
ChinaName VARchar(50) NOT NULL The Chinese name
TibetName VARchar(50) NOT NULL The Tibetan language name
Sex VARchar(5) NOT NULL Sex
Nationality VARchar(50) NOT NULL National
ChinaAddress VARchar(128) NOT NULL Chinese address
TibetAddress VARchar(128) NOT NULL The Tibetan language address
Birth VARchar(12) NOT NULL Date of birth
Publish VARchar(12) NOT NULL Issuing date
ChinaUnit VARchar(128) NOT NULL Issuing authority's (Chinese)
TibetUnit VARchar(128) NOT NULL Issuing authority's (Tibetan language)
Time VARchar(6) NOT NULL Effective time
Munber VARchar(12) NOT NULL Identification card number
Img BinaryData NOT NULL Photo
State VARchar(12) NOT NULL State flag bit
Tibetan language information txt file in the existing public security accreditation information bank is simple relatively, and following field is only arranged:
The 630102198508240454 Tibetan language name Tibetan language address # of issuing authority
Each interfield is to be separated by with the space.
In the existing public security accreditation information bank in the image information file content only have:
0000005300 Yuan Jun peak
Recording mechanism wherein is corresponding with the Chinese-character text file.
Treatment scheme of the present invention is as follows:
Content according to Chinese character information and image information, determine field and field type according to the ADO Database Requirements. same txt file content according to Tibetan language information, determine Tibetan language field and field type used in the ADO database. in the ADO database no information then abandon need not. in concrete realization, because the txt text message derives from the packet that public security population accreditation information bank is derived, we at first analyze the txt text message, judge the state flag bit " ^ " of txt text message, if this state flag bit is arranged, then the information before this state is the information of a field, whole piece information is judged, discern the information of each field then, information is carried out integration processing. as: what the address showed in the txt text is three fields, need integrate assembling to it and handle; The Bale No. field is the sign of this txt text of identification and other txt texts, is nonsensical in hiding Chinese I.D. manufacturing system, so abandon this field; 4 fields have appearred in recording mechanism in the txt text, in the transfer process of reality, only needing a field. 3 fields appear in name in the txt text, in the transfer process of reality, only need a field. through information is handled, draw actual required field. the logic data structure in the beginning constructs database, it mainly is the field of design table, the type of each field, length, whether be empty, information such as remarks. regular good information imports in the database according to the encoding operation of the structure that designs by reality, constitutes a part of hiding Chinese I.D. manufacturing system Data Source.
Used complete data structure such as figure below in the ADO database:
Sequence Field name Type Size () Explanation
0 ID DWORD 4b Automatic numbering
1 Pack Text 16b Packet numbers (abandoning)
2 Each Text 16b Recording mechanism
3 Isdo Text 3b Whether certificates handling, 1: do not do 2: do
4 NameC Text 50b The Chinese title:
5 NameT Text 64b The Tibetan language title:
6 Sex Text 5b Sex: men and women
7 Nation Text 50 National
8 AddressC Text 64b The Chinese address
9 AddressT Text 128b The Tibetan language address
10 Birth Text 12b Date of birth
Sequence Field name Type Size () Explanation
11 Time Text 24b The term of validity
12 Number Text 20b ID (identity number) card No.
13 UnitC Text 50 The unit of signing and issuing: Chinese
14 UnitT Text 50 The unit of signing and issuing: Tibetan language
15 MakeTime Text 12b The date of issuance (certificates handling time)
16 Img The OLE object Self-defined Photo
To the processing of Chinese character information and image information the time according to recording mechanism: 0000005300 the synthetic information of both message block.This information is stored into corresponding field according to above-mentioned data structure respectively according to field format.The storage of Tibetan language information is according to identification card number: 630102198508240454 discern, if identification card number 630102198508240454 is identical with data in the ADO database, then according to identification card number the Tibetan language information stores in the Tibetan language field of corresponding record.So finish the synthetic technology of Tibetan, the Chinese, image.
Obviously, this method of the present invention also can be used for preparing the I.D. of other minority language, perhaps is used to prepare the special certificate of multiple other literal.

Claims (2)

  1. Different literals and image the combination method for generating certificate stencil, the document source that it is characterized in that different literals is specific text, open each text respectively, read line by line and discern, field according to the identical unique flag information of energy of differing document text is carried out integration processing, abandon unwanted information and state exchange sign in the specific text, again according to the field mark number of the unique flag information of energy identical in text and the image file, make different literals information corresponding one by one with image information, thereby obtain generating needed logic data structure in the database of template, the corresponding information with each required file imports database and forms template according to the requirement that design generates template again.
  2. 2. the method for generating certificate stencil of different literals according to claim 1 and image combination is characterized in that certificate stencil is two kinds of different literals and the three-in-one template of image, and the field mark number of the unique flag information of energy is identification card number and recording mechanism.
CN 200510096124 2005-09-30 2005-09-30 Method for generating certificate stencil combined from different literals and images Expired - Fee Related CN1773495B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510096124 CN1773495B (en) 2005-09-30 2005-09-30 Method for generating certificate stencil combined from different literals and images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510096124 CN1773495B (en) 2005-09-30 2005-09-30 Method for generating certificate stencil combined from different literals and images

Publications (2)

Publication Number Publication Date
CN1773495A CN1773495A (en) 2006-05-17
CN1773495B true CN1773495B (en) 2010-05-05

Family

ID=36760470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510096124 Expired - Fee Related CN1773495B (en) 2005-09-30 2005-09-30 Method for generating certificate stencil combined from different literals and images

Country Status (1)

Country Link
CN (1) CN1773495B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708873A (en) * 2015-11-16 2017-05-24 北京国双科技有限公司 Data integration method data integration device
CN113313726A (en) * 2021-06-28 2021-08-27 安徽信息工程学院 Method and system for identifying social security card

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1216381A (en) * 1997-11-04 1999-05-12 湖南省公安厅第十四处 ID card making technology using no negative card
CN1254146A (en) * 1999-11-19 2000-05-24 长春鸿达信息技术有限公司 Residence identity card making system without base card and its method
EP1103028A2 (en) * 1998-08-04 2001-05-30 Contec Medical Ltd. Surgical recording and reporting system
JP2002073662A (en) * 2000-09-05 2002-03-12 Nippon Hoso Kyokai <Nhk> Information presenting device and recording medium with information presenting program recorded thereon

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1216381A (en) * 1997-11-04 1999-05-12 湖南省公安厅第十四处 ID card making technology using no negative card
EP1103028A2 (en) * 1998-08-04 2001-05-30 Contec Medical Ltd. Surgical recording and reporting system
CN1254146A (en) * 1999-11-19 2000-05-24 长春鸿达信息技术有限公司 Residence identity card making system without base card and its method
JP2002073662A (en) * 2000-09-05 2002-03-12 Nippon Hoso Kyokai <Nhk> Information presenting device and recording medium with information presenting program recorded thereon

Also Published As

Publication number Publication date
CN1773495A (en) 2006-05-17

Similar Documents

Publication Publication Date Title
US6088700A (en) Automated forms completion for global information network applications
CN110597816A (en) Data processing method, data processing device, computer equipment and computer readable storage medium
CN112329419A (en) Document editing method, device, server, terminal and storage medium
CN101430714B (en) Content structuring process method and system based on model
CN101952802A (en) Method and system for author and publisher&#39;s checking list of references
CN102768656A (en) Method, system and device for processing reading record
CN102722537A (en) Database test data generation method and system thereof
CN103885731A (en) Data printing method and device
CN105930313B (en) The method and apparatus of processing notification information
CN106095745A (en) Transaction record extracting method based on log and system thereof
CN1773495B (en) Method for generating certificate stencil combined from different literals and images
CN105302506B (en) A kind of sorting bulk print method called automatically based on data
DE50300459D1 (en) METHOD AND DEVICE FOR READING DELIVERY OR DOCUMENT TAGS
Wu Can American public relations theories apply to Asian cultures?
CN101140566A (en) Proofread method and system
CN112732209A (en) Quick batch printing and auxiliary sorting system
CN106204177A (en) For opening the method and system of single tax rate VAT invoice without amount of tax to be paid sales slip
CN112288039B (en) Sample labeling method and system for OCR model training
CN111931479A (en) Information extraction method and device based on contract dispute judgment statement
CN108255887B (en) Method and device for verifying industry text
CN109933643A (en) The acquisition of patent transaction big data and processing method
CN101118490A (en) Process for automatically generating traffic accident with computer program
JP4647859B2 (en) Personal information printing system and method for reproducing personal printed matter
CN110119376A (en) A kind of Chinese Painting and Calligraphy seal identification sample database system
JP2000107701A (en) System for producing data of medium transportation and transported matter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100505

Termination date: 20140930

EXPY Termination of patent right or utility model