Background technology
Barcode technology is a kind of advanced person's information transmission and computer input technology, begins to use as far back as commercial field.Because therefore the advantages such as barcode technology has that data high input speed, reliability and accuracy are high, equipment is simple, system cost is low, flexible practicality, degree of freedom are large, be easy to make, practical and convenient have very widely application in all trades and professions.
As everyone knows, the borrowing of files, storehouse is checked, statistics etc. is the important step in the file management, and under traditional way to manage, these work are manual operations fully, and labour intensity is large, efficient is low, error rate is high.
For the problems referred to above, can in file management, introduce the bar code Auto, the operator only need press the scan button of scanner, scanning needs the files data of warehouse-in successively, can utilize computer system automatically to finish the check and correction of files, qualified files are generated bar code automatically according to the system coding principle, and the files image data of bar code image and input is merged, form the files image data with bar code.Like this, traditional manual work has just become simple scanner scan operation, has saved the extensive work of artificial joint strip code, has greatly reduced labour intensity, has improved work efficiency, has finished simultaneously the digitize and informationize management of files.
Summary of the invention
In order to realize the digital management of files, need to scan storage to the files data of papery, generate image data, convenient management.Wherein relate to and how the files data after the scanning is carried out the simple efficiently problem of management, files bar code involved in the present invention generates automatically, the method for automatic adhesion has solved the problem of management of image data well, for file management work provides convenience, also improved work efficiency simultaneously.
The technical scheme that this practicality invention is adopted is: at first the files data is scanned, system is converted to electronic image file with files papery data, at the file input interface, system judges automatically whether the data of current typing are qualified, if qualified, system produces bar code according to file barcode encoding principle automatically to this scanned copy, system is selected suitable position of pasting bar code automatically, operating personnel can check the position that system selectes automatically and adjust, and the information of bar code and current scanning record is preserved warehouse-in in the lump; If defective, then do not produce the file bar code, system also will not preserve the information of operating personnel's typing.When selecting to paste the bar code image position, system selects suitable position automatically, in order to avoid cover the files content, the position that operating personnel select automatically to system checks, inappropriate position is adjusted (can adjust batch documents) at any time, to be confirmed errorless after, system carries out bar code fusion automatically, simultaneously the image after merging is carried out bar-code identification, automatically re-start the work that produces bar code and joint strip code to identifying unsuccessful picture system, to continuous subsides underproof image still more than 5 times, system provides prompting automatically, allow the user process, system automatically with the image transmission of successful joint strip code in file server.
This practical beneficial effect of the invention is, in the digital management process of archives, conveniently image data carried out bar code generates, bar code merges automatically, realizes efficient archival digitalization management work.
Embodiment
Implementation of the present invention is as described below:
At first utilize scanner that the files data is scanned, the image data after the scanning is carried out verification, if can put in storage, the bar code and the current entry information that then system are produced are automatically preserved together, if cannot put in storage, then do not produce bar code, current information is not put in storage yet.
Wherein, automatically generating the bar code rule is: fixed code " 3 "+5 general archive number (less than 5 with character " 9 " polishing to 5)+5 catalog number (Cat.No.) (less than 5 with character " 9 " polishing to 5)+2 year+7 serial numbers (since 0000001 maximum 9999999).Amount to 20.It is as described below that bar code generates detailed algorithm automatically:
1) according to the general archive of file place files number, catalog number (Cat.No.) with determine 13 prefixes of All Files bar code under these files year.
2) set up the maximum sequence number table of prefix, the file bar code start sequence number of next these prefix files of this table record.Set up existing file bar code number table for files.The start sequence number of the file bar code number under these table record files and end sequence number.
3) produce the processing rule of the files of file bar code for newly-increased need:
A) from the maximum sequence number table of prefix, search whether the record that meets this prefix is arranged, for fear of many people problem that serial number may repeat during simultaneously to the files concurrent processing of same prefix, the maximum sequence number table of lock prefix in inquiry, thereby uniqueness and the accuracy of assurance serial number.
B) the if there is no record of this prefix, the record of newly-increased this prefix in this table then, maximum sequence number is designated as number of files under these files+1.The start sequence number of the file bar code number of this record of a case volume is 1, and finishing sequence number is the number of files of these files.
C) if there is the record of this prefix, the maximum sequence number of then upgrading this record is the number of files of former numerical value+these files.The start sequence number of the file bar code number of this record of a case volume is former numerical value, and finishing sequence number is the former numerical value+number of files-1 of these files.
D) the maximum sequence number table of release prefix.
E) with the start sequence number of the file bar code number of these files with finish sequence number and be recorded in the file bar code number table.
F) this files All Files is carried out file bar code number coding.
4) produce the processing rule of the files of file bar code for the need of revising:
A) from file bar code number table, read the start sequence number that belongs to all files of these files and finish sequence number and with what determine these files sequence number should be arranged.
B) read the bar code number of this files All Files, for the file that does not have bar code number, so that sequence number should be arranged file is filled in order.
C) for the situation that should have sequence number to be not enough to fill All Files, then the corresponding prefix record of the maximum sequence number table of lock prefix revises the maximum sequence number table of prefix and is former numerical value+remain unfilled number of files, the data that last release has locked.
Increase simultaneously start sequence number and the end sequence number of the new file of these files newly at file bar code number table.At last the file that does not have the file bar code number is encoded.
This algorithm can guarantee succession, uniqueness and the accuracy of the bar code of the affiliated file under All Files and a certain files.Can solve under big data quantity the speed issue that many people operate simultaneously.Also can guarantee simultaneously because of revise, delete, when emptying file, but the reusing of bar code.When revising such as case volume informations such as number of files, also can accomplish the uniqueness of bar code, and guarantee to greatest extent the continuity of bar code serial number.Even when the accident of suddenly outage occurs, also can guarantee succession, uniqueness and the accuracy of file bar code.
When selecting to paste the position of bar code, the inactive area size is calculated according to the algorithm of similar image inactive area by system, will meet the inactive area of barcode size as the optimum position of bar code.System is according to from top to bottom, detect, select inactive area by left-to-right rule.When finding first inactive area, it is the bar code paste position that system will automatically lock this position.Consider from the aesthetics that bar code is pasted, during the locking inactive area, system treats the zone in image boundary 10 pixels as the effective coverage.Choose the undesirable situation of blank position for system, the typing personnel can drag bar code by hand, until to suitable position.User's verification interface can customize line number and the columns that every screen display is shown.Raw video is according to setting Scaling, and the file barcode image is also according to the displaying ratio Scaling of raw video.
But whether the barcode position that operating personnel's check system is placed automatically meets the requirements and satisfies demand attractive in appearance, can carry out the adjustment of batch barcode position for unaccommodated barcode position.Laterally put if can not satisfy bar code, also bar code vertically can be put to meet the demands.
After finishing barcode position and determining, barcode image and document image are carried out visual fusion, system carries out bar-code identification to the image after merging automatically, if can not identify bar code, system will regenerate barcode image and again merge, still unsuccessful for repeatedly merging, will provide prompting and allow operating personnel process.Image transmission after system will successfully merge automatically is in file server.Operating personnel and auditor can also be to the image checks after merging: if find this moment to paste less, paste more, cover the mistakes such as image because of the bar code that a variety of causes causes, and can also the re-posted bar code.Files are all examined when passing through, and will delete raw video, only keep the image after merging.