Automatic report generation method and device based on digital certificate, equipment and medium

By automatically processing text information of digital vouchers and using identifier and placeholder code replacement technology, enterprises solve the problems of inefficiency and high error rate when processing diversified digital vouchers and report templates, and achieve fast and accurate automatic report generation .

CN119272746APending Publication Date: 2025-01-07GUIZHOU UNIVERSITY OF FINANCE AND ECONOMICS +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411241674.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

When companies process diverse digital vouchers and report templates, their manual filling is inefficient and error rate is high, and they cannot process large amounts of data vouchers quickly and accurately.

Method used

By obtaining the original text information in the digital credential image uploaded by the user, analyzing the service request instruction to select matching spreadsheets and report templates, using identifiers and placeholder codes to automatically replace text information, generate spreadsheet files and issue reports.

Benefits of technology

It realizes the automated processing of digital voucher data, improves the processing efficiency of various departments, avoids data filling errors and templates that are not corresponding to them, and improves the accuracy and efficiency of automatic report generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119272746A_ABST
    Figure CN119272746A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic report generation method and device based on a digital certificate, equipment and a medium. The method comprises the following steps: firstly, acquiring original text information in a digital certificate image uploaded by a user; analyzing a service request instruction sent by a user, and selecting a to-be-filled spreadsheet template and a to-be-issued report template which are matched with a current service request; capturing target text information from the original text information, replacing the captured target text information into the to-be-filled spreadsheet template, and generating a spreadsheet file containing the target text information; and automatically replacing each piece of target text information in the spreadsheet file into a specified position of the to-be-issued report template, and generating a final issued report. By implementing the method and the device, the key information in the digital certificate can be automatically filled into the selected spreadsheet template and the report template, so that the purpose of automatically generating the report is realized, and the digital certificate processing efficiency of each department in an enterprise is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of text processing, and in particular to a method, device, equipment and medium for automatically generating a report based on digital vouchers. Background Art

[0002] In the daily office process of an enterprise, according to different business needs, there are usually many digital vouchers from different sources, such as invoices, receipts, transport tickets, etc.; because the types of work required to be carried out by various departments in the enterprise for various digital vouchers generated by the business are not the same, such as: the finance department needs to be responsible for statistical data in the sales and purchase data voucher, and integrate it into a spreadsheet file; the quality inspection department needs to be responsible for filling the information in the spreadsheet file verified by the finance department into various reports to be issued for reporting.

[0003] However, at present, in response to the various digital certificates and report templates, various departments in various enterprises still process digital certificates manually: manually comparing the information in the digital certificates one by one and filling them into the spreadsheet, and manually filling each type of data in the spreadsheet into the report to be issued one by one. However, this manual filling method is inefficient and has a high error rate. When faced with a large number of data certificates, it is impossible to process them quickly and accurately. Therefore, how to efficiently and automatically fill various types of data in digital certificates into various spreadsheet files and reports to be issued according to business needs is an urgent problem that needs to be solved. Summary of the invention

[0004] The present invention provides a method, device, equipment and medium for automatically generating reports based on digital credentials. The method selects a template according to the user's business request instruction, and fills the acquired text information of the digital credential into the template to generate a corresponding report and an electronic spreadsheet file to achieve the purpose of automatic report generation, thereby effectively improving the efficiency of various departments within the enterprise in processing digital credentials.

[0005] An embodiment of the present invention provides a method for automatically generating a report based on a digital certificate, comprising:

[0006] Obtaining original text information in the digital certificate image uploaded by the user;

[0007] Parse the business request instruction sent by the user, and select the electronic form template to be filled and the report template to be issued that match the current business request; wherein the electronic form template to be filled records an identifier associated with the target text information to be captured and a first placeholder code for mapping the target text information to a preset position of the report template to be issued; and the report template to be issued records a second placeholder code corresponding to the first placeholder code;

[0008] Reading the electronic form template to be filled, capturing target text information associated with the identifier from the original text information, and replacing the captured target text information with the corresponding associated identifier to generate an electronic form file containing the target text information;

[0009] Matching is performed based on the first placeholder code recorded in the electronic spreadsheet file and the second placeholder code recorded in the report template to be issued, and each target text information is automatically replaced into the designated position of the report template to be issued; after completing the replacement operation of each target text information, a final report is generated.

[0010] Furthermore, the obtaining of original text information in the digital voucher image uploaded by the user includes:

[0011] Obtaining a digital credential image uploaded by a user;

[0012] Preprocessing the digital voucher image to obtain the preprocessed original text information;

[0013] The pre-processed digital voucher image is subjected to text extraction using a preset text extraction algorithm to obtain original text information.

[0014] Further, the parsing of the service request instruction sent by the user and selecting a to-be-filled electronic form template matching the current service request includes:

[0015] Parsing the service request instruction sent by the user to obtain first service information in the service request instruction; wherein the first service information includes first review information and first acceptance information;

[0016] Calling a preset electronic form template database, matching the first business information with the second business information of each pre-stored electronic form template in the electronic form template database; wherein the second business information includes second review information and second acceptance information;

[0017] A pre-stored electronic form template in which the second business information is consistent with the first business information is used as the electronic form template to be filled.

[0018] Furthermore, the parsing of the service request instruction sent by the user and selecting a report template to be issued that matches the current service request includes:

[0019] Parsing the service request instruction sent by the user to obtain first service information in the service request instruction; wherein the first service information includes first review information and first acceptance information;

[0020] Calling a preset report template database, matching the first business information with the third business information of each pre-stored report template in the report template database; wherein the third business information includes third review information and third acceptance information;

[0021] The pre-stored report template whose third business information is consistent with the first business information is used as the report template to be issued.

[0022] Further, the reading of the electronic form template to be filled, capturing target text information associated with the identifier from the original text information, and replacing the captured target text information with the corresponding associated identifier to generate an electronic form file containing the target text information includes:

[0023] Read the electronic form template to be filled, and obtain a number of identifiers in the electronic form template to be filled;

[0024] Using the plurality of identifiers as a guide, traversing the original text information, and capturing target text information associated with the identifiers;

[0025] For each captured target text information, searching the electronic form template to be filled to obtain the location of the identifier associated with the current target text information, and replacing the identifier at the current location with the current target text information;

[0026] After completing the replacement of each of the target text information, an electronic spreadsheet file containing the target text information is generated.

[0027] Furthermore, matching the first placeholder code recorded in the electronic spreadsheet file with the second placeholder code recorded in the report template to be issued, and automatically replacing each target text information into a specified position of the report template to be issued, includes:

[0028] For each target text information in the electronic spreadsheet file, the first placeholder code of the current target text information is matched with the second placeholder code in the report template to be issued one by one, and when it is recognized that the second placeholder code in the current matching operation is consistent with the first placeholder code of the current target text information, the second placeholder code in the current matching operation is replaced with the current target text information.

[0029] Furthermore, the parsing of the service request instruction sent by the user also includes:

[0030] Parse the business request instruction sent by the user and obtain the archive path information;

[0031] After the final report is generated, it also includes:

[0032] Retrieving the archive path information;

[0033] According to the archive path information, the issued report and the electronic spreadsheet file are saved to the designated archive path in the archive path information.

[0034] An embodiment of the present invention also provides a report automatic generation device based on digital vouchers, comprising: an original text information acquisition module, a template selection module, an electronic spreadsheet file generation module, and a report generation module;

[0035] The original text information acquisition module is used to acquire the original text information in the digital voucher image uploaded by the user;

[0036] The template selection module is used to parse the business request instruction sent by the user, and select the electronic form template to be filled and the report template to be issued that match the current business request; wherein the electronic form template to be filled records an identifier associated with the target text information to be captured and a first placeholder code for mapping the target text information to a preset position of the report template to be issued; the report template to be issued records a second placeholder code corresponding to the first placeholder code;

[0037] The electronic form file generation module is used to read the electronic form template to be filled, capture the target text information associated with the identifier from the original text information, and replace the captured target text information with the corresponding associated identifier to generate an electronic form file containing the target text information;

[0038] The report generation module is used to match the first placeholder code recorded in the electronic spreadsheet file and the second placeholder code recorded in the report template to be issued, and automatically replace each target text information into the specified position of the report template to be issued; after completing the replacement operation of each target text information, a final report is generated.

[0039] The present application also provides a terminal device, including:

[0040] one or more processors;

[0041] A memory, coupled to the processor, for storing one or more programs;

[0042] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for automatically generating reports based on digital credentials as described in the above-mentioned embodiment of the invention.

[0043] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for automatically generating a report based on a digital credential as described in the above-mentioned embodiment of the invention is implemented.

[0044] The following beneficial effects are achieved by implementing the present invention:

[0045] The present invention provides a method, device, equipment and medium for automatically generating reports based on digital credentials. The method obtains original text information in a digital credential image uploaded by a user; and parses a business request instruction sent by the user to select an electronic spreadsheet template to be filled and a report template to be issued that match the current business request; thereby, by obtaining the user's business request instruction, the corresponding electronic spreadsheet file to be filled and the report template to be issued are automatically selected, thereby avoiding the situation where data cannot be fully entered due to inconsistency between the content of the spreadsheet file and the report template when the departments are connected; then the selected electronic spreadsheet template to be filled is read to obtain several identifiers in the electronic spreadsheet template to be filled, and then the target text information associated with the identifier in the electronic spreadsheet template to be filled is captured from the original text information, and the captured target text information is replaced with the corresponding associated identifier to generate a report. A spreadsheet file containing the target text information; thereby, by screening the target text information in the data voucher and automatically filling the target text information into the spreadsheet template according to the identifier, the purpose of automatically generating a spreadsheet file containing user content requirements is achieved; at the same time, according to the first placeholder code recorded in the spreadsheet file and the second placeholder code recorded in the report template to be issued, each target text information is automatically replaced into the specified position of the report template to be issued, and after completing the replacement operation of each target text information, a final report is generated; thereby, the target text information in the spreadsheet file is automatically filled into the report template to be issued through the placeholder code rule, so as to realize automatic report generation, effectively avoid the occurrence of data filling errors, template mismatch, etc., and through automatic identification and automatic filling, effectively improve the efficiency of various departments in the enterprise in handling digital vouchers. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the implementation manner will be briefly introduced below. Obviously, the drawings described below are only some implementation manners of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 It is a flowchart of a method for automatically generating a report based on a digital credential provided in a certain embodiment of the present application;

[0048] Figure 2 It is a structural schematic diagram of a report automatic generation device based on digital credentials provided in a certain embodiment of the present application;

[0049] Figure 3 It is a structural diagram of a terminal device provided in a certain embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0052] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0053] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0054] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0055] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).

[0056] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0057] See also Figure 1 , is a flow chart of a method for automatically generating a report based on a digital credential provided by an embodiment of the present invention, comprising:

[0058] S1. Obtaining original text information in the digital voucher image uploaded by the user;

[0059] In a preferred embodiment, the step of obtaining the original text information in the digital voucher image uploaded by the user includes:

[0060] Obtaining a digital credential image uploaded by a user;

[0061] Preprocessing the digital voucher image to obtain the preprocessed original text information;

[0062] Performing text extraction on the preprocessed digital voucher image using a preset text extraction algorithm to obtain original text information;

[0063] Specifically, users can upload corresponding digital credential images according to business requirements;

[0064] It should be noted that the digital vouchers include electronic invoices, financial electronic bills, electronic tickets, electronic itineraries, electronic customs payment slips, and electronic bank receipts, etc.

[0065] Then, the digital credential image uploaded by the user needs to be preprocessed, including but not limited to binarization, denoising, image enhancement, image correction, etc.: By preprocessing the digital credential image, errors in subsequent extraction of original text information can be reduced;

[0066] Specifically, after the original text information is extracted, the pre-processed digital voucher image is subjected to text extraction by a preset text extraction algorithm to obtain the original text information;

[0067] It should be noted that this application does not limit the preset text extraction algorithm.

[0068] S2. Parse the business request instruction sent by the user, and select an electronic form template to be filled and a report template to be issued that match the current business request; wherein the electronic form template to be filled records an identifier associated with the target text information to be captured and a first placeholder code for mapping the target text information to a preset position of the report template to be issued; and the report template to be issued records a second placeholder code corresponding to the first placeholder code;

[0069] In a preferred embodiment, the step of parsing the service request instruction sent by the user and selecting an electronic form template to be filled that matches the current service request includes:

[0070] Parsing the service request instruction sent by the user to obtain first service information in the service request instruction; wherein the first service information includes first review information and first acceptance information;

[0071] Calling a preset electronic form template database, matching the first business information with the second business information of each pre-stored electronic form template in the electronic form template database; wherein the second business information includes second review information and second acceptance information;

[0072] Using a pre-stored electronic form template in which the second business information is consistent with the first business information as an electronic form template to be filled;

[0073] Specifically, the user may select a corresponding business request according to current business needs; the user may fill in the first review information (i.e., relevant information about the review process) and the first acceptance information (i.e., relevant information about the acceptance process), thereby generating a business request instruction including the first review information and the first acceptance information;

[0074] Specifically, the first audit information includes but is not limited to: (1) audit content, which refers to the specific matters or materials that need to be reviewed (i.e., the type of digital certificate), such as financial statements, contracts, application materials, etc.; (2) audit department, which refers to the department that conducts content review of the digital certificate; (3) auditor, which refers to the person responsible for performing the audit work;

[0075] Specifically, the first acceptance information includes but is not limited to: (1) acceptance department, which refers to the department that accepts the content of the digital certificate; (2) acceptance personnel, which refers to the personnel responsible for executing the acceptance work;

[0076] In an illustrative manner, according to the first business information obtained by parsing, a preset electronic form template database is called to match the first business information with the second business information of each pre-stored electronic form template in the electronic form template database;

[0077] Specifically, the preset electronic form template database stores a plurality of electronic form templates and second business information associated with the electronic form templates; wherein, the second business information composed of different second review information and different second acceptance information corresponds to different electronic form templates; thus, the electronic form templates can be automatically matched according to different business requirements, avoiding the inconvenience caused by manual template selection;

[0078] Specifically, a pre-stored electronic form template in which the second business information is consistent with the first business information is used as the electronic form template to be filled.

[0079] In a preferred embodiment, the parsing of the service request instruction sent by the user and selecting a report template to be issued that matches the current service request includes:

[0080] Parsing the service request instruction sent by the user to obtain first service information in the service request instruction; wherein the first service information includes first review information and first acceptance information;

[0081] Calling a preset report template database, matching the first business information with the third business information of each pre-stored report template in the report template database; wherein the third business information includes third review information and third acceptance information;

[0082] Using a pre-stored report template in which the third business information is consistent with the first business information as a report template to be issued;

[0083] Illustratively, according to the third business information obtained through analysis, a preset report template database is called to match the first business information with the third business information of each pre-stored report template in the report template database;

[0084] Specifically, the preset report template database stores a number of report templates and third business information associated with the report templates; wherein, the third business information composed of different third review information and different third acceptance information corresponds to different report templates; thus, the report templates can be automatically matched according to different business requirements, avoiding the inconvenience caused by manual selection of report templates;

[0085] Specifically, a pre-stored report template in which the third business information is consistent with the first business information is used as a report template to be issued.

[0086] In order to subsequently fill the extracted original text information into the selected electronic spreadsheet template to be filled, the electronic spreadsheet template to be filled includes an identifier associated with the target text information to be captured; and a first placeholder code for mapping the target text information to a preset position of the report template to be issued; in order to automatically fill the target text information of the electronic spreadsheet template to be filled into the corresponding position of the report template to be issued, the report template to be issued records a second placeholder code corresponding to the first placeholder code.

[0087] It should be noted that the target text information is the key information that the user needs to extract from the current digital certificate according to business needs; while the original text information contains all the information of the current digital certificate.

[0088] S3, reading the electronic form template to be filled, capturing the target text information associated with the identifier from the original text information, and replacing the captured target text information with the corresponding associated identifier to generate an electronic form file containing the target text information;

[0089] In a preferred embodiment, the step of reading the electronic form template to be filled, capturing target text information associated with the identifier from the original text information, and replacing the captured target text information with the corresponding associated identifier to generate an electronic form file containing the target text information includes:

[0090] Read the electronic form template to be filled, and obtain a number of identifiers in the electronic form template to be filled;

[0091] Using the plurality of identifiers as a guide, traversing the original text information, and capturing target text information associated with the identifiers;

[0092] For each captured target text information, searching the electronic form template to be filled to obtain the location of the identifier associated with the current target text information, and replacing the identifier at the current location with the current target text information;

[0093] After completing the replacement of each of the target text information, generating an electronic spreadsheet file containing the target text information;

[0094] Specifically, after selecting the electronic form template to be filled, it is necessary to read the electronic form template to be filled, and then obtain several identifiers in the electronic form template to be filled;

[0095] According to each identifier in the electronic form template to be filled, the original text information is traversed to capture the target text information associated with the current identifier, and then for the captured target text information, it is necessary to search the electronic form template to be filled to obtain the location of the identifier corresponding to the current target text information, and replace the identifier at the current location with the current target text information;

[0096] The above traversal and replacement steps are repeated until each identifier is replaced with the target text information, thereby generating a spreadsheet file containing the target text information.

[0097] S4, matching the first placeholder code recorded in the electronic spreadsheet file with the second placeholder code recorded in the report template to be issued, and automatically replacing each target text information into a designated position of the report template to be issued; after completing the replacement operation of each target text information, generating a final report to be issued;

[0098] In a preferred embodiment, matching the first placeholder code recorded in the electronic spreadsheet file with the second placeholder code recorded in the report template to be issued, and automatically replacing each target text information into a specified position in the report template to be issued, includes:

[0099] For each target text information of the electronic spreadsheet file, the first placeholder code of the current target text information is matched with the second placeholder code in the report template to be issued one by one, and when it is identified that the second placeholder code in the current matching operation is consistent with the first placeholder code of the current target text information, the second placeholder code in the current matching operation is replaced with the current target text information;

[0100] Specifically, after selecting the report template to be issued, it is necessary to read the report template to be issued, and then obtain a number of second placeholder codes in the report template to be issued;

[0101] Then, the first placeholder code of the current target text information in the generated electronic spreadsheet file is matched with the second placeholder code in the report template to be issued one by one, and when it is identified that the second placeholder code in the current matching operation is consistent with the first placeholder code of the current target text information, the second placeholder code in the current matching operation is replaced with the current target text information;

[0102] Thus, after all the second placeholders in the report template to be issued are replaced with the target text information, the final report to be issued is generated.

[0103] In a preferred embodiment, the parsing of the service request instruction sent by the user further includes:

[0104] Parse the business request instruction sent by the user and obtain the archive path information;

[0105] After the final report is generated, it also includes:

[0106] Retrieving the archive path information;

[0107] According to the archive path information, the issued report and the electronic spreadsheet file are saved to the specified archive path in the archive path information;

[0108] Specifically, when parsing the service request instruction sent by the user in step S2, the service request instruction obtained by parsing also includes the archive path information specified by the user. When generating a report and an electronic spreadsheet file, the report and the electronic spreadsheet file are sent to the specified archive path in the archive path information;

[0109] As a result, automatic archiving of issued reports and spreadsheet files is achieved. When subsequent users use the generated reports and spreadsheet files, they can directly find the document in the path they set, which effectively improves user convenience.

[0110] See also Figure 2 , is a digital voucher-based report automatic generation device provided by a certain embodiment of the present application, comprising: an original text information acquisition module, a template selection module, an electronic spreadsheet file generation module and a report generation module;

[0111] The original text information acquisition module is used to acquire the original text information in the digital voucher image uploaded by the user;

[0112] The template selection module is used to parse the business request instruction sent by the user, and select the electronic form template to be filled and the report template to be issued that match the current business request; wherein the electronic form template to be filled records an identifier associated with the target text information to be captured and a first placeholder code for mapping the target text information to a preset position of the report template to be issued; the report template to be issued records a second placeholder code corresponding to the first placeholder code;

[0113] The electronic form file generation module is used to read the electronic form template to be filled, capture the target text information associated with the identifier from the original text information, and replace the captured target text information with the corresponding associated identifier to generate an electronic form file containing the target text information;

[0114] The report generation module is used to match the first placeholder code recorded in the electronic spreadsheet file and the second placeholder code recorded in the report template to be issued, and automatically replace each target text information into the specified position of the report template to be issued; after completing the replacement operation of each target text information, a final report is generated.

[0115] See also Figure 3 , a certain embodiment of the present application further provides a terminal device, including:

[0116] one or more processors;

[0117] A memory, coupled to the processor, for storing one or more programs;

[0118] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for automatically generating a report based on digital credentials as described above.

[0119] The processor is used to control the overall operation of the terminal device to complete all or part of the steps of the above-mentioned method for automatically generating a report based on a digital certificate. The memory is used to store various types of data to support the operation of the terminal device, and these data may include, for example, instructions for any application or method used to operate on the terminal device, and data related to the application. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0120] In an exemplary embodiment, the terminal device can be implemented by one or more application specific integrated circuits (Application Specific 1n Integrated Circuit, referred to as ASC), digital signal processors (Digital Signal Processor, referred to as DSP), digital signal processing devices (Digital Signal Processing Device, referred to as DSPD), programmable logic devices (Programmable Logic Device, referred to as PLD), field programmable gate arrays (Field Programmable Gate Array, referred to as FPGA), controllers, microcontrollers, microprocessors or other electronic components, and is used to execute the automatic report generation method based on digital credentials as described in any of the above embodiments, and achieve the same technical effect as the above method.

[0121] In another exemplary embodiment, a computer-readable storage medium including a computer program is also provided, and when the computer program is executed by a processor, the steps of the method for automatically generating a report based on a digital credential as described in any of the above embodiments are implemented. For example, the computer-readable storage medium may be the above-mentioned memory including the computer program, and the above-mentioned computer program may be executed by a processor of a terminal device to complete the method for automatically generating a report based on a digital credential as described in any of the above embodiments, and achieve the same technical effect as the above-mentioned method.

[0122] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for automatically generating a report based on digital credentials, characterized in that: include: Obtaining original text information in the digital certificate image uploaded by the user; Parse the business request instruction sent by the user, and select the electronic form template to be filled and the report template to be issued that match the current business request; wherein the electronic form template to be filled records an identifier associated with the target text information to be captured and a first placeholder code for mapping the target text information to a preset position of the report template to be issued; and the report template to be issued records a second placeholder code corresponding to the first placeholder code; Reading the electronic form template to be filled, capturing target text information associated with the identifier from the original text information, and replacing the captured target text information with the corresponding associated identifier to generate an electronic form file containing the target text information; Matching the first placeholder code recorded in the electronic spreadsheet file with the second placeholder code recorded in the report template to be issued, and automatically replacing each target text information into a designated position in the report template to be issued; After completing the replacement operation of each of the target text information, a final report is generated.

2. The method for automatically generating a report based on digital credentials as claimed in claim 1, characterized in that: The obtaining of original text information in the digital voucher image uploaded by the user includes: Obtaining a digital credential image uploaded by a user; Preprocessing the digital voucher image to obtain the preprocessed original text information; The pre-processed digital voucher image is subjected to text extraction using a preset text extraction algorithm to obtain original text information.

3. The method for automatically generating a report based on digital credentials as claimed in claim 1, characterized in that: The step of parsing the business request instruction sent by the user and selecting an electronic form template to be filled that matches the current business request includes: Parsing the service request instruction sent by the user to obtain first service information in the service request instruction; wherein the first service information includes first review information and first acceptance information; Calling a preset electronic form template database, matching the first business information with the second business information of each pre-stored electronic form template in the electronic form template database; wherein the second business information includes second review information and second acceptance information; A pre-stored electronic form template in which the second business information is consistent with the first business information is used as the electronic form template to be filled.

4. The method for automatically generating a report based on digital credentials as claimed in claim 1, characterized in that: The step of parsing the business request instruction sent by the user and selecting a report template to be issued that matches the current business request includes: Parsing the service request instruction sent by the user to obtain first service information in the service request instruction; wherein the first service information includes first review information and first acceptance information; Calling a preset report template database, matching the first business information with the third business information of each pre-stored report template in the report template database; wherein the third business information includes third review information and third acceptance information; The pre-stored report template whose third business information is consistent with the first business information is used as the report template to be issued.

5. The method for automatically generating a report based on digital credentials as claimed in claim 1, characterized in that: The step of reading the electronic form template to be filled, capturing target text information associated with the identifier from the original text information, and replacing the captured target text information with the corresponding associated identifier to generate an electronic form file containing the target text information includes: Read the electronic form template to be filled, and obtain a number of identifiers in the electronic form template to be filled; Using the plurality of identifiers as a guide, traversing the original text information, and capturing target text information associated with the identifiers; For each captured target text information, searching the electronic form template to be filled to obtain the location of the identifier associated with the current target text information, and replacing the identifier at the current location with the current target text information; After completing the replacement of each of the target text information, an electronic spreadsheet file containing the target text information is generated.

6. The method for automatically generating a report based on digital credentials as claimed in claim 1, characterized in that: The matching of the first placeholder code recorded in the electronic spreadsheet file and the second placeholder code recorded in the report template to be issued, and automatically replacing each target text information into a designated position of the report template to be issued, includes: For each target text information in the electronic spreadsheet file, the first placeholder code of the current target text information is matched with the second placeholder code in the report template to be issued one by one, and when it is recognized that the second placeholder code in the current matching operation is consistent with the first placeholder code of the current target text information, the second placeholder code in the current matching operation is replaced with the current target text information.

7. The method for automatically generating a report based on digital credentials as claimed in claim 1, characterized in that: The parsing of the service request instruction sent by the user also includes: Parse the business request instruction sent by the user and obtain the archive path information; After the final report is generated, it also includes: Retrieving the archive path information; According to the archive path information, the issued report and the electronic spreadsheet file are saved to the designated archive path in the archive path information.

8. A device for automatically generating reports based on digital certificates, characterized in that: include: Original text information acquisition module, template selection module, electronic spreadsheet file generation module and report generation module; The original text information acquisition module is used to acquire the original text information in the digital voucher image uploaded by the user; The template selection module is used to parse the business request instruction sent by the user, and select the electronic form template to be filled and the report template to be issued that match the current business request; wherein the electronic form template to be filled records an identifier associated with the target text information to be captured and a first placeholder code for mapping the target text information to a preset position of the report template to be issued; the report template to be issued records a second placeholder code corresponding to the first placeholder code; The electronic form file generation module is used to read the electronic form template to be filled, capture the target text information associated with the identifier from the original text information, and replace the captured target text information with the corresponding associated identifier to generate an electronic form file containing the target text information; The report generation module is used to match the first placeholder code recorded in the electronic spreadsheet file with the second placeholder code recorded in the report template to be issued, and automatically replace each target text information into a specified position of the report template to be issued; After completing the replacement operation of each of the target text information, a final report is generated.

9. A device, characterized in that: include: one or more processors; A memory, coupled to the processor, for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for automatically generating reports based on digital credentials as described in any one of claims 1-7.

10. A medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for automatically generating a report based on a digital credential as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Personalized image display method and device of electronic paper mobile phone shell, terminal equipment and storage medium

    CN120144813A

  • A personalized image display method and device of an electronic paper mobile phone case, a terminal device, and a storage medium

    CN120144813B