A protocol self-check method, device, system, terminal and storage medium

Through the automated protocol self-test method, the filling-in text and seal information in the protocol file are parsed, and the comparison is carried out to generate a self-test report, which solves the problems of low efficiency and poor accuracy of the bank's manual verification of the protocol file, and achieves more efficient and accurate protocol inspection.

CN118839688BActive Publication Date: 2025-05-23KINCHENG BANK OF TIANJIN CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411319898.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-05-23
Estimated Expiration
2044-09-23

AI Technical Summary

Technical Problem

After the bank signs the agreement document, it needs to manually check to avoid signing errors, resulting in low efficiency, high error rate, and easy to miss inspection items.

Method used

By analyzing the target protocol, the filling text in the pre-analyzed filling field is extracted and compared with the preset standard data; the certificate information and impression information of the seal are analyzed, and the preset data is compared with the preset data, and the self-test report is output.

Benefits of technology

It improves the efficiency and accuracy of protocol inspection, reduces the error rate of manual verification, and ensures the accuracy and reliability of inspection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118839688B_ABST
    Figure CN118839688B_ABST
Patent Text Reader

Abstract

The present application relates to the field of file processing technology, and discloses a protocol self-checking method, device, system, terminal and storage medium, the method comprising: extracting the filling text corresponding to each pre-parsed filling field from the target protocol; wherein the pre-parsed filling field is obtained by parsing the protocol template corresponding to the target protocol; if the filling text is consistent with the preset standard data, then the filling text of the target protocol is determined to be correct; parsing the target protocol to obtain the certificate information of each seal; if the certificate information of the seal is consistent with the preset seal certificate information, then the certificate information of the seal is determined to be authentic and valid; identifying the mold information corresponding to each seal; if each mold information is consistent with the preset seal certificate information, then the mold is determined to be correct; outputting a self-checking report according to the comparison results of the filling text, the comparison results of the certificate information of the seal and the comparison results of the mold information. Through the automated protocol checking method of the present application, the efficiency and accuracy of the protocol checking can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of file processing technology, and in particular to a protocol self-checking method, device, system, terminal and storage medium. Background Art

[0002] With the rapid development of banking business, more and more agreement documents are involved in banks. After signing, various agreement documents need to be checked again to avoid errors in signing documents. At present, the verification method adopted by banks is usually manual inspection, which inevitably leads to problems such as low inspection efficiency, high error rate, and easy omission of inspection items. Summary of the invention

[0003] In view of this, embodiments of the present application provide a protocol self-check method, device, system, terminal and storage medium, which can improve the efficiency and accuracy of protocol checking.

[0004] In a first aspect, an embodiment of the present application provides a protocol self-check method, comprising:

[0005] Extracting the filled text corresponding to each pre-parsed filled field from the target protocol; wherein the pre-parsed filled field is obtained by parsing the protocol template corresponding to the target protocol;

[0006] If the filled text is consistent with the preset standard data, it is determined that the filled text of the target protocol is correct;

[0007] Parsing the target protocol to obtain the certificate information of each seal;

[0008] If the certificate information of the seal is consistent with the preset seal certificate information, it is determined that the certificate information of the seal is authentic and valid;

[0009] Identify the stamp information corresponding to each of the stamps;

[0010] If the stamp information is consistent with the preset stamp certificate information, the stamp is determined to be correct;

[0011] A self-inspection report is outputted according to the comparison result of the filled-in text, the comparison result of the certificate information of the seal and the comparison result of the impression information.

[0012] In some embodiments, the acquisition of the pre-parsed fill-in field includes:

[0013] Read and load the PDF file of the target agreement template;

[0014] Access the AcroFields object of the target protocol template to obtain the parameters of the pre-parsed fill-in field of the target protocol template; wherein the parameters of the pre-parsed fill-in field include coordinate information and page number information.

[0015] In some embodiments, extracting the fill-in text corresponding to each of the pre-parsed fill-in fields from the target protocol includes:

[0016] Determine the pre-parsed fill-in field of the target protocol according to the template pre-parsed fill-in field corresponding to the target protocol, and add each pre-parsed fill-in field to the fill-in field list;

[0017] Each of the pre-parsed fill-in fields in the fill-in field list is traversed to extract the fill-in text corresponding to each of the pre-parsed fill-in fields from the target protocol.

[0018] In some embodiments, the method further includes: if the filled-in text contains non-text characters, converting the non-text characters into a unified format.

[0019] In some embodiments, parsing the target protocol to obtain each signature certificate information includes:

[0020] Parse the target protocol to obtain all signature fields in the target protocol, and encapsulate the signature information of each signature field into the corresponding SignatureDetail object to obtain a seal information list; wherein the signature information includes the signature name, signature seal certificate, signing time, signature status and page number;

[0021] Each SignatureDetail object in the seal information list is traversed and accessed to obtain the signature seal certificate information of each SignatureDetail object.

[0022] In some embodiments, the identifying the stamp information corresponding to each stamp includes:

[0023] Acquire a stamp information list according to the stamp information list; wherein the stamp information list includes page numbers and stamps corresponding to each page number;

[0024] Traversing the stamp information list, converting the pages containing the stamp in the target protocol into page images;

[0025] Image recognition is performed on the page image to obtain the impression information.

[0026] In a second aspect, an embodiment of the present application provides a protocol self-checking system, including: a self-checking platform and a service platform;

[0027] The self-checking platform is used to implement the self-checking method according to the above protocol;

[0028] The business platform is used to provide comparison data to the self-inspection platform; wherein the comparison data includes preset standard data and preset seal certificate information.

[0029] In a third aspect, an embodiment of the present application provides a protocol self-checking device, including:

[0030] An extraction module, used to extract the filled text corresponding to each pre-parsed filled field from the target protocol; wherein the pre-parsed filled field is obtained by parsing the protocol template corresponding to the target protocol;

[0031] A first comparison module, used to determine that the filled-in text of the target protocol is correct if the filled-in text is consistent with the preset standard data;

[0032] A parsing module, used for parsing the target protocol to obtain the certificate information of each seal;

[0033] A second comparison module is used to determine that the certificate information of the seal is authentic and valid if the certificate information of the seal is consistent with the preset certificate information of the seal;

[0034] An identification module, used for identifying the stamp information corresponding to each of the stamps;

[0035] A third comparison module is used to determine that the stamp is correct if the stamp information is consistent with the preset stamp certificate information;

[0036] The output module is used to output a self-inspection report according to the comparison result of the filled-in text, the comparison result of the certificate information of the seal and the comparison result of the impression information.

[0037] In a fourth aspect, an embodiment of the present application provides a terminal device, the terminal device comprising a processor and a memory, the memory storing a computer program, and the processor being used to execute the computer program to implement the above-mentioned protocol self-test method.

[0038] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the above-mentioned protocol self-test method when executed on a processor.

[0039] The embodiments of the present application have the following beneficial effects:

[0040] The embodiment of the present application parses the target protocol to obtain the filled text in the pre-parsed filled field in the target protocol, and then compares the obtained filled text field with the preset standard data provided by the business platform. If they are consistent, it means that the filled text in the target protocol is correct; then the seal information is compared, wherein the seal information includes seal certificate information and impression information. In this embodiment, the seal certificate information and impression information in the target protocol are respectively obtained and compared with the preset seal certificate information. If they are consistent, it means that the seal certificate information and impression information are both correct. This embodiment can not only improve the efficiency of protocol inspection, but also improve the accuracy of inspection through automated detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A schematic diagram of the structure of the protocol self-checking system according to an embodiment of the present application is shown;

[0043] Figure 2 A first flow chart of the protocol self-checking method according to an embodiment of the present application is shown;

[0044] Figure 3 A second flow chart of the protocol self-checking method according to an embodiment of the present application is shown;

[0045] Figure 4 A third flow chart of the protocol self-check method according to an embodiment of the present application is shown;

[0046] Figure 5A A partial schematic diagram of a protocol template of an embodiment of the present application is shown;

[0047] Figure 5B A partial schematic diagram of the target protocol of an embodiment of the present application is shown;

[0048] Figure 6 A fourth flow chart of the protocol self-checking method according to an embodiment of the present application is shown;

[0049] Figure 7 A fifth flow chart of the protocol self-checking method according to an embodiment of the present application is shown;

[0050] Figure 8 A schematic diagram of the structure of a protocol self-checking device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0052] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0053] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0054] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0055] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0056] In the prior art, in the process of handling banking business, such as loan business, insurance business, etc., it is usually necessary to sign agreement documents, and bank handling personnel need to check these agreement documents. Currently, manual verification is usually used, which is not only inefficient but also has a high error rate. Based on this, the present application proposes a protocol self-checking method, device, terminal and storage medium to improve the efficiency and accuracy of protocol checking.

[0057] Before describing the protocol self-checking method in the embodiment of the present application, it is necessary to describe the system of the present application. Figure 1 The protocol self-check system shown includes a self-check platform 100 and a service platform 200 .

[0058] Among them, the self-checking platform 100 is used to check and verify the content and signature information filled in the target agreement; the business platform 200 is used to provide comparison data for proofreading and verification, that is, after the filled data in the self-checking platform 100 is identified, it needs to be compared with the data provided by the business platform 200. If they are consistent, it means that the content filled in the target agreement is correct. The specific self-checking method of the self-checking platform 100 is as follows.

[0059] The protocol self-check method is described below in conjunction with some specific embodiments.

[0060] Figure 2 A schematic flow chart of a protocol self-checking method according to an embodiment of the present application is shown. Exemplarily, the protocol self-checking method comprises the following steps:

[0061] Step S100, extracting the filling text corresponding to each pre-parsed filling field from the target protocol.

[0062] Step S200: If the filled text is consistent with the preset standard data, it is determined that the filled text of the target protocol is correct.

[0063] In this implementation, before step S100, since most business agreements in banks are currently agreements with fixed formats, such as loan agreements, the contents of the agreements usually signed are all standard clauses, so the format of the agreements signed by each processing entity is the same, and the area for filling in the content in the agreement is also the same. Therefore, when checking the target agreement, this application first obtains the pre-parsed filling field in the agreement module, that is, the area in the agreement template where the content needs to be filled in.

[0064] In some embodiments, Figure 3 As shown, the acquisition of the pre-parsed filled-in fields includes:

[0065] Step S10, reading and loading the PDF file of the target protocol template.

[0066] Step S20, accessing the AcroFields object of the target protocol template to obtain the parameters of the pre-parsed fill-in fields of the target protocol template.

[0067] The pre-parsed fill-in field parameters include location information and page number information.

[0068] In specific implementation, the PdfReader class in the itextpdf library can be used to load the PDF document corresponding to the target agreement template, which can read the PDF file of the agreement template and load the read content into the data structure in the memory.

[0069] Among them, itextpdf is a popular Java library for creating, manipulating, and extracting the content of PDF documents. It provides a rich API to read, edit, and generate PDF files, and supports various PDF features, including text, images, tables, form fields, etc.

[0070] In step S10, after loading the PDF file corresponding to the protocol template, the form fields in the PDF file can be traversed. Specifically, since the AcroFields object provides access to the form fields, including their names, types, and values, in this implementation, the access to the form fields of the PDF file can be achieved by accessing the AcroFields object of the PDF file, and the pre-parsed fill field parameters in the PDF file can be obtained through the getFieldPositions method, that is, the position information and page number information of each pre-parsed fill field in the PDF file can be obtained.

[0071] Its location information includes but is not limited to the coordinates of the lower left corner of the pre-parsed fill-in field, the distance from the top, the width of the pre-parsed fill-in field, the height of the pre-parsed fill-in field, etc.; the page number information is the page number of the pre-parsed fill-in field in the PDF file.

[0072] Parse the target protocol to obtain all signature information in the target protocol; the signature information includes signature name, signature seal certificate information, signature time, signature status and page number; the parameter format of the pre-parsed fill-in field obtained can be: "[{"${name}":[180.639,131.12402,145.543,20.04602],"page":1}]". It can be understood that this format is only exemplary, and the specific acquisition format can be set as needed.

[0073] In a specific embodiment, Figure 4 As shown, step S100 specifically includes:

[0074] Step S110, determining the pre-parsed fill-in fields of the target protocol according to the template pre-parsed fill-in fields corresponding to the target protocol, and adding each pre-parsed fill-in field to the fill-in field list.

[0075] Step S120, traverse each pre-parsed fill-in field in the fill-in field list to extract the fill-in text corresponding to each pre-parsed fill-in field from the target protocol.

[0076] Specifically, create a Region object according to each pre-parsed fill-in field of the protocol template corresponding to the target protocol, and set the location information parameters for each Region object according to the parameters of the corresponding pre-parsed fill-in field. Then add all Region objects to the region list of the pre-established PDFTextStripperByArea object. Finally, extract the fill-in text corresponding to each Region object from the target protocol through the getText method in the PDFTextStripperByArea object.

[0077] It can be understood that it is necessary to first create a PDFTextStripperByArea object, and then determine the area corresponding to the filled text that needs to be extracted from the target protocol according to the parameters of the pre-parsed filled field of the protocol template corresponding to the target protocol. When determining the area corresponding to the filled text, you can first create a Region object corresponding to each domain parsing filled field, and then set the position information parameters according to the parameters of each pre-parsed filled field; wherein, the position information parameters set for the Region object include but are not limited to the lower left corner coordinates, lower right corner coordinates, height, width and other information, mainly through these position information parameters can be expressed The specific area of ​​each pre-parsed filled field. After creating the Region object, add each Region object to the area list of the PDFTextStripperByArea object, and then you can extract the filled text corresponding to each Region object from the target protocol according to the getText method in the PDFTextStripperByArea object. This method can return a string containing all the filled text extracted from the specific area of ​​each pre-parsed filled field.

[0078] like Figure 5A and Figure 5B As shown, Figure 5A Shows a partial screenshot of a template agreement, through parsing Figure 5A The agreement template shown in the figure can obtain the parameters of three pre-parsed filling fields, one is the area to be filled in after the borrower, one is the area to be filled in after the legal representative / person in charge, and the last one is the area to be filled in on the delivery address. Then when parsing the target agreement, the area list of the created PDFTextStripperByArea object includes the area to be filled in after the borrower, the area to be filled in after the legal representative / person in charge, and the area to be filled in on the delivery address. The corresponding Region objects can be obtained through the getText method. Figure 5BThe filled text in the target agreement displayed in the result display may be "{borrower = XXX002 Co., Ltd., legal representative = XXX, delivery address = mingxizh}". Then the filled text in the obtained target agreement is compared with the preset standard data given by the business platform. If they are consistent, it is determined that the filled text of the target agreement is correct. Among them, the preset standard data given by the business platform is usually the business data given by the business party.

[0079] In a specific implementation, if the filled text contains non-text characters, the non-text characters are converted into a unified format. It is understandable that since the protocol file usually includes check boxes, radio buttons, etc., and each check box or each radio button may be presented in a different form, taking the radio button as an example, the radio button button styles include "check", "circle", "cross", "diamond", "square" or "star", etc. Therefore, if special characters representing the same meaning are parsed out, the special characters representing the same meaning need to be processed in a unified manner. For example, if the parsed radio buttons have "check", "circle", "cross", "diamond", "square" or "star", they can be uniformly processed as "check".

[0080] In this embodiment, not only the filled-in text needs to be checked, but also the seal information needs to be checked. When checking the seal information, the certificate information and the impression of the seal are mainly checked.

[0081] Step S300, parsing the target protocol to obtain the certificate information of each seal.

[0082] Among them, seals include official seals, bank seals, legal person seals or signatures of natural persons.

[0083] Step S400: If the certificate information of the seal is consistent with the preset certificate information of the seal, it is determined that the certificate information of the seal is authentic and valid.

[0084] In a specific embodiment, Figure 6 As shown, the target protocol is parsed to obtain the certificate information of each seal, including:

[0085] Step S310, parse the target protocol to obtain all signature fields in the target protocol, and encapsulate the signature information of each signature field into a corresponding SignatureDetail object to obtain a seal information list.

[0086] Step S320, traverse and access each SignatureDetail object in the seal information list to obtain the seal certificate information of each SignatureDetail object.

[0087] In this embodiment, the getSignatureNames method of the AcroFields class can be used to obtain all signature fields in the target protocol, where the signature information of the signature field includes but is not limited to the signature name, seal certificate, signing time, signing status and page number; for each signature field, the PdfPKCS7 class can be used to verify each signature field, and the verification includes but is not limited to the signing time, whether the signature has been changed, signature trust, etc. If the verification passes, the signature corresponding to the signature field is encapsulated into the SignatureDetail object (signature details object) and added to the seal information list (List <signaturedetail>). After obtaining the seal information list, traverse each SignatureDetail object in the list and access the SignatureDetail object to obtain the seal certificate information of the corresponding signature field, where the seal certificate information includes but is not limited to the issuer, validity period, etc. Finally, compare the obtained seal certificate information with the seal certificate database required by the business platform to determine whether the seal certificate information is authentic and valid. Among them, SignatureDetail is a custom object. When parsing the signature field of a PDF file, various information of the signature field may be obtained. This application customizes the SignatureDetail object and only needs to encapsulate the required information.

[0088] Step S500, identifying the stamp information corresponding to each stamp.

[0089] Step S600: If the information of each impression is consistent with the certificate information of the corresponding seal, it is determined that the impression is correct.

[0090] In a specific embodiment, Figure 7 As shown, the stamp information for identifying the stamp corresponding to each signature stamp certificate includes:

[0091] Step S510, obtaining a stamp information list according to the stamp information list.

[0092] The stamp information list includes page numbers and the stamp corresponding to each page number.

[0093] Step S520, traverse the stamp information list, and convert the page containing the stamp in the target protocol into a page image.

[0094] Step S530: perform image recognition on the page image to obtain impression information.

[0095] Specifically, since the signature information includes the page on which it is located, the impression information list can be obtained according to the seal information list. For example, if the seal information list is [{Seal A, on page 1}, {Seal B, on page 2}, {Seal C, on page 1}, {Seal C, on page 2}, {Seal A, on page 5}], then the impression information list obtained according to the seal information list is {Page 1, [Seal A, Seal C]; Page 2, [Seal B, Seal C]; Page 5, [Seal A]}.

[0096] After obtaining the list of imprint information, you can know which page in the target protocol includes the imprint. Therefore, by traversing the imprint information list, the page containing the imprint can be converted into a page image, which makes it easier to use OCR for image recognition. Perform OCR recognition on the converted page image to obtain the imprint information; wherein the imprint information includes but is not limited to the text, code, anti-counterfeiting lines, imprint shape, etc. on the imprint. After obtaining the imprint information, compare it with the imprint information in the seal certificate database. If they are consistent, the imprint is determined to be correct. It should be noted that if a page in the imprint information list contains two imprints, but only one imprint is identified or three imprints are identified, the page will be processed separately.

[0097] Step S700, outputting a self-test report according to the comparison result of the filled text, the comparison result of the seal's certificate information and the comparison result of the impression information.

[0098] After the target protocol is self-checked through the above steps, this embodiment also includes the generation and output of a self-check report, wherein the report should include a list of protocols that passed the self-check, a list of protocols that failed the self-check, and detailed error information and modification suggestions; and the report has export and sharing functions to facilitate subsequent processing and archiving.

[0099] This embodiment parses the target protocol to obtain the filled text in the pre-parsed filled field in the target protocol, and then compares the obtained filled text field with the preset standard data provided by the business platform. If they are consistent, it means that the filled text in the target protocol is correct; then the seal information is compared, wherein the seal information includes seal certificate information and mold information. In this embodiment, the seal certificate information and mold information in the target protocol are obtained and compared with the preset seal certificate information respectively. If they are consistent, it means that the seal certificate information and mold information are correct. This embodiment can not only improve the efficiency of protocol inspection through automated detection, but also improve the accuracy of inspection. In addition, this embodiment not only checks the filled text, but also checks the seal certificate information and mold, thereby ensuring the accuracy and reliability of the inspection results.

[0100] Figure 8 A schematic diagram of the structure of a protocol self-checking device according to an embodiment of the present application is shown. Exemplarily, the protocol self-checking device comprises:

[0101] The extraction module 110 is used to extract the filled text corresponding to each pre-parsed filled field from the target protocol; wherein the pre-parsed filled field is obtained by parsing the protocol template corresponding to the target protocol.

[0102] The first comparison module 120 is used to determine that the filled-in text of the target protocol is correct if the filled-in text is consistent with the preset standard data.

[0103] The parsing module 130 is used to parse the target protocol to obtain the certificate information of each seal.

[0104] The second comparison module 140 is used to determine whether the seal certificate information is authentic and valid if the seal certificate information is consistent with the preset seal certificate information.

[0105] The identification module 150 is used to identify the stamp information corresponding to each stamp.

[0106] The third comparison module 160 is used to determine that the impression is correct if the impression information is consistent with the preset seal certificate information;

[0107] The output module 170 is used to output a self-test report according to the comparison result of the filled text, the comparison result of the seal certificate information and the comparison result of the impression information.

[0108] It can be understood that the device of this embodiment corresponds to the protocol self-test method of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.

[0109] The present application also provides a terminal device. Exemplarily, the terminal device includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program, thereby enabling the terminal device to execute the functions of each module in the above-mentioned protocol self-test method or the above-mentioned protocol self-test device.

[0110] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application.

[0111] The memory can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc. Among them, the memory is used to store a computer program, and after receiving an execution instruction, the processor can execute the computer program accordingly.

[0112] This application also provides a computer-readable storage medium for storing the computer program used in the above terminal device. For example, the computer-readable storage medium can include, but is not limited to: various media such as USB flash drives, external hard drives, Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disks, or optical discs that can store program codes.

[0113] In several embodiments provided by this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and structure diagrams in the drawings show the possible architectures, functions, and operations of the devices, methods, and computer program products according to multiple embodiments of this application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the blocks can occur in a different order from that marked in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the structure diagram and / or flowchart, as well as the combination of blocks in the structure diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0114] In addition, in each embodiment of this application, each functional module or unit can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.

[0115] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0116] The above description is only a specific implementation manner 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 changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.< / signaturedetail>

Claims

1. A protocol self-checking method, characterized in that: include: Extracting the filled text corresponding to each pre-parsed filled field from the target protocol; wherein the pre-parsed filled field is obtained by parsing the protocol template corresponding to the target protocol; If the filled text is consistent with the preset standard data, it is determined that the filled text of the target protocol is correct; Parsing the target protocol to obtain the certificate information of each seal; wherein the seal is a seal stamped in the target protocol; If the certificate information of the seal is consistent with the preset seal certificate information, it is determined that the certificate information of the seal is authentic and valid; Identify the stamp information corresponding to each of the stamps; If the stamp information is consistent with the preset stamp certificate information, the stamp is determined to be correct; Outputting a self-inspection report according to the comparison result of the filled-in text, the comparison result of the certificate information of the seal and the comparison result of the impression information; The acquisition of the pre-analysis filling field includes: Read and load the PDF file of the target agreement template; Accessing the AcroFields object of the target protocol template to obtain the parameters of the pre-parsed fill-in field of the target protocol template; wherein the parameters of the pre-parsed fill-in field include coordinate information and page number information; The step of extracting the fill-in text corresponding to each pre-parsed fill-in field from the target protocol includes: Determine the pre-parsed fill-in field of the target protocol according to the pre-parsed fill-in field of the target protocol template corresponding to the target protocol, and add each of the pre-parsed fill-in fields to the fill-in field list; Traversing each of the pre-parsed fill-in fields in the fill-in field list to extract fill-in text corresponding to each of the pre-parsed fill-in fields from the target protocol; The step of parsing the target protocol to obtain each signature certificate information includes: Parse the target protocol to obtain all signature fields in the target protocol, and encapsulate the signature information of each signature field into the corresponding SignatureDetail object to obtain a seal information list; wherein the signature information includes the signature name, signature seal certificate, signing time, signature status and page number; Traverse and access each SignatureDetail object in the seal information list to obtain the signature seal certificate information of each SignatureDetail object; The identification of the stamp information corresponding to each stamp includes: Acquire a stamp information list according to the stamp information list; wherein the stamp information list includes page numbers and stamps corresponding to each page number; Traversing the stamp information list, converting the pages containing the stamp in the target protocol into page images; Image recognition is performed on the page image to obtain the impression information.

2. The protocol self-checking method according to claim 1, characterized in that: Also includes: If the filled text contains non-text characters, the non-text characters are converted into a unified format.

3. A protocol self-checking device, characterized in that: include: An extraction module, used to extract the filled text corresponding to each pre-parsed filled field from the target protocol; wherein the pre-parsed filled field is obtained by parsing the protocol template corresponding to the target protocol; A first comparison module, used to determine that the filled-in text of the target protocol is correct if the filled-in text is consistent with the preset standard data; A parsing module, used for parsing the target protocol to obtain the certificate information of each seal; A second comparison module is used to determine that the certificate information of the seal is authentic and valid if the certificate information of the seal is consistent with the preset certificate information of the seal; An identification module, used for identifying the stamp information corresponding to each of the stamps; A third comparison module is used to determine that the stamp is correct if the stamp information is consistent with the preset stamp certificate information; An output module, used for outputting a self-test report according to the comparison result of the filled-in text, the comparison result of the certificate information of the seal and the comparison result of the impression information; The acquisition of the pre-analysis filling field includes: Read and load the PDF file of the target agreement template; Accessing the AcroFields object of the target protocol template to obtain the parameters of the pre-parsed fill-in field of the target protocol template; wherein the parameters of the pre-parsed fill-in field include coordinate information and page number information; The step of extracting the fill-in text corresponding to each pre-parsed fill-in field from the target protocol includes: Determine the pre-parsed fill-in field of the target protocol according to the pre-parsed fill-in field of the target protocol template corresponding to the target protocol, and add each of the pre-parsed fill-in fields to the fill-in field list; Traversing each of the pre-parsed fill-in fields in the fill-in field list to extract fill-in text corresponding to each of the pre-parsed fill-in fields from the target protocol; The step of parsing the target protocol to obtain each signature certificate information includes: Parse the target protocol to obtain all signature fields in the target protocol, and encapsulate the signature information of each signature field into the corresponding SignatureDetail object to obtain a seal information list; wherein the signature information includes the signature name, signature seal certificate, signing time, signature status and page number; Traverse and access each SignatureDetail object in the seal information list to obtain the signature seal certificate information of each SignatureDetail object; The identification of the stamp information corresponding to each stamp includes: Acquire a stamp information list according to the stamp information list; wherein the stamp information list includes page numbers and stamps corresponding to each page number; Traversing the stamp information list, converting the pages containing the stamp in the target protocol into page images; Image recognition is performed on the page image to obtain the impression information.

4. A protocol self-checking system, characterized in that: include: Self-inspection platform and business platform; The self-checking platform is used to implement the protocol self-checking method according to any one of claims 1-2; The business platform is used to provide comparison data to the self-inspection platform; wherein the comparison data includes preset standard data and preset seal certificate information.

5. A terminal device, characterized in that: The terminal device comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the protocol self-check method according to any one of claims 1 to 2.

6. A computer-readable storage medium, characterized in that: The device stores a computer program, which, when executed on a processor, implements the protocol self-checking method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Automatic auditing method for form protocol image with seal

    CN113076795A

  • Layout file checking method and device

    CN117725886A