Signature method, device, electronic device and computer-readable storage medium

By acquiring multiple document layers and generating tagged layers, the problem of inefficient online signatures in the prior art is solved, fast online signatures and tags are realized, and the readability of files is enhanced.

CN115082943BActive Publication Date: 2025-08-19PING AN BANK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210686651.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2025-08-19
Estimated Expiration
2042-06-16

AI Technical Summary

Technical Problem

Existing online signature solutions are inefficient when processing large documents and cannot effectively support online tagging and signing services.

Method used

By obtaining multiple document layers of the document to be identified, multiple demand layers corresponding to business requirements are determined, and marking layers are generated for signatures. A tree-like data structure storage and deep traversal algorithm search is used to remove interference elements and improve signature speed.

Benefits of technology

Improves the speed and efficiency of online signatures, supports online tagging, editing and signing services, and enhances the readability of files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115082943B_ABST
    Figure CN115082943B_ABST
Patent Text Reader

Abstract

The present invention provides a signature method, apparatus, electronic device, and computer-readable storage medium. The signature method comprises: obtaining a document to be identified; obtaining multiple document layers of the document to be identified; obtaining a business requirement; determining multiple requirement layers corresponding to the business requirement within the multiple document layers; generating a marking layer based on the multiple requirement layers; and signing the marking layer. Implementing the present invention solves the inefficient line-by-line document reading problem in the prior art and effectively supports online marking, editing, and signing services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a signature method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the increasing adoption of digital internet technology (IT), many signing services can now be performed online. Online signing requires generating a document with coordinate information. Current online signature solutions typically scan documents line by line during image recognition, ultimately generating a complete document with coordinate information. For large documents, online signing can be time-consuming and ineffective for online tagging and signing. Summary of the Invention

[0003] The purpose of the embodiments of the present application is to provide a signature method, device, electronic device and computer-readable storage medium, which can solve the problem of low efficiency in reading documents line by line in the prior art and can effectively support online marking, editing and signing services.

[0004] In a first aspect, an embodiment of the present application provides a signing method, including:

[0005] Get the document to be identified;

[0006] Acquire multiple document layers of the document to be identified;

[0007] Obtain business requirements;

[0008] Determining a plurality of requirement layers corresponding to the business requirements from among the plurality of document layers;

[0009] Generate a marking layer according to the multiple requirement layers;

[0010] Sign the markup layer.

[0011] In the above implementation process, unlike the prior art, after obtaining the document to be identified, the embodiment of the present application does not generate a document with coordinate information based on the document to be identified. Instead, it obtains multiple document layers of the document to be identified; obtains business requirements, determines multiple requirement layers corresponding to the business requirements; generates a marking layer based on the multiple layers corresponding to the business requirements, and signs on the marking layer. Compared to the prior art method of obtaining documents with coordinate information based on line-by-line reading to achieve online signing, the embodiment provided by the present application does not require line-by-line document reading, solving the problem of low efficiency of line-by-line document reading in the prior art, effectively supporting online marking, editing, and signing services, and at the same time improving the speed of online signing.

[0012] Furthermore, the document layer includes one or more of: a text layer, a blank area layer, a signature position layer, a date layer, and an operation button layer.

[0013] In the above implementation, there are various types of document layers. The text layer allows users to understand the content of contracts and documents. The blank area layer makes the display more obvious and convenient for users to view. The signature location layer is the location of the user's signature. The date file layer is the layer where the user signs the date. The operation button layer is the layer with operation buttons. Based on the above implementation, various markup layers can be generated.

[0014] Furthermore, after the step of obtaining the plurality of document layers of the document to be identified, the method further includes:

[0015] Storing the plurality of document layers in a tree-like data structure, wherein each node of the tree-like data structure is one of the plurality of document layers;

[0016] The step of determining a plurality of requirement layers corresponding to the business requirements from the plurality of document layers includes:

[0017] The tree data structure is searched based on a depth traversal algorithm to obtain the multiple requirement layers.

[0018] In the above implementation, multiple document layers are stored in a tree-like data structure, which makes the storage structure of multiple document layers hierarchical and easy to search. At the same time, the tree-like data structure is searched based on the depth traversal algorithm, which can quickly obtain the required multiple requirement layers.

[0019] Furthermore, after the step of generating a markup layer according to the plurality of document layers corresponding to the business requirements, the method further includes:

[0020] Remove interference elements on the marker layer.

[0021] In the above implementation process, removing interference elements on the mark layer can improve the readability of the file.

[0022] In a second aspect, an embodiment of the present application provides a signature device, comprising:

[0023] A document acquisition module is used to acquire documents to be identified;

[0024] A layer acquisition module, used to acquire multiple document layers of the document to be identified;

[0025] Business requirements acquisition module, used to obtain business requirements;

[0026] The layer acquisition module is further configured to determine a plurality of requirement layers corresponding to the business requirements from the plurality of document layers;

[0027] A generation module is used to generate a marking layer according to the multiple requirement layers

[0028] The signature module is used to sign on the mark layer.

[0029] In the above implementation process, unlike the prior art, after obtaining the document to be identified, the embodiment of the present application does not generate a document with coordinate information based on the document to be identified. Instead, it obtains multiple document layers of the document to be identified; obtains business requirements, determines multiple requirement layers corresponding to the business requirements; generates a marking layer based on the multiple layers corresponding to the business requirements, and signs on the marking layer. Compared to the prior art method of obtaining documents with coordinate information based on line-by-line reading to achieve online signing, the embodiment provided by the present application does not require line-by-line document reading, solving the problem of low efficiency of line-by-line document reading in the prior art, effectively supporting online marking, editing, and signing services, and at the same time improving the speed of online signing.

[0030] Furthermore, the document layer includes one or more of: a text layer, a blank area layer, a signature position layer, a date layer, and an operation button layer.

[0031] In the above implementation, there are various types of document layers. The text layer allows users to understand the content of contracts and documents. The blank area layer makes the display more obvious and convenient for users to view. The signature location layer is the location of the user's signature. The date file layer is the layer where the user signs the date. The operation button layer is the layer with operation buttons. Based on the above implementation, various markup layers can be generated.

[0032] Furthermore, the apparatus further comprises: a storage module, configured to store the plurality of document layers using a tree data structure, wherein each node of the tree data structure is a layer in the plurality of document layers;

[0033] The layer acquisition module is further configured to search the tree data structure based on a depth traversal algorithm to obtain the multiple required layers.

[0034] In the above implementation, multiple document layers are stored in a tree-like data structure, which makes the storage structure of multiple document layers hierarchical and easy to search. At the same time, the tree-like data structure is searched based on the depth traversal algorithm, which can quickly obtain the required multiple document layers.

[0035] Furthermore, the device further includes: a removal module for removing interference elements on the marking layer.

[0036] In the above implementation process, removing interference elements on the mark layer can improve the readability of the file.

[0037] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.

[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.

[0039] Other features and advantages disclosed in the present application will be described in the following description, or some features and advantages can be inferred or determined without doubt from the description, or can be learned by implementing the above-mentioned technology disclosed in the present application.

[0040] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. 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 relevant drawings can be obtained based on these drawings without creative work.

[0042] Figure 1 A flowchart of the signature method provided in this embodiment of the application;

[0043] Figure 2 A schematic diagram of the structure of the signature device provided in an embodiment of the present application;

[0044] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0046] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and should not be understood as indicating or implying relative importance.

[0047] With the increasing popularity of IT digitalization, many signing services can now be implemented online. Online signing requires generating a document with coordinate information. Current online signature solutions typically scan documents with coordinate information line by line through image recognition, ultimately generating complete text coordinates line by line. For large documents, the entire online signing process can be time-consuming and ineffective in supporting online marking and signing services. Therefore, embodiments of the present application provide a signature method, apparatus, electronic device, and computer-readable storage medium.

[0048] Example 1

[0049] See also Figure 1 , this embodiment of the application provides a signing method, including:

[0050] S1: Get the document to be identified;

[0051] In the above embodiment, the document to be identified may be a picture, a file stored in PDF format, etc.

[0052] The Portable Document Format (PDF) is a file format developed for file exchange independent of applications, operating systems, and hardware. Based on the PostScript language image model, PDF files guarantee precise color and accurate printing on any printer. This means that PDF faithfully reproduces every character, color, and image from the original document.

[0053] S2: Obtain multiple document layers of the document to be recognized;

[0054] In the above embodiment, the document layer refers to a picture containing elements such as text or graphics.

[0055] S3: Obtain business requirements;

[0056] In the above embodiment, the business requirement may be to find a signing location, etc. The signing location refers to an area corresponding to a layer that needs to be signed.

[0057] S4: Determine multiple requirement layers corresponding to business requirements in multiple document layers;

[0058] S5: Generate a marking layer based on multiple requirement layers;

[0059] S6: Sign on the markup layer.

[0060] In the above implementation process, unlike the prior art, after obtaining the document to be identified, the embodiment of the present application does not generate a document with coordinate information based on the document to be identified. Instead, it obtains multiple document layers of the document to be identified; obtains business requirements, determines multiple requirement layers corresponding to the business requirements; generates a marking layer based on the multiple layers corresponding to the business requirements, and signs on the marking layer. Compared to the prior art method of obtaining documents with coordinate information based on line-by-line reading to achieve online signing, the embodiment provided by the present application does not require line-by-line document reading, solving the problem of low efficiency of line-by-line document reading in the prior art, effectively supporting online marking, editing, and signing services, and at the same time improving the speed of online signing.

[0061] In a possible implementation, the document layer includes one or more of: a text layer, a blank area layer, a signature position layer, a date layer, and an operation button layer.

[0062] In the above implementation, there are various types of document layers. The text layer allows users to understand the content of contracts and documents. The blank area layer makes the display more obvious and convenient for users to view. The signature location layer is the location of the user's signature. The date file layer is the layer where the user signs the date. The operation button layer is the layer with operation buttons. Based on the above implementation, various markup layers can be generated.

[0063] Based on the above implementation, S5 includes: associating and overlaying multiple document layers, finding the associated area after overlaying, and outputting a markup layer.

[0064] For example, to find the signing location, it is necessary to associate the text layer, the blank layer, and the signature layer, find the associated area after the layers are superimposed, and output the marking layer.

[0065] Furthermore, after the step of obtaining multiple document layers of the document to be identified, the method further includes:

[0066] A tree data structure is used to store multiple document layers, where each node of the tree data structure is one of the multiple document layers;

[0067] The steps for determining multiple requirement layers corresponding to business requirements in multiple document layers include:

[0068] The tree data structure is searched based on the depth traversal algorithm to obtain multiple requirement layers.

[0069] A tree is a data structure that consists of a hierarchical set of n (n ≥ 0) nodes. It is called a tree because it resembles an upside-down tree, with its roots pointing upward and its leaves pointing downward. It has the following characteristics:

[0070] Each node has zero or more child nodes; a node without a parent node is called a root node; each non-root node has one and only one parent node; except for the root node, each child node can be divided into multiple non-intersecting subtrees.

[0071] In the above implementation, multiple document layers are stored in a tree-like data structure, which makes the storage structure of multiple document layers hierarchical and easy to search. At the same time, the tree-like data structure is searched based on the depth traversal algorithm, which can quickly obtain the required multiple requirement layers.

[0072] In a possible implementation, after the step of generating a markup layer according to multiple document layers corresponding to business requirements, the method further includes:

[0073] Removes noise features on the marker layer.

[0074] In a possible implementation, after the step of generating a markup layer according to multiple layers corresponding to business requirements, the method further includes: adjusting the position of related text in the markup layer.

[0075] Since the recognition accuracy may be low during the recognition process, resulting in the text in the layer being offset or tilted, the readability of the file can be further improved by adjusting the position of the relevant text in the markup layer.

[0076] In the above implementation process, removing interference elements on the mark layer can improve the readability of the file.

[0077] In summary, the solution provided by the embodiments of the present application can speed up the signing process. This marking process can also be applied to data collection services using optical character recognition (OCR) technology, such as quickly identifying operation blocks and information blocks in images, to provide support for rapid information parsing. OCR refers to the process by which an electronic device (such as a scanner or digital camera) examines characters printed on paper and then uses character recognition methods to translate the shapes into computer text; that is, the process of scanning text materials and then analyzing and processing the image files to obtain text and layout information.

[0078] Example 2

[0079] See also Figure 2 , an embodiment of the present application provides a signature device, comprising:

[0080] Document acquisition module 1, used to acquire the document to be identified;

[0081] Layer acquisition module 2, used to acquire multiple document layers of the document to be identified;

[0082] Business requirements acquisition module 3, used to acquire business requirements;

[0083] The layer acquisition module 2 is further used to determine multiple requirement layers corresponding to the business requirements in the multiple document layers;

[0084] Generating module 4, for generating a marking layer according to multiple document layers corresponding to business requirements;

[0085] The signature module 5 is used to sign on the mark layer.

[0086] In the above implementation process, unlike the prior art, after obtaining the document to be identified, the embodiment of the present application does not generate a document with coordinate information based on the document to be identified. Instead, it obtains multiple document layers based on the document to be identified; obtains business requirements, determines multiple document layers corresponding to the business requirements; generates a marking layer based on the multiple layers corresponding to the business requirements, and signs on the marking layer. Compared to the prior art method of obtaining documents with coordinate information based on line-by-line reading to achieve online signing, the embodiment provided by the present application does not require line-by-line document reading, solving the problem of low efficiency of line-by-line document reading in the prior art, effectively supporting online marking, editing, and signing services, and at the same time improving the speed of online signing.

[0087] Furthermore, the document layer includes one or more of: a text layer, a blank area layer, a signature position layer, a date layer, and an operation button layer.

[0088] In the above implementation, there are various types of document layers. The text layer allows users to understand the content of contracts and documents. The blank area layer makes the display more obvious and convenient for users to view. The signature location layer is the location of the user's signature. The date file layer is the layer where the user signs the date. The operation button layer is the layer with operation buttons. Based on the above implementation, various markup layers can be generated.

[0089] Furthermore, the apparatus further comprises: a storage module for storing the plurality of document layers using a tree data structure, wherein each node of the tree data structure is a layer of the plurality of document layers;

[0090] The layer acquisition module 2 is further used to search the tree data structure based on a depth traversal algorithm to obtain multiple required layers.

[0091] In the above implementation, multiple document layers are stored in a tree-like data structure, which makes the storage structure of multiple document layers hierarchical and easy to search. At the same time, the tree-like data structure is searched based on the depth traversal algorithm, which can quickly obtain the required multiple document layers.

[0092] Furthermore, the device also includes: a removal module for removing interference elements on the marking layer.

[0093] In the above implementation process, removing interference elements on the mark layer can improve the readability of the file.

[0094] This application also provides an electronic device, see Figure 3 , Figure 3 This is a block diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 31, a communication interface 32, a memory 33, and at least one communication bus 34. The communication bus 34 is used to enable direct communication between these components. The communication interface 32 of the electronic device in this embodiment of the present application is used to communicate signaling or data with other node devices. The processor 31 may be an integrated circuit chip with signal processing capabilities.

[0095] The processor 31 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor can be a microprocessor, or the processor 31 can also be any conventional processor.

[0096] The memory 33 may be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory 33 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 31, the electronic device may perform the steps involved in the above method embodiment.

[0097] Optionally, the electronic device may further include a storage controller and an input / output unit.

[0098] The memory 33, storage controller, processor 31, peripheral interfaces, and input / output units are electrically connected to each other, directly or indirectly, to enable data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses 34. The processor 31 is used to execute executable modules stored in the memory 33, such as software function modules or computer programs included in the electronic device.

[0099] The input and output unit is used to provide users with the ability to create tasks and to create optional start time periods or preset execution times for the tasks to enable interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and keyboard.

[0100] I understand. Figure 3 The structure shown is only for illustration, and the electronic device may also include Figure 3 More or fewer components than shown, or with Figure 3 Different configurations shown. Figure 3 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0101] An embodiment of the present application further provides a computer-readable storage medium having instructions stored thereon. When the instructions are run on a computer, the computer program is executed by a processor to implement the method described in the method embodiment. To avoid repetition, details are not given here.

[0102] In the several embodiments provided in 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 block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box 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 a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.

[0103] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0104] 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. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0105] The foregoing is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included within the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined or explained in subsequent figures.

[0106] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

[0107] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

Claims

1. A signature method, characterized in that: include: Get the document to be identified; Acquire multiple document layers of the document to be identified; Obtain business requirements; Determining a plurality of requirement layers corresponding to the business requirements from among the plurality of document layers; Generate a marking layer according to the multiple requirement layers; Signing on the marking layer; After the step of obtaining the plurality of document layers of the document to be identified, the method further includes: Storing the plurality of document layers in a tree-like data structure, wherein each node of the tree-like data structure is one of the plurality of document layers; The step of determining a plurality of requirement layers corresponding to the business requirements from the plurality of document layers includes: Searching the tree data structure based on a depth traversal algorithm to obtain the multiple requirement layers; The step of generating a marking layer according to the multiple requirement layers includes: The multiple requirement layers are associated and superimposed, the associated area after superposition is found, and a marking layer is output.

2. The signature method according to claim 1, characterized in that: The document layer includes one or more of: a text layer, a blank area layer, a signature position layer, a date layer, and an operation button layer.

3. The signature method according to claim 2, characterized in that: After the step of generating a markup layer according to the plurality of document layers corresponding to the business requirements, the method further includes: Remove interference elements on the marker layer.

4. A signature device, characterized in that: include: A document acquisition module is used to acquire documents to be identified; A layer acquisition module, used to acquire multiple document layers of the document to be identified; Business requirements acquisition module, used to obtain business requirements; The layer acquisition module is further configured to determine a plurality of requirement layers corresponding to the business requirements from the plurality of document layers; A generation module is used to generate a marking layer according to the multiple requirement layers A signature module, used for signing on the mark layer; The device further includes: a storage module for storing the plurality of document layers using a tree data structure, wherein each node of the tree data structure is one of the plurality of document layers; The layer acquisition module is further configured to search the tree data structure based on a depth traversal algorithm to obtain the multiple required layers; The generating module is specifically used to: associate and overlay the multiple requirement layers, find the associated area after overlaying, and output a marking layer.

5. The signature device according to claim 4, characterized in that: The document layer includes one or more of: a text layer, a blank area layer, a signature position layer, a date layer, and an operation button layer.

6. The signature device according to claim 4, characterized in that: The device further includes: a removal module, configured to remove interference elements on the marking layer.

7. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the signature method according to any one of claims 1 to 3 are implemented.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer is caused to execute the steps of the signature method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method and system for intelligently identifying and generating electronic contract

    CN112749649A

  • Image processing method and device, computer readable medium and electronic equipment

    CN113496454A