Financial file scanning method and device, equipment and storage medium
By detecting and configuring available scanners on Linux systems, using the SANE protocol to realize scanning and content recognition of financial files, it solves the problem of insufficient scanner compatibility in Linux environment and improves the flexibility and compatibility of usage scenarios.
Patent Information
- Application Number
- CN202411643308.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-02-18
AI Technical Summary
Existing scanners cannot be directly supported on Linux systems, lack compatibility, and limit the use scenarios in Linux environments.
By detecting available scanners connected to Linux system, interact with the scanner using the SANE protocol, configure scanning settings parameters, and call the target scanner for scanning and content recognition of financial files.
It supports scanning and content recognition of financial files on Linux systems, improves compatibility, and provides a user-friendly setting interface for easy on-demand configuration.
Smart Images

Figure CN119484718A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for scanning financial documents. Background Art
[0002] With the advancement of information security and autonomous control strategies, the research and development and application of information technology equipment and systems are growing rapidly, and the autonomous control and security of information systems have become key issues. As a commonly used device in office and scientific research, scanners are particularly concerned about their compatibility and security.
[0003] A scanner is a device that converts paper documents or images into digital formats. Common scanner technologies include flatbed scanners, sheet-fed scanners, and portable scanners. The working principle of a scanner is usually based on optical scanning technology, which converts light reflections into electrical signals and ultimately into digital images. Currently, most scanners rely on the TWAIN protocol or WIA protocol of the Windows platform in terms of technical implementation and driver. They cannot be directly supported on Linux systems and lack compatibility, which limits the use of scanners in Linux environments. Summary of the invention
[0004] The present application provides a method, device, equipment and storage medium for scanning financial documents to solve at least one problem existing in the related art. The technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for scanning a financial document, comprising:
[0006] Detect available scanners connected to the Linux system;
[0007] In response to a configuration instruction of the setting interface, determining a target scanner and scanning setting parameters from the available scanners;
[0008] According to the scanning setting parameters and the SANE protocol, calling the target scanner to scan the financial document to obtain a scanning result;
[0009] According to the scanning setting parameters, the scanning result is subjected to content recognition of a specified type to obtain a recognition result, and the recognition result is uploaded.
[0010] In one embodiment, the detecting an available scanner connected to the Linux system comprises:
[0011] Detecting all scanners connected to the Linux system through the SANE protocol;
[0012] List available scanners according to all said scanners as well as the scanimage -L command.
[0013] In one embodiment, the configuration instruction includes a first instruction and a second instruction; and in response to the configuration instruction of the setting interface, determining the target scanner and the scanning setting parameters from the available scanners includes:
[0014] In response to the first instruction, determining a target scanner from the available scanners;
[0015] In response to the second instruction, setting a specified type identification option, a cache path, and a scanning parameter to obtain a scanning setting parameter;
[0016] The scanning parameters include at least one of image quality, scanning size, scanning color, scanning resolution and double-sided scanning.
[0017] In one embodiment, the step of calling the target scanner to scan the financial document according to the scanning setting parameters and the SANE protocol to obtain the scanning result includes:
[0018] Encapsulating the scanning parameters into a scanning request;
[0019] The target scanner is called through the scanimage function of the SANE protocol, and the scan request is transmitted to the target scanner, so that the target scanner scans the financial document and obtains the scan result stored in the cache path.
[0020] In one embodiment, performing content recognition of a specified type on the scan result according to the scan setting parameters to obtain the recognition result includes:
[0021] When the designated type recognition option is to set barcode recognition, the barcode content recognition is performed on the scan result through the barcode recognition library to obtain the first recognition content;
[0022] When the scanning result includes multiple scanned images, the target scanned image that identifies the first recognition content is named with the corresponding first recognition content, and the target scanned image is used as a first group, and other scanned images that do not identify the first recognition content are placed under the first group to obtain a first result;
[0023] When the scanning result includes multiple scanning pictures and the first recognition content is not recognized in each of the scanning pictures, all the scanning pictures are grouped as a second group to obtain a second result;
[0024] The recognition result includes the first result or the second result.
[0025] In one embodiment, the recognition result includes a third result; and the recognition of a specified type of content is performed on the scan result according to the scan setting parameters to obtain the recognition result includes:
[0026] When the designated type recognition option is to set invoice recognition, the scan result is subjected to OCR recognition to obtain invoice parameters, wherein the invoice parameters include at least one of an invoice code, an invoice number, an amount, a date, and a verification code;
[0027] The invoice parameters are formatted according to a specified format of the financial system to obtain a third result.
[0028] In one implementation, uploading the recognition result includes:
[0029] Establishing a connection with a financial system and detecting a match between the financial system and the identification result;
[0030] When the matching condition indicates a match, uploading the identification result to a designated server of the financial system;
[0031] After the upload is completed, the storage address of the designated server is notified to the financial system.
[0032] In a second aspect, an embodiment of the present application provides a scanning device for financial documents, comprising:
[0033] Detection module, used to detect available scanners connected to the Linux system;
[0034] A determination module, configured to determine a target scanner and scanning setting parameters from the available scanners in response to a configuration instruction of the setting interface;
[0035] A scanning module, used to call the target scanner to scan the financial document according to the scanning setting parameters and the SANE protocol to obtain a scanning result;
[0036] The recognition module is used to perform content recognition of a specified type on the scan result according to the scan setting parameters, obtain a recognition result, and upload the recognition result.
[0037] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement a method in any one of the above-mentioned embodiments.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, the method in any one of the above-mentioned embodiments is implemented.
[0039] The beneficial effects of the above technical solution include at least:
[0040] By detecting the available scanners connected to the Linux system, responding to the configuration instructions of the setting interface, determining the target scanner and the scanning setting parameters from the available scanners, and calling the target scanner to scan the financial documents according to the scanning setting parameters and the SANE protocol to obtain the scanning results, the interaction between the Linux system and the available scanners based on the SANE protocol is used to achieve the scanning of financial documents and improve compatibility. At the same time, a setting interface is provided to facilitate user configuration as needed; according to the scanning setting parameters, the scanning results are subjected to content recognition of a specified type to obtain the recognition results, and the recognition results are uploaded. Content recognition is added on the basis of scanning to enrich the functions.
[0041] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.
[0043] Figure 1 This is a schematic diagram of the steps of a method for scanning financial documents according to an embodiment of the present application;
[0044] Figure 2 A schematic diagram of a setting page for an embodiment of the present application;
[0045] Figure 3 This is a structural block diagram of a scanning device for financial documents according to an embodiment of the present application;
[0046] Figure 4 This is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0047] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0048] In the related art, SANE protocol is mostly implemented in command line mode, which is complicated to operate for ordinary users and lacks a graphical interface, resulting in poor user experience. Therefore, although SANE provides basic functions, its support for terminal users is still insufficient.
[0049] Reference Figure 1 , a flowchart of a method for scanning a financial document according to an embodiment of the present application is shown. The method for scanning a financial document may at least include steps S100-S400:
[0050] S100. Detect available scanners connected to the Linux system.
[0051] S200 , in response to a configuration instruction of a setting interface, determining a target scanner and scanning setting parameters from available scanners.
[0052] S300: According to the scanning setting parameters and the SANE protocol, the target scanner is called to scan the financial document to obtain the scanning result.
[0053] S400: According to the scan setting parameters, the scan result is subjected to content recognition of a specified type to obtain a recognition result, and the recognition result is uploaded.
[0054] In one implementation, the financial document scanning method of the embodiment of the present application can be implemented by installing a self-developed tool and driver in a Linux system, and interacting with the scanner through the sane protocol. The self-developed tool and driver can adapt to various hardware and protocols, provide a user-friendly setting interface and powerful function integration, and ensure that users can efficiently complete scanning tasks.
[0055] The technical solution of the embodiment of the present application detects the available scanners connected to the Linux system, responds to the configuration instructions of the setting interface, determines the target scanner and the scanning setting parameters from the available scanners, and calls the target scanner to scan the financial documents according to the scanning setting parameters and the SANE protocol to obtain the scanning results. Based on the interaction between the Linux system and the available scanners according to the SANE protocol, the scanning of financial documents is realized and the compatibility is improved. At the same time, a setting interface is provided to facilitate the user to configure as needed; according to the scanning setting parameters, the scanning results are subjected to the content recognition of the specified type to obtain the recognition results, and the recognition results are uploaded, and the content recognition is added on the basis of the scanning to enrich the functions.
[0056] In one embodiment, in step S100, all scanners connected to the Linux system are detected through the SANE protocol, and available scanners are listed according to all scanners and the scanimage-L command, and then all available scanners are listed in the setting page for user selection.
[0057] like Figure 2 As shown, in one embodiment, the configuration instruction includes a first instruction, a second instruction and other configuration instructions, and step S200 includes steps S210-S230:
[0058] S210 . In response to a first instruction, determine a target scanner from available scanners.
[0059] Alternatively, the user may input a first instruction and select from the "Select Scan Source" item on the setting page to determine the target scanner from the available scanners, such as selecting "EPSON DS-150" as the target scanner and the default scanner.
[0060] S220 . In response to the second instruction, set a specified type identification option, a cache path, and a scan parameter to obtain a scan setting parameter.
[0061] like Figure 2 As shown, optionally, the user can enter the second instruction to set the specified type recognition option, cache path, set scanning parameters, and pop up the setting box page item to obtain the scanning setting parameters. Exemplarily, the specified type recognition option can select barcode recognition or invoice recognition (not shown) of the barcode. If the barcode is checked, the barcode recognition is performed; the setting box page item pops up (if yes is selected, the setting page will pop up after each scan to configure the scanning parameters, cache path, specified type recognition options, etc., otherwise the default parameters are configured by default); the scanning parameters include image quality (the quality of the compressed image after scanning, that is, the quality of the scan result), scan size, scan color (automatic, black and white, color, grayscale, etc.), scan resolution (such as 200dpi, 300dpi, etc.), scan result size (such as A4, A5, letter paper, etc.) and at least one of the two-sided scans, and all the above set parameters constitute the final scanning setting parameters.
[0062] In addition, after scanning and obtaining the scanning results, the "Rescan" and "Replace Scan" buttons can also be displayed. Triggering the "Rescan" can continue to add new financial documents or rescan financial documents based on the current settings; triggering the "Replace Scan" button can convert paper financial documents or electronic financial documents (such as financial images) into electronic documents, and recognize and rearrange the text to obtain new scanning results.
[0063] In one implementation, step S300 includes steps S310-S320:
[0064] S310: Encapsulate the scanning parameters into the scanning request.
[0065] S320 , calling the target scanner through the scanimage function of the SANE protocol, and passing the scan request to the target scanner, so that the target scanner scans the financial document and obtains the scan result stored in the cache path.
[0066] In an embodiment of the present application, after determining the scanning parameters, the scanning parameters are encapsulated into a scanning request, and then the target scanner is called through the scanimage function of the SANE protocol, and the scanning request is passed to the target scanner. The target scanner responds to the scanning request and scans the financial documents that the user needs to scan based on the scanning parameters in the scanning request, and finally the scanning results saved in the cache path can be obtained.
[0067] In one implementation, in step S400, a specified type of content recognition is performed on the scan result according to the scan setting parameters to obtain a recognition result, where the recognition result includes a first result or a second result, specifically including steps S410-S430:
[0068] S410: When the designated type recognition option is to set barcode recognition, the barcode content is recognized on the scan result through the barcode recognition library to obtain a first recognition content.
[0069] Optionally, when the specified type recognition option is to set barcode recognition, based on the scan result, the barcode content of the scan result will be further recognized through the barcode recognition library ZXing, so as to obtain the first recognition content about the barcode in the scan result.
[0070] S420. When the scanning result includes multiple scanning pictures, the target scanning picture that recognizes the first recognition content is named with the corresponding first recognition content, and the target scanning picture is used as the first group, and other scanning pictures that do not recognize the first recognition content are placed under the first group to obtain a first result.
[0071] Optionally, when the scan result includes multiple scanned images, the target scanned image that identifies the first recognition content is named with the corresponding first recognition content, and the target scanned image is used as the first group, which is equivalent to classifying the scan results with barcodes into the first group; at the same time, other scanned images that do not identify the first recognition content are placed under the first group to obtain the first result. It should be noted that these other scanned images are not renamed to facilitate users to distinguish different scanned images with or without barcodes under the first group. In some embodiments, these other scanned images can be placed under another group, such as the second group, for distinction.
[0072] S430: When the scanning result includes multiple scanned images and the first identification content is not identified in each scanned image, all the scanned images are grouped as a second group to obtain a second result.
[0073] Optionally, when the scanning result includes multiple scanned images and the first identification content is not identified in each scanned image, that is, there is no barcode in all the scanned images, all the scanned images are taken as the second group to obtain the second result.
[0074] In one implementation, in step S400, a specified type of content recognition is performed on the scan result according to the scan setting parameters to obtain a recognition result, and the recognition result includes a third result. Step S400 may further include steps S440-S450:
[0075] S440. When the specified type recognition option is to set invoice recognition, perform OCR recognition on the scan result to obtain invoice parameters, which include at least one of an invoice code, an invoice number, an amount, a date, and a verification code.
[0076] Optionally, the invoice parameters include at least one of an invoice code, an invoice number, an amount, a date, and a check code; when the specified type recognition option is to set invoice recognition, the scan result is further subjected to OCR recognition using OCR technology to obtain the invoice parameters. It should be noted that if the scan result has multiple scanned images, the invoice parameters corresponding to different scanned images are stored separately to distinguish them and avoid confusion.
[0077] S450: Format the invoice parameters according to the specified format of the financial system to obtain a third result.
[0078] Optionally, a specified format supported by the financial system may be set in advance according to the requirements of the financial system, and then the invoice parameters may be formatted using the specified format to obtain a third result.
[0079] In one implementation, uploading the recognition result in step S400 includes steps S460-S480:
[0080] S460: Establish a connection with the financial system and detect the matching between the financial system and the identification result.
[0081] S470: When the matching situation indicates a match, the recognition result is uploaded to a designated server of the financial system.
[0082] Optionally, after determining the scanning results, a connection with the financial system is automatically established, and the matching between the financial system and the identification results is detected, for example, verifying whether the format of the scanning results matches the specification of the financial system, and whether the group files contained in the identification results, such as the first group, the second group, and the invoice parameters, do not exist in the financial system. If so, it is determined that the matching situation represents a match, and the identification results are uploaded to the designated server of the financial system (such as ftp, zos or ceph) for storage.
[0083] S480. After the upload is completed, the storage address of the designated server is notified to the financial system.
[0084] Optionally, after the upload is completed, the storage address of the designated server is notified to the financial system, so that the financial system can obtain data based on the storage address when it needs to query and use the data.
[0085] Reference Figure 3 , shows a structural block diagram of a scanning device for financial documents according to an embodiment of the present application, the device may include:
[0086] Detection module, used to detect available scanners connected to the Linux system;
[0087] A determination module, configured to determine a target scanner and scanning setting parameters from available scanners in response to a configuration instruction of the setting interface;
[0088] The scanning module is used to call the target scanner to scan the financial documents according to the scanning setting parameters and the SANE protocol to obtain the scanning results;
[0089] The recognition module is used to perform content recognition of a specified type on the scan result according to the scan setting parameters, obtain the recognition result, and upload the recognition result.
[0090] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and will not be repeated here.
[0091] Reference Figure 4 , shows a structural block diagram of an electronic device according to an embodiment of the present application, the electronic device includes: a memory 310 and a processor 320, the memory 310 stores instructions that can be run on the processor 320, and the processor 320 loads and executes the instructions to implement the financial document scanning method in the above embodiment. The number of the memory 310 and the processor 320 can be one or more.
[0092] In one embodiment, the electronic device also includes a communication interface 330 for communicating with external devices and performing data exchange transmission. If the memory 310, the processor 320 and the communication interface 330 are implemented independently, the memory 310, the processor 320 and the communication interface 330 can be interconnected through a bus and complete mutual communication. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0093] Optionally, in a specific implementation, if the memory 310, the processor 320 and the communication interface 330 are integrated on a chip, the memory 310, the processor 320 and the communication interface 330 can communicate with each other through an internal interface.
[0094] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the financial document scanning method provided in the above embodiment.
[0095] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.
[0096] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.
[0097] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced RISC machines (ARM) architecture.
[0098] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).
[0099] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0100] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0101] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0102] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0103] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0104] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0105] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0106] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for scanning financial documents, characterized in that: include: Detect available scanners connected to the Linux system; In response to a configuration instruction of the setting interface, determining a target scanner and scanning setting parameters from the available scanners; According to the scanning setting parameters and the SANE protocol, calling the target scanner to scan the financial document to obtain a scanning result; According to the scanning setting parameters, the scanning result is subjected to content recognition of a specified type to obtain a recognition result, and the recognition result is uploaded.
2. The method for scanning financial documents according to claim 1, characterized in that: The available scanners for detecting Linux systems connected include: Detecting all scanners connected to the Linux system through the SANE protocol; List available scanners according to all said scanners as well as the scanimage -L command.
3. The method for scanning financial documents according to claim 1 or 2, characterized in that: The configuration instruction includes a first instruction and a second instruction; the determining of a target scanner and a scanning setting parameter from the available scanners in response to the configuration instruction of the setting interface includes: In response to the first instruction, determining a target scanner from the available scanners; In response to the second instruction, setting a specified type identification option, a cache path, and a scanning parameter to obtain a scanning setting parameter; The scanning parameters include at least one of image quality, scanning size, scanning color, scanning resolution and double-sided scanning.
4. The method for scanning financial documents according to claim 3, characterized in that: The step of calling the target scanner to scan the financial document according to the scanning setting parameters and the SANE protocol to obtain the scanning result includes: Encapsulating the scanning parameters into a scanning request; The target scanner is called through the scanimage function of the SANE protocol, and the scan request is transmitted to the target scanner, so that the target scanner scans the financial document and obtains the scan result stored in the cache path.
5. The method for scanning financial documents according to claim 3, characterized in that: The performing of content recognition of a specified type on the scan result according to the scan setting parameters to obtain the recognition result includes: When the designated type recognition option is to set barcode recognition, the barcode content recognition is performed on the scan result through the barcode recognition library to obtain the first recognition content; When the scanning result includes multiple scanned images, the target scanned image that identifies the first recognition content is named with the corresponding first recognition content, and the target scanned image is used as a first group, and other scanned images that do not identify the first recognition content are placed under the first group to obtain a first result; When the scanning result includes multiple scanning pictures and the first recognition content is not recognized in each of the scanning pictures, all the scanning pictures are grouped as a second group to obtain a second result; The recognition result includes the first result or the second result.
6. The method for scanning financial documents according to claim 3, characterized in that: The recognition result includes a third result; the scanning result is subjected to content recognition of a specified type according to the scanning setting parameters, and the recognition result obtained includes: When the designated type recognition option is to set invoice recognition, the scan result is subjected to OCR recognition to obtain invoice parameters, wherein the invoice parameters include at least one of an invoice code, an invoice number, an amount, a date, and a verification code; The invoice parameters are formatted according to a specified format of the financial system to obtain a third result.
7. The method for scanning financial documents according to claim 3, characterized in that: The uploading of the recognition result comprises: Establishing a connection with a financial system and detecting a match between the financial system and the identification result; When the matching condition indicates a match, uploading the identification result to a designated server of the financial system; After the upload is completed, the storage address of the designated server is notified to the financial system.
8. A scanning device for financial documents, characterized in that: include: Detection module, used to detect available scanners connected to the Linux system; A determination module, configured to determine a target scanner and scanning setting parameters from the available scanners in response to a configuration instruction of the setting interface; A scanning module, used to call the target scanner to scan the financial document according to the scanning setting parameters and the SANE protocol to obtain a scanning result; The recognition module is used to perform content recognition of a specified type on the scan result according to the scan setting parameters, obtain a recognition result, and upload the recognition result.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.