Document image capturing method, apparatus, computer equipment and storage medium

文档序号:1755605 发布日期:2019-11-29 浏览:30次 中文

阅读说明:本技术 单据影像获取方法、装置、计算机设备和存储介质 (Document image capturing method, apparatus, computer equipment and storage medium ) 是由 陈林峰 李苏霞 陈红围 于 2019-08-01 设计创作,主要内容包括:本申请涉及一种单据影像获取方法、装置、计算机设备和存储介质。所述方法包括:获取影像任务,所述影像任务携带凭证信息,所述凭证信息包括凭证标识,将所述影像任务发送至线程池;通过所述线程池调用第一线程在档案记录表中查找是否存在所述凭证标识对应的档案记录;若未查找到所述凭证标识对应的档案记录,则通过所述线程池调用第二线程对所述凭证信息进行类型转换,得到所述凭证标识对应的所有原始单据信息;调用所述第二线程以及预设接口获取所有原始单据信息对应的影像;将所有原始单据信息对应的影像进行显示。采用本方法能够提高单据影像的获取效率。(This application involves a kind of document image capturing method, apparatus, computer equipment and storage mediums.The described method includes: obtaining image task, the image task carries credential information, and the credential information includes voucher identification, and the image task is sent to thread pool;First thread is called to search whether that there are the corresponding dossiers of the voucher identification in dossier table by the thread pool;If not finding the corresponding dossier of the voucher identification, calls the second thread to carry out type conversion to the credential information by the thread pool, obtain the corresponding all original document information of the voucher identification;Second thread and preset interface is called to obtain the corresponding image of all original document information;The corresponding image of all original document information is shown.It can be improved the acquisition efficiency of document image using this method.)

1. a kind of document image capturing method, which comprises

Image task is obtained, the image task carries credential information, and the credential information includes voucher identification, by the image Task is sent to thread pool;

First thread is called to search whether that there are the corresponding shelves of the voucher identification in dossier table by the thread pool Case record;

If it is not, then calling the second thread to carry out type conversion to the credential information by the thread pool, the voucher is obtained Identify corresponding all original document information;

Second thread and preset interface is called to obtain the corresponding image of all original document information;

The corresponding image of all original document information is shown.

2. the method according to claim 1, wherein the corresponding all original document information of the voucher identification it Between there are level relation, it is described to call the second thread to carry out type conversion to the credential information by the thread pool, obtain The corresponding all original document information of the voucher identification include:

Call the second thread that the credential information is converted to level-one document information according to voucher relation table by the thread pool;

The step of thread pool calls the second thread to carry out type conversion is iterated through, it will be previous according to the voucher relation table Grade document information is converted to next stage document information, until obtaining the corresponding all original document information of the voucher identification, adjusts The corresponding image of all original document information is obtained with preset interface.

3. the method according to claim 1, wherein the method also includes:

If so, obtaining corresponding certificate image according to the dossier;

It calls the second thread to carry out type conversion to the credential information by the thread pool, it is corresponding to obtain the voucher identification All original document information;

Second thread and preset interface is called to obtain the corresponding image of all original document information;

The certificate image and the corresponding image of all original document information are shown.

4. the method according to claim 1, wherein the method also includes:

Multiple image tasks are obtained, each image task carries credential information, and the credential information includes voucher identification, will be multiple Image task is sent to thread pool;

Multiple image tasks are divided into multiple batches by the thread pool;

First thread is called concurrently to be searched in dossier table according to the voucher identification in each batch by the thread pool With the presence or absence of corresponding dossier;

If it is not, then calling the second thread to carry out type conversion to the credential information in each batch by the thread pool, obtain Corresponding all original document information.

5. the method according to claim 1, wherein the method is also wrapped before the acquisition image task It includes:

Credentials file to be scanned is obtained, calls multithreading that the credentials file to be scanned is sent to print service by thread pool Device;

The credentials file to be scanned is scanned by the printing server, generates corresponding certificate image;

The certificate image is stored, after the certificate image stores successfully, by the credential information typing to archives In record sheet.

6. a kind of document video capturing device, which is characterized in that described device includes:

Communication module, for obtaining image task, the image task carries credential information, and the credential information includes voucher mark Know, the image task is sent to thread pool;

Searching module, for calling first thread to search whether that there are the vouchers in dossier table by the thread pool Identify corresponding dossier;

Conversion module, be used for if it is not, then by the thread pool call the second thread to the credential information progress type conversion, Obtain the corresponding all original document information of the voucher identification;

First obtains module, for calling second thread and preset interface to obtain the corresponding shadow of all original document information Picture;

Display module, for showing the corresponding image of all original document information.

7. device according to claim 6, which is characterized in that the conversion module is also used to call by the thread pool The credential information is converted to level-one document information according to voucher relation table by the second thread;The thread pool is iterated through to call Second thread carries out the step of type conversion, and previous stage document information is converted to next stage document according to the voucher relation table Information, until calling preset interface to obtain all original lists when obtaining the corresponding all original document information of the voucher identification It is believed that ceasing corresponding image.

8. device according to claim 6, which is characterized in that described device further includes the second acquisition module, be used for if so, Corresponding certificate image is then obtained according to the dossier;Call the second thread to the credential information by the thread pool Type conversion is carried out, the corresponding all original document information of the voucher identification are obtained;It calls second thread and presets Interface obtains the corresponding image of all original document information;By the certificate image and the corresponding shadow of all original document information As being shown.

9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 5 the method when executing the computer program.

10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 5 is realized when being executed by processor.

Technical field

This application involves field of computer technology, set more particularly to a kind of document image capturing method, apparatus, computer Standby and storage medium.

Background technique

With the development of computer technology, there is document image capturing technology, document image, which refers to, passes through print service The document picture that device generates after being scanned actual document.And generation foundation of the original document as voucher, business people Member needs to inquire the corresponding original document image of voucher when carrying out voucher examination & approval to be examined.Traditional document image obtains Mode is taken, is only supported in the filed situation of voucher, inquires certificate image, and then inquire corresponding original document image.And In the case where voucher is not filed, need to cause the acquisition of document image to be imitated by manually inquiring document image one by one Rate is lower.Therefore, the acquisition efficiency for how improving document image becomes a technical problem for needing to solve at present.

Summary of the invention

Based on this, it is necessary in view of the above technical problems, provide a kind of list of acquisition efficiency that can be improved document image According to image capturing method, apparatus, computer equipment and storage medium.

A kind of document image capturing method, which comprises

Image task is obtained, the image task carries credential information, and the credential information includes voucher identification, will be described Image task is sent to thread pool;

First thread is called to search whether that there are the voucher identifications in dossier table by the thread pool corresponding Dossier;

If it is not, then calling the second thread to carry out type conversion to the credential information by the thread pool, obtain described The corresponding all original document information of voucher identification;

Second thread and preset interface is called to obtain the corresponding image of all original document information;

The corresponding image of all original document information is shown.

There are rank passes between the corresponding all original document information of the voucher identification in one of the embodiments, System, it is described to call the second thread to carry out type conversion to the credential information by the thread pool, obtain the voucher identification Corresponding all original document information include:

Call the second thread that the credential information is converted to level-one document according to voucher relation table by the thread pool Information;

The step of thread pool calls the second thread to carry out type conversion is iterated through, it will according to the voucher relation table Previous stage document information is converted to next stage document information, until obtaining the corresponding all original document information of the voucher identification When, call preset interface to obtain the corresponding image of all original document information.

In one of the embodiments, the method also includes:

If so, obtaining corresponding certificate image according to the dossier;

It calls the second thread to carry out type conversion to the credential information by the thread pool, obtains the voucher identification Corresponding all original document information;

Second thread and preset interface is called to obtain the corresponding image of all original document information;

The certificate image and the corresponding image of all original document information are shown.

In one of the embodiments, the method also includes:

Multiple image tasks are obtained, each image task carries credential information, and the credential information includes voucher identification, will Multiple image tasks are sent to thread pool;

Multiple image tasks are divided into multiple batches by the thread pool;

Call first thread concurrent in dossier table according to the voucher identification in each batch by the thread pool Search whether that there are corresponding dossiers;

If it is not, then call the second thread to carry out type conversion to the credential information in each batch by the thread pool, Obtain corresponding all original document information.

In one of the embodiments, before the acquisition image task, the method also includes:

Credentials file to be scanned is obtained, calls multithreading that the credentials file to be scanned is sent to printing by thread pool Server;

The credentials file to be scanned is scanned by the printing server, generates corresponding certificate image;

The certificate image is stored, after the certificate image stores successfully, extremely by the credential information typing In dossier table.

A kind of document video capturing device, described device include:

Communication module, for obtaining image task, the image task carries credential information, the credential information include with Card mark, is sent to thread pool for the image task;

Searching module, for calling first thread to be searched whether in dossier table in the presence of described by the thread pool The corresponding dossier of voucher identification;

Conversion module is used for if it is not, then calling the second thread to carry out type to the credential information by the thread pool Conversion, obtains the corresponding all original document information of the voucher identification;

First obtains module, corresponding for calling second thread and preset interface to obtain all original document information Image;

Display module, for showing the corresponding image of all original document information.

In one of the embodiments, the conversion module be also used to by the thread pool call the second thread according to It demonstrate,proves relation table and the credential information is converted into level-one document information;Iterating through the thread pool calls the second thread to carry out class The step of type is converted, is converted to next stage document information for previous stage document information according to the voucher relation table, until obtaining When the corresponding all original document information of the voucher identification, preset interface is called to obtain the corresponding shadow of all original document information Picture.

Described device further includes the second acquisition module in one of the embodiments, for if so, according to the archives Record obtains corresponding certificate image;The second thread is called to carry out type conversion to the credential information by the thread pool, Obtain the corresponding all original document information of the voucher identification;Second thread and preset interface is called to obtain all originals The corresponding image of beginning document information;The certificate image and the corresponding image of all original document information are shown.

A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device realizes the step in above-mentioned each embodiment of the method when executing the computer program.

A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step in above-mentioned each embodiment of the method is realized when row.

Above-mentioned document image capturing method, apparatus, computer equipment and storage medium, by the way that credential information is sent to line Cheng Chi, by thread pool call first thread search dossier, if not finding dossier, call the second thread to It demonstrate,proves information and carries out type conversion.Thread pool reduces the lookup consumption of original document by calling different threads to carry out respective handling When.When not finding dossier, can call the second thread to credential information carry out type standard change, and then directly obtain with Card identifies corresponding all original documents, does not need the corresponding original document of the artificial voucher identification of lookup one by one.It effectively increases The acquisition efficiency of original document, and then improve the acquisition efficiency of document image.

Detailed description of the invention

Fig. 1 is the application scenario diagram of document image capturing method in one embodiment;

Fig. 2 is the flow diagram of document image capturing method in one embodiment;

Fig. 3 is to call the second thread to the stream of credential information progress type conversion steps by thread pool in one embodiment Journey schematic diagram;

Fig. 4 is the structural block diagram of document video capturing device in one embodiment;

Fig. 5 is the internal structure chart of computer equipment in one embodiment.

Specific embodiment

It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.

Document image capturing method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, eventually End 102 is communicated with server 104 by network by network.Terminal 102 sends image task to server 104.Service After device 104 receives image task, image task is parsed, credential information is obtained.Credential information can be bookkeeping voucher.With Demonstrate,proving information includes voucher identification.Credential information is sent to thread pool by server 104.Thread pool is as a kind of multiple threads shape Formula by the way that waiting task is added to queue during processing, and then creates corresponding thread and starts in queue automatically Waiting task.Server 104 calls first thread to search whether that there are voucher identifications in dossier table by thread pool Corresponding dossier.If it is not, then server by thread pool call the second thread to credential information carry out type conversion, obtain The corresponding all original document information of voucher identification.Server 104 calls preset interface, is obtained according to preset interface all original The corresponding image of document information.Server 104 shows the corresponding image of original document information.Wherein, terminal 102 can be with But it is not limited to various personal computers, laptop, smart phone, tablet computer and portable wearable device, is serviced Device 104 can be realized with the server cluster of the either multiple server compositions of independent server.

In one embodiment, as shown in Fig. 2, providing a kind of document image capturing method, it is applied to Fig. 1 in this way In server for be illustrated, comprising the following steps:

Step 202, image task is received, image task carries credential information, and credential information includes voucher identification, by image Task is sent to thread pool.

The image task that server receiving terminal is sent, parses image task, obtains credential information.Wherein, with Card information can be bookkeeping voucher.The form of credential information can there are many, either the credential information of default template form, It is also possible to the credential information of customized form.Credential information includes voucher identification.Voucher identification can be voucher ID (Identity document).Voucher be refer to for prove business item occur, clearly defining responsibilities, and be registered in account book, Written document with legal effect.Image task is sent to thread pool after obtaining image task by server.Thread pool As a kind of multiple threads form, by the way that waiting task is added to queue during processing, and then create corresponding Thread starts the waiting task in queue automatically.

Step 204, first thread is called to search whether that there are voucher identifications to correspond in dossier table by thread pool Dossier.If so, thening follow the steps 206.If it is not, thening follow the steps 208.

Step 206, corresponding certificate image is obtained according to dossier.

Step 208, it calls the second thread to carry out type conversion to credential information by thread pool, it is corresponding to obtain voucher identification All original document information.

Server obtains dossier table, and record has the voucher identification after filing in dossier table.Server passes through line Cheng Chi calls first thread to search whether that there are the corresponding dossiers of voucher identification in dossier table.If server passes through Thread pool calls first thread to find the corresponding dossier of voucher identification, then illustrates that the voucher identification has been filed.Service Device can obtain corresponding certificate image according to dossier in image system.Voucher after preserving filing in image system Identify corresponding certificate image.Remember if server calls first thread not find the corresponding archives of voucher identification by thread pool Record, then server calls the second thread to carry out type conversion to credential information by thread pool, and then it is corresponding to obtain voucher identification All original document information.Original document is the generation foundation of voucher, when auditing to voucher, can be corresponded to by obtaining All original document information, and then obtain the corresponding image of all original documents.

Step 210, the second thread and preset interface is called to obtain the corresponding image of all original document information.

Step 212, the corresponding image of all original document information is shown.

Server calls preset interface after obtaining the corresponding all original document information of voucher identification.Preset interface can To be image capturing interface.Server is by calling the second thread and preset interface to obtain all original lists in image system It is believed that ceasing corresponding image.If server does not find the corresponding dossier of voucher identification, only display is got all The corresponding image of original document information.If server finds the corresponding dossier of voucher identification, server will be according to shelves Case record obtains corresponding certificate image and the corresponding image of all original document information is shown.

It in conventional manner, is by manually obtaining the corresponding list of voucher identification one by one in the case where voucher is not filed According to image.And in the present embodiment, server calls first thread by the way that credential information is sent to thread pool, by thread pool Dossier is searched, if not finding dossier, the second thread is called to carry out type conversion to credential information.Thread pool is logical It crosses calling different threads and carries out respective handling, the lookup for reducing original document is time-consuming.Server is not finding dossier When, the second thread can be called to carry out type conversion to credential information, and then it is corresponding all original to directly obtain voucher identification Document does not need the corresponding original document of the artificial voucher identification of lookup one by one.The acquisition efficiency for effectively increasing original document, into And improve the acquisition efficiency of document image.

In one embodiment, as shown in figure 3, the above method further includes calling the second thread to believe voucher by thread pool Breath carries out the step of type conversion, specifically includes:

Step 302, call the second thread that credential information is converted to level-one document according to voucher relation table by thread pool Information.

Step 304, the step of thread pool calls the second thread to carry out type conversion is iterated through, it will according to voucher relation table Previous stage document information is converted to next stage document information, until being converted to the corresponding all original document information of voucher identification When, call preset interface to obtain the corresponding image of all original document information.

Server obtains voucher relation table.Voucher relation table can be DAP (Dynamic Accounting Platform, Dynamic accounting platform) relation table, it is also possible to BOTP (Business Object Transform Platform, data conversion Platform) relation table.The transformation rule between documentary and voucher is recorded in DAP relation table.For example, according to business paper generate with Card needs to define the corresponding voucher template of each document, and then realizes the conversion of business paper to voucher.Remember in BOTP relation table The transformation rule between documentary is recorded, for example, the transformation rule between expenses claim sheer and payment order.Server can according to Information is demonstrate,proved to select corresponding voucher relation table, to select corresponding transformation rule.

There are level relations between the corresponding all original document information of voucher identification.Level relation be also possible to upstream with Relationship between downstream.Server can call the second thread by iterating through thread pool when carrying out credential information conversion The step of carrying out type conversion, is converted to next stage document information for previous stage document information, until it is corresponding to obtain voucher identification All original document information.Specifically, it is corresponding according to credential information can to first pass through thread pool the second thread of calling for server Transformation rule credential information is converted into level-one document information.After server is converted to level-one document information, it can pass through Thread pool calls the second thread to be converted to level-one document information (previous stage) according to the corresponding transformation rule of level-one document information Second level document information (next stage) iterates through the step of thread pool calls the second thread to carry out type conversion, until calling the Two threads are converted to the corresponding all original document information of voucher identification.Wherein, level-one document information can be credential information Upstream, level-one document information can be the downstream of second level document information.Second level document information can be credential information upstream Upstream.The rank of the corresponding all original document information of credential information may include level-one, second level, three-level etc., to original document The number of levels of information is not construed as limiting.When server finds the corresponding all original document information of credential information, call pre- If interface obtains the corresponding image of the corresponding all original document information of credential information.

For example, server obtains sale outbound list, sale outbound list is document.When server calls second by thread pool When thread carries out type conversion to sale outbound list, the corresponding transformation rule of sale outbound list is obtained in BOTP relation table.Clothes Business device is changed to sales slip for outbound single-turn is sold according to the transformation rule got.And then server obtains in BOTP relation table Sales slip is converted to sales order according to the corresponding transformation rule of sales slip by the corresponding transformation rule of sales slip.Server obtains The corresponding all upstream document information of the sale outbound list got can be sales slip, sales order.

For another example, server obtains bookkeeping voucher, when server calls the second thread to carry out bookkeeping voucher by thread pool When type is converted, the corresponding transformation rule of bookkeeping voucher is searched in DAP relation table.Server is according to corresponding turn of bookkeeping voucher It changes rule and bookkeeping voucher is converted into corresponding expenses claim sheer.It is corresponding that server obtains expenses claim sheer in BOTP relation table Transformation rule, expenses claim sheer is converted into corresponding payment order.The bookkeeping voucher that server is got it is corresponding it is all on Trip document information can be expenses claim sheer, payment order.

In the present embodiment, server is to call the second thread to be converted to voucher according to voucher relation table by thread pool Identify corresponding all rank original document information.It does not need manually to search voucher identification pair one by one according to the mode of associated invoice The original document answered further improves the acquisition efficiency of original document, and then effectively increases the acquisition efficiency of document image.

In one embodiment, the above method further include: if so, obtaining corresponding certificate image according to dossier; It calls the second thread to carry out type conversion to credential information by thread pool, obtains the corresponding all original document letters of voucher identification Breath;The second thread and preset interface is called to obtain the corresponding image of all original document information;By certificate image and own The corresponding image of original document information is shown.

After the credential information that server will acquire is sent to thread pool, server calls first thread by thread pool Search whether that there are the corresponding dossiers of voucher identification in dossier table.If it is corresponding that server finds voucher identification Dossier, then server obtains corresponding certificate image according to dossier.Server passes through after getting certificate image Thread pool calls the second thread to carry out type conversion to credential information, and then obtains the corresponding all original document letters of voucher identification Breath.In the filed situation of voucher identification, server can obtain corresponding certificate image according to the credential information got And the image of all original documents.The video generation mesh of certificate image and all original documents that server will acquire Record, is shown.

In the present embodiment, it if server finds the corresponding dossier of voucher identification, is obtained according to dossier Corresponding certificate image.After obtaining certificate image, server calls the second thread to carry out class to credential information by thread pool Type conversion, and then obtain the corresponding all original document information of voucher identification.Server calls multithreading to carry out by thread pool Image capturing, to effectively increase the acquisition efficiency of document image.

In one embodiment, the above method further include: obtain multiple image tasks, each image task carries voucher letter Breath, credential information includes voucher identification, and multiple image tasks are sent to thread pool;Multiple image tasks are drawn by thread pool It is divided into multiple batches;Call first thread concurrent in dossier table according to the voucher identification in each batch by thread pool Search whether that there are corresponding dossiers;If it is not, then calling the second thread to believe the voucher in each batch by thread pool Breath carries out type conversion, obtains corresponding all original document information.

After server receives multiple image tasks, multiple image tasks are parsed, obtain corresponding voucher letter Breath, credential information includes voucher identification.Multiple image tasks are divided into multiple batches by thread pool by server, call first Thread concurrently searches whether that there are corresponding dossiers according to the voucher identification in each batch in dossier table.Service Device can effectively improve the acquisition efficiency of document image by carrying out batch processing to multiple image tasks.

In one embodiment, before obtaining image task, the above method further include: credentials file to be scanned is obtained, Call multithreading that credentials file to be scanned is sent to printing server by thread pool;By printing server to it is to be scanned with Card file is scanned, and generates corresponding certificate image;Certificate image is stored, it, will after certificate image stores successfully Credential information typing is into dossier table.

Server can also carry out filing processing to certificate image before obtaining image task.Server obtains terminal The credentials file to be scanned uploaded, is sent to thread pool for credentials file to be scanned, calls multithreading to treat by thread pool and sweeps It retouches credentials file and carries out batch processing, credentials file to be scanned is sent to printing server.Server passes through printing server It scans credentials file to be scanned and generates certificate image, certificate image can be the file of PDF format.Server is according to printing ground Location, type of credentials and voucher identification determine the image mark of certificate image.Server will be in image mark and certificate image Image system is reached to be stored.After certificate image stores successfully, server is by credential information typing into dossier table. Credential information includes voucher identification.After server gets image task, can according to voucher identification in dossier table into Row inquiry.

In the present embodiment, server is conducive to subsequent carry out image capturing by carrying out filing processing to certificate image.

It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.

In one embodiment, as shown in figure 4, providing a kind of document video capturing device, comprising: communication module 402, Searching module 404, conversion module 406, first obtain module 408 and display module 410, in which:

Communication module 402, for obtaining image task, image task carries credential information, and credential information includes voucher mark Know, image task is sent to thread pool.

Searching module 404, for calling first thread to search whether that there are vouchers in dossier table by thread pool Identify corresponding dossier.

Conversion module 406, be used for if it is not, then by thread pool call the second thread to credential information progress type conversion, Obtain the corresponding all original document information of voucher identification.

First obtains module 408, corresponding for calling the second thread and preset interface to obtain all original document information Image.

Display module 410, for showing the corresponding image of all original document information.

In one embodiment, conversion module 406 is also used to call the second thread according to voucher relation table by thread pool Credential information is converted into level-one document information;Iterate through the step of thread pool calls the second thread to carry out type conversion, root Previous stage document information is converted into next stage document information according to voucher relation table, until obtaining the corresponding all originals of voucher identification When beginning document information, preset interface is called to obtain the corresponding image of all original document information.

In one embodiment, above-mentioned apparatus further include: second obtains module, for if so, being obtained according to dossier Take corresponding certificate image;It calls the second thread to carry out type conversion to credential information by thread pool, obtains voucher identification pair All original document information answered;The second thread and preset interface is called to obtain the corresponding image of all original document information; Certificate image and the corresponding image of all original document information are shown.

In one embodiment, above-mentioned apparatus further include:

Communication module 402, for obtaining multiple image tasks, each image task carries credential information, credential information packet Include voucher identification.

Division module is divided multiple image tasks by thread pool for multiple image tasks to be sent to thread pool For multiple batches.

Searching module 404, for calling first thread according to the voucher identification in each batch in archives by thread pool Concurrently search whether that there are corresponding dossiers in record sheet.

Conversion module 406, for if it is not, then by thread pool call the second thread to the credential information in each batch into The conversion of row type, obtains corresponding all original document information.

In one embodiment, above-mentioned apparatus further include:

Sending module calls multithreading by credentials file to be scanned for obtaining credentials file to be scanned by thread pool It is sent to printing server.

Scan module generates corresponding voucher shadow for being scanned by printing server to credentials file to be scanned Picture.

Profiling module, for storing certificate image, after certificate image stores successfully, extremely by credential information typing In dossier table.

Specific about document video capturing device limits the limit that may refer to above for document image capturing method Fixed, details are not described herein.Modules in above-mentioned document video capturing device can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.

In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 5.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is for storing certificate image and document image.The network interface of the computer equipment is used for and outside Terminal passes through network connection communication.To realize a kind of document image capturing method when the computer program is executed by processor.

It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.

In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with Computer program, the processor perform the steps of the image task that receives when executing computer program, image task carries voucher Information, credential information include voucher identification, and image task is sent to thread pool;Call first thread in archives by thread pool Search whether that there are the corresponding dossiers of voucher identification in record sheet;If so, obtaining corresponding voucher according to dossier Image;If it is not, then calling the second thread to carry out type conversion to credential information by thread pool, the corresponding institute of voucher identification is obtained There is original document information;The second thread and preset interface is called to obtain the corresponding image of all original document information;To own The corresponding image of original document information is shown.

In one embodiment, it is also performed the steps of when processor executes computer program and calls the by thread pool Credential information is converted to level-one document information according to voucher relation table by two threads;Iterate through thread pool call the second thread into The step of row type is converted, is converted to next stage document information for previous stage document information according to voucher relation table, until obtaining When the corresponding all original document information of voucher identification, preset interface is called to obtain the corresponding image of all original document information.

In one embodiment, it also performs the steps of when processor executes computer program if so, being remembered according to archives Record obtains corresponding certificate image;It calls the second thread to carry out type conversion to credential information by thread pool, obtains voucher mark Know corresponding all original document information;The second thread and preset interface is called to obtain the corresponding shadow of all original document information Picture;Certificate image and the corresponding image of all original document information are shown.

In one embodiment, it is also performed the steps of when processor executes computer program and obtains multiple image tasks, Each image task carries credential information, and credential information includes voucher identification, and multiple image tasks are sent to thread pool;Pass through Multiple image tasks are divided into multiple batches by thread pool;Call first thread according to the voucher in each batch by thread pool Mark concurrently searches whether that there are corresponding dossiers in dossier table;If it is not, then calling the second line by thread pool Journey carries out type conversion to the credential information in each batch, obtains corresponding all original document information.

In one embodiment, it is also performed the steps of when processor executes computer program and obtains voucher text to be scanned Part calls multithreading that credentials file to be scanned is sent to printing server by thread pool;It is treated and is swept by printing server It retouches credentials file to be scanned, generates corresponding certificate image;Certificate image is stored, when certificate image stores successfully Afterwards, by credential information typing into dossier table.

In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of the image task that receives when being executed by processor, image task carries credential information, credential information packet Voucher identification is included, image task is sent to thread pool.Calling first thread to search in dossier table by thread pool is It is no that there are the corresponding dossiers of voucher identification;If so, obtaining corresponding certificate image according to dossier;If it is not, then leading to Crossing thread pool calls the second thread to carry out type conversion to credential information, obtains the corresponding all original document letters of voucher identification Breath;The second thread and preset interface is called to obtain the corresponding image of all original document information;By all original document information Corresponding image is shown.

In one embodiment, it also performs the steps of when computer program is executed by processor and is called by thread pool Credential information is converted to level-one document information according to voucher relation table by the second thread;It iterates through thread pool and calls the second thread The step of carrying out type conversion, is converted to next stage document information for previous stage document information according to voucher relation table, until When all original document information corresponding to voucher identification, preset interface is called to obtain the corresponding shadow of all original document information Picture.

In one embodiment, it also performs the steps of when computer program is executed by processor if so, according to archives Record obtains corresponding certificate image;It calls the second thread to carry out type conversion to credential information by thread pool, obtains voucher Identify corresponding all original document information;The second thread and preset interface is called to obtain all original document information corresponding Image;Certificate image and the corresponding image of all original document information are shown.

In one embodiment, it is also performed the steps of when computer program is executed by processor and obtains multiple images times Business, each image task carry credential information, and credential information includes voucher identification, and multiple image tasks are sent to thread pool; Multiple image tasks are divided into multiple batches by thread pool;Call first thread according in each batch by thread pool Voucher identification concurrently searches whether that there are corresponding dossiers in dossier table;If it is not, then calling the by thread pool Two threads carry out type conversion to the credential information in each batch, obtain corresponding all original document information.

In one embodiment, it is also performed the steps of when computer program is executed by processor and obtains voucher to be scanned File calls multithreading that credentials file to be scanned is sent to printing server by thread pool;It is treated by printing server Scanning credentials file is scanned, and generates corresponding certificate image;Certificate image is stored, when certificate image stores successfully Afterwards, by credential information typing into dossier table.

Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..

Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.

The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种1688移动端采集系统

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!