Scanning file obtaining method, computer device and computer readable storage medium

文档序号:1937215 发布日期:2021-12-07 浏览:24次 中文

阅读说明:本技术 扫描文件获取方法、计算机装置及计算机可读存储介质 (Scanning file obtaining method, computer device and computer readable storage medium ) 是由 胡昌洪 张健 杨帮添 肖云 于 2021-08-30 设计创作,主要内容包括:本发明提供一种扫描文件获取方法、计算机装置及计算机可读存储介质,该方法包括影像系统向扫描设备发送第一文件扫描指令,驱动扫描设备执行扫描操作;扫描设备在完成一次扫描操作后,将扫描文件发送至本地计算机的扫描服务客户端,扫描服务客户端将扫描文件发送给影像系统;影像系统将扫描文件输出至本地计算机的浏览器的预览界面;扫描设备完成当前扫描操作后向扫描插件服务器发送第一扫描完成信息,扫描插件服务器向影像系统发送第二扫描完成信息。本发明还提供实现上述方法的计算机装置及计算机可读存储介质。本发明能够实现本地计算机、影像系统以及扫描设备之间的通信。(The invention provides a scanning file acquisition method, a computer device and a computer readable storage medium, wherein the method comprises the steps that an image system sends a first file scanning instruction to scanning equipment to drive the scanning equipment to execute scanning operation; after finishing one scanning operation, the scanning equipment sends a scanning file to a scanning service client of the local computer, and the scanning service client sends the scanning file to the image system; the image system outputs the scanned file to a preview interface of a browser of a local computer; and the scanning equipment sends first scanning completion information to the scanning plug-in server after finishing the current scanning operation, and the scanning plug-in server sends second scanning completion information to the image system. The invention also provides a computer device and a computer readable storage medium for realizing the method. The invention can realize the communication among the local computer, the image system and the scanning equipment.)

1. A scanned file acquisition method is characterized by comprising the following steps:

the image system sends a first file scanning instruction to scanning equipment and drives the scanning equipment to execute scanning operation;

after completing one scanning operation, the scanning equipment sends a scanning file to a scanning service client of a local computer, and the scanning service client sends the scanning file to the image system;

the image system outputs the scanning file to a preview interface of a browser of a local computer;

and the scanning equipment sends first scanning completion information to a scanning plug-in server after finishing the current scanning operation, and the scanning plug-in server sends second scanning completion information to the image system.

2. The scan file acquiring method according to claim 1, wherein:

the sending of the scan file to the imaging system by the scan service client comprises: and the scanning service client side sends the scanning file to the image system by applying a WebSocket two-way communication protocol.

3. The scan file acquiring method according to claim 2, wherein:

and the scanning file sent to the image system by the scanning service client is a compressed scanning file.

4. The scan file acquiring method according to any one of claims 1 to 3, wherein:

before the image system sends a file scanning instruction to the scanning device, the local computer sends a second file scanning instruction to the image system.

5. The scan file acquiring method according to claim 4, wherein:

the local computer sending a second document scanning instruction to the imaging system includes: and sending a second file scanning instruction to the image system through the browser of the local computer.

6. The scan file acquiring method according to any one of claims 1 to 3, wherein:

and after receiving the scanning file, the image system stores the received scanning file to a file server.

7. The scan file acquiring method according to any one of claims 1 to 3, wherein:

and after receiving the second scanning completion information, the image system hangs the scanning file on a service carrier corresponding to the scanning file.

8. The scan file acquiring method according to claim 7, wherein:

and the electronic file data of the service carrier is stored in the image system.

9. Computer arrangement, characterized in that it comprises a processor and a memory, said memory storing a computer program that, when executed by the processor, carries out the steps of the scan file acquisition method according to any of claims 1 to 8.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements the steps of the scan file acquiring method according to any one of claims 1 to 8.

Technical Field

The invention relates to the technical field of scanned file processing, in particular to a scanned file acquisition method, a computer device and a computer readable storage medium for realizing the method.

Background

Communication between the scanning device and the computer is typically implemented based on a dedicated plug-in, such as the need to install an ActiveX plug-in on the local computer. When the scanning operation is needed, the local computer calls the ActiveX plug-in function to drive the scanning equipment to work, and obtains the scanning file from the scanning equipment.

Because the compatibility of the ActiveX plug-in is not good, browsers of some computers are not compatible with the plug-in, so that a local computer cannot drive scanning equipment, and scanning work is influenced. For this reason, chinese patent application publication No. CN112860336A discloses a method for scanning, previewing and uploading files of a Web application, in which after a Windows scanning service program is started, a WebSocket client sends scanning information to the Windows scanning service program; the Windows scanning service program finishes file scanning and returns a scanning file information list to the WebSocket client; the WebApi reads the returned scanning file information list to complete scanning preview of the file; and the WebApi reads the returned scanning file information list to finish uploading of file scanning data.

On the other hand, due to the need of internal management of an enterprise, different business systems are usually built, and a large number of documents are managed by a video system, for example, a large number of scan documents need to be saved in the video system. Because the image system also needs to communicate with other business systems, it relates to the communication between the local computer, the image system and the scanning device, and how to realize the communication between the image system and the local computer, the scanning device becomes the problem to be solved urgently.

Although the method disclosed in CN112860336A can implement communication with a scanning device without installing a dedicated plug-in a local computer, the method only implements communication between the local computer and the scanning device, but for multiple systems in an enterprise, for example, in the case of an account reporting system, a fund management system, an accounting system, an imaging system, and a scanning device, the method cannot implement quick association between an electronic file formed by a paper ticket and service information of each service system, and cannot perform uniform management on the electronic file, which affects service processing and data consistency.

Disclosure of Invention

The first purpose of the present invention is to provide a scanned file acquisition method which can conveniently realize communication between a local computer, an imaging system and a scanning device.

The second objective of the present invention is to provide a computer device for implementing the above scanned file acquisition method.

A third object of the present invention is to provide a computer-readable storage medium for implementing the scan file acquiring method.

In order to achieve the first object of the present invention, the method for acquiring a scanned file includes that an image system sends a first file scanning instruction to a scanning device, and drives the scanning device to execute a scanning operation; after finishing one scanning operation, the scanning equipment sends a scanning file to a scanning service client of the local computer, and the scanning service client sends the scanning file to the image system; the image system outputs the scanned file to a browser of a local computer to realize preview; and the scanning equipment sends first scanning completion information to the scanning plug-in server after finishing the current scanning operation, and the scanning plug-in server sends second scanning completion information to the image system.

According to the scheme, the scanning service client is arranged on the local computer, the communication between the local computer and the scanning equipment is realized through the scanning service client, the communication between the local computer and the image system is also realized, the communication among the local computer, the scanning equipment and the image system can be established, and the work of the scanning equipment is smoother.

In a preferred embodiment, the sending the scan file to the imaging system by the scan service client comprises: the scanning service client side sends the scanning file to the image system by applying a WebSocket two-way communication protocol.

Therefore, the scanning service client communicates with the image system through the WebSocket and other protocols, the realization difficulty of the scanning service client can be simplified, and the convenience of the development of the scanning service client is improved.

The further scheme is that the scanning file sent by the scanning service client to the image system is a compressed scanning file.

Therefore, the data volume of transmission can be reduced by compressing the scanning file, thereby reducing the occupied bandwidth during data transmission and improving the speed of transmitting the scanning file to the image system.

The local computer sends a second file scanning instruction to the image system before the image system sends a file scanning instruction to the scanning equipment; preferably, the second file scanning instruction is sent to the image system through a browser of the local computer.

Therefore, the computer can send the second file scanning instruction to the image system through the browser, so that the image system is triggered to send the first file scanning instruction to the scanning device, and finally the user drives the scanning device to work.

In a further aspect, the image system receives the scan file and stores the received scan file in a file server.

Therefore, the image system stores the scanned file uniformly through the file server, and can facilitate subsequent operations such as scanned file searching, business association and the like, for example, when the business system needs to acquire the scanned file from the image system, the related scanned file can be quickly acquired from the file server through the query function provided by the image system.

The image system receives the second scanning completion information, and then hangs the scanning file on the service carrier, and the electronic file data of the service carrier is stored in the image system, and the association relationship between the electronic file data and the service carrier is also stored in the image system.

Therefore, the scanned file and the corresponding service carrier are stored in a related manner, for example, the scanned file and the invoice and other posting evidence corresponding to the scanned file are stored together, so that the invoice and the like can be conveniently subjected to operations of accounting, checking and the like in the follow-up process.

In order to achieve the second object, the present invention provides a computer apparatus including a processor and a memory, wherein the memory stores a computer program, and the computer program implements the steps of the scan file acquiring method when executed by the processor.

To achieve the third objective, the present invention provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the scan file acquiring method.

Drawings

Fig. 1 is a block diagram of the structures of the modules of the embodiment of the scanned file acquisition method according to the present invention.

FIG. 2 is a flowchart of a scanned file acquisition method according to an embodiment of the present invention.

The invention is further explained with reference to the drawings and the embodiments.

Detailed Description

The scanning file acquisition method is used for communication among the local computer, the image system and the scanning equipment, and particularly the local computer drives the scanning equipment to execute scanning operation through the operation of the image system. The local computer device is provided with a processor and a memory, wherein the memory is stored with a computer program, and the processor realizes the scan file acquisition method by executing the computer program.

The embodiment of the method for acquiring the scanned file comprises the following steps:

referring to fig. 1, the present embodiment relates to a local computer 10, an imaging system 20 and a scanning device 30, where the local computer 10 runs on a browser 11 and a scanning service client 12, the local computer 10 may directly communicate with the imaging system 20, for example, the browser 11 may send an instruction to the imaging system 20 and receive data transmitted by the imaging system 20, the imaging system 20 may send an instruction to the scanning device 30, and the scanning device 30 may send a scan file to the scanning service client 12.

The following describes the process of acquiring the scan file in this embodiment with reference to fig. 2. First, when a user needs to acquire a scanned file, the browser 11 is run on the local computer 10, and an instruction, i.e., the process a shown in fig. 1, is sent to the imaging system through the browser 11, for example, a second file scanning instruction is sent to the imaging system, and at this time, the imaging system 20 acquires the instruction sent by the browser 11 and performs an operation that needs to perform scanning.

In this embodiment, the local computer 10 and the imaging system 20 can communicate with each other through a network, for example, the local computer 10 and the imaging system 20 are respectively disposed in different areas, and the local computer 11 does not directly drive the scanning device 30 but the imaging system 20 drives the scanning device based on the consideration of data security and the application of forming an electronic file and integrating with a business association. Therefore, after the imaging system 20 receives the second document scanning command, step S1 is executed to send the first document scanning command to the scanning device 30, for example, the process B shown in fig. 1.

In this embodiment, the imaging system 20 and the scanning device 30 may communicate with each other through a WebSocket bidirectional communication protocol, for example, the imaging system 20 sends a first file scanning instruction to the scanning device 30 through the WebSocket protocol. Since the websocket protocol is a general data communication protocol, data communication between the imaging system 20 and the scanning device 30 can be simplified and easily implemented.

Preferably, the first document scanning command sent by the imaging system 20 to the scanning device 30 includes a driving command of the scanning device 30, so as to drive the scanning device 30 to perform the scanning operation. When the scanning device 30 receives the driving instruction, it starts to perform a scanning operation, for example, scanning for a bill such as an invoice.

Then, the scanning device executes step S2, and after each scanning operation, the scanning device 30 will scan the file into the scanning service client 12 of the local computer 10, i.e. execute the process C shown in fig. 1. Specifically, after the scanning device 30 starts and executes the scanning operation, it will trigger the scanning monitoring program to monitor whether the current scanning operation is executed completely, and if the scanning operation is executed completely, the data obtained by scanning is transmitted to the scanning service client 12 of the local computer 10. The scanning device 30 can communicate with the local computer 10 through the network, and the scanning device 30 only transmits data obtained by scanning to the scanning service client 12 in one direction, but the scanning device 30 does not directly receive the instruction transmitted by the local computer 10.

Then, the local computer 10 executes step S3, performs processing such as conversion and compression on the data obtained by scanning by the scanning service client 12, and transmits the processed data to the video system 20 via the websocket protocol, that is, executes the process D shown in fig. 1. Since the scan file sent by the scanning device 30 is in byte mode, the imaging system 20 does not necessarily support a file displaying the format, and the scan service client 12 converts the scan file, for example, converts the format, so that the imaging system 20 can analyze the file. In addition, if the data size of the scan file is too large, the image system 20 receives a large file, which requires a large storage space to store the scan file, and a large bandwidth resource to transmit the scan file, and to solve the problem, the scan service client 12 compresses the scan file and sends the compressed scan file to the image system 20.

After receiving the scan file, the image system 20 stores the scan file in the file server. For example, the file server may be a server independent from the imaging system 20, and the imaging system 20 transmits the scan file to the file server via a network and stores the scan file in the file server. Of course, the file server may also be a part of the disk space of the server where the imaging system 20 is located, that is, the imaging system 20 stores the scanned file in its own server.

In order to facilitate the user to browse the document scanned by the scanning device 30, the imaging system 20 executes step S4 to output the scanned document to the preview interface of the imaging system 20. The imaging system 20 may obtain the scan file to be previewed from the file server, and the imaging system 20 may open the scan file since the scan file has undergone format conversion. If the scan file is a compressed file, the image system 20 further needs to decompress the scan file and display the decompressed scan file.

The browser 11 of the local computer 10 receives the information of the preview interface transmitted by the image system, for example, executes the process E of fig. 1. Preferably, the preview image sent by the video system 20 to the browser 11 is in an image format, such as JPG format, so that the local computer 10 can conveniently display the preview interface on the browser 20. In this way, the user can conveniently view the content scanned by the scanning device 30, for example, determine whether the content scanned by the scanning device 30 is wrong, or the scanning is unclear, etc.

Next, step S5 is executed, and the scanning device 30 determines whether the current scanning operation is completed, and if the scanning is completed, it considers that the current scanning operation is completed. At this time, the scanning device 20 will trigger the scanning device monitoring program, and the scanning device 30 sends the first scanning completion information to the scanning plug-in server to indicate that the current scanning job is completed. The scan plug-in server may be a remote server that communicates with multiple scanning devices and monitors the operation of each scanning device to determine if each scanning device is abnormal. However, the scan plug-in server receives the first scan completion information sent by the scanning device 30, knows that the scanning device 30 has completed the current scanning operation,

then, the scan plug-in server executes step S6 to send a second scan completion message to the imaging system to notify the imaging system 20 that the current scanning operation has been completed. In this way, the image system 20 knows that the currently received scan file is the last scan file, and stops the scan file receiving operation.

Finally, the imaging system 20 executes step S7 to attach the scan file to the service carrier, for example, to the service document. For example, if the currently scanned file is an invoice, the imaging system 20 obtains a scanned part of the invoice, and then links the scanned part of the invoice to a service carrier, that is, stores the association relationship between the scanned part of the invoice and the service carrier, so that the scanned file is associated with the service carrier. Preferably, the file server stores information of the service bearer associated with the scanned file, and when the imaging system 20 receives the second scanning completion information, the scanned file scanned at this time is stored in association with the associated service bearer.

In this embodiment, the imaging system 20 may implement multiple functions, for example, the basic functions of the imaging system 20 include electronic file collection, file storage, file online preview, and the like, where the electronic file collection includes obtaining a scanned file through the scanning device 30, for example, converting a paper file of a certificate such as an invoice into an electronic file, and storing the electronic file.

Moreover, the imaging system 20 may provide common services to a plurality of business systems, for example, business systems such as a financial system and a contract management system may access the common services, and these business systems may obtain corresponding electronic files, for example, a scanned part of a certain invoice, through the imaging system 20. Thus, a plurality of business systems can use the public service provided by the image system 20, thereby avoiding the repeated functions of the business system development, such as file uploading, file storage and the like, and simplifying the development difficulty of the plurality of business systems. In addition, since the image system 20 manages the electronic files in a unified manner, the same electronic file can be referred to for the same service, so that repeated scanning is avoided, the uniformity of the electronic files acquired by a plurality of service systems can be ensured, and the basic data used by the plurality of service systems is also ensured to be the same.

In addition, because the electronic files collected by the plurality of business systems are uniformly managed by the image system 20, the same file can be quickly quoted in the plurality of business systems and can be simultaneously retrieved on a business chain, for example, after the contract file is uploaded on the account reporting system, the contract can be checked in the fund payment system, the cooperative work of the plurality of business systems can be facilitated, and the operation efficiency in an enterprise can be improved.

The embodiment can realize the communication between the local computer, the image system and the scanning equipment, and the image system does not need to operate any plug-in, but the image system can realize the communication with the scanning equipment through the websocket protocol, so that the normal driving of the scanning equipment can be ensured.

The embodiment of the computer device comprises:

the computer device of this embodiment may be a PC or an intelligent terminal device, and the computer device includes a processor, a memory, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of the scan file acquiring method are implemented.

For example, a computer program may be partitioned into one or more modules that are stored in a memory and executed by a processor to implement the modules of the present invention. One or more of the modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the terminal device.

The Processor may be a Central Processing Unit (CPU), or may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the terminal device and connecting the various parts of the entire terminal device using various interfaces and lines.

The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the terminal device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.

Computer-readable storage medium embodiments:

the computer program stored in the computer device may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the processes in the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the scan file acquiring method.

Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.

Finally, it should be emphasized that the present invention is not limited to the above-described embodiments, such as the change of the format of the preview image provided by the video system, or the change of the type of the service bearer stored by the video system, and these changes should also be included in the protection scope of the present invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:可视化用户操作回溯方法、装置、计算机设备及存储介质

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!