Electronic signature method, electronic signature device, electronic device, storage medium

By using a paginated and page-by-page electronic signature method, the problem of recognizing the handwriting of users with multiple characters in their names in electronic signature systems has been solved, improving recognition accuracy and user experience.

CN115270711BActive Publication Date: 2026-02-03CHINA PING AN LIFE INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210933348.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-04
Publication Date
2026-02-03
Estimated Expiration
2042-08-04

AI Technical Summary

Technical Problem

When a user's name has a long string of characters, the spacing between the characters in the signature becomes smaller, leading to a decrease in the accuracy of signature recognition.

Method used

By obtaining the target object's pre-stored name text, identifying the total number of characters, and paginating when the number of characters exceeds a threshold, an initial electronic signature is obtained, each page is signed, and finally arranged into the target electronic signature.

Benefits of technology

It improves the accuracy of signature handwriting recognition, avoids recognition difficulties caused by small signature areas, and enhances the signature experience for users with long names.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115270711B_ABST
    Figure CN115270711B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides an electronic signature method, an electronic signature device, an electronic equipment and a storage medium, and belongs to the technical field of artificial intelligence. The method comprises the following steps: obtaining a pre-stored name text of a target object; performing text recognition on the pre-stored name text to obtain a total number of words of the pre-stored name text; obtaining a word number threshold value that can be displayed on a first signature page; if the total number of words is greater than the word number threshold value, performing pagination on the first signature page to obtain a plurality of second signature pages; obtaining an initial electronic signature of the target object on the second signature page; and arranging the initial electronic signatures of all the second signature pages to obtain a target electronic signature. According to the embodiment of the application, the total number of words of the pre-stored name text is used to distinguish the signature scene, and the accuracy of electronic signature recognition can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to an electronic signature method, electronic signature device, electronic device, and storage medium. Background Technology

[0002] Currently, electronic signature systems generate electronic signatures by obtaining users' handwriting. However, when a user's name has a large number of characters, the spacing between the characters in the handwriting becomes smaller, which reduces the accuracy of the electronic signature system in recognizing the handwriting. Summary of the Invention

[0003] The main objective of this application is to provide an electronic signature method, electronic signature device, electronic device, and storage medium, which aim to improve the accuracy of signature handwriting recognition.

[0004] To achieve the above objectives, a first aspect of this application provides an electronic signature method, the method comprising:

[0005] Retrieve the pre-stored name text of the target object;

[0006] Perform text recognition on the pre-stored name text to obtain the total number of characters in the pre-stored name text;

[0007] Obtain the character count threshold that can be displayed on the first signature page;

[0008] If the total number of characters is greater than the character threshold, then the first signature page is paginated to obtain multiple second signature pages;

[0009] Obtain the initial electronic signature of the target object on the second signature page;

[0010] Arrange all the initial electronic signatures on the second signature page to obtain the target electronic signature.

[0011] In some embodiments, after obtaining the threshold number of characters that the first signature page can display, the electronic signature method further includes:

[0012] If the total number of characters is less than or equal to the character threshold, then the signature of the target object on the first signature page is obtained.

[0013] In some embodiments, the pagination of the first signature page to obtain multiple second signature pages includes:

[0014] The first page number is obtained by dividing the total number of words by the word count threshold.

[0015] Round up the first page number to obtain the second page number;

[0016] The first signature page is paginated according to the second page number to obtain a first preset number of second signature pages, wherein the first preset number is equal to the second page number.

[0017] In some embodiments, obtaining the initial electronic signature of the target object on the second signature page includes:

[0018] The pre-stored name text is split according to the character count threshold to obtain multiple intermediate name texts, and each intermediate name text corresponds to the second signature page.

[0019] The second signature page is divided into a second preset number of signature areas, the second preset number being equal to the word count threshold, and the first text content in the middle name text corresponds one-to-one with the signature area;

[0020] A corresponding text pattern is generated in the signature area based on the first text content;

[0021] Obtain the signature of the target object in the signature area based on the text pattern;

[0022] The signature handwriting features are extracted to obtain the initial electronic signature of the signature area corresponding to the signature area in the second signature page.

[0023] In some embodiments, the step of extracting handwriting features from the signature to obtain the initial electronic signature for the corresponding signature area on the second signature page includes:

[0024] Handwriting features are extracted from the signature to obtain the target character features;

[0025] If the target character feature matches the preset sample character feature, then the target character feature is converted into the second text content corresponding to the sample character feature;

[0026] If the second text content matches the first text content, then the signature handwriting is used as the initial electronic signature.

[0027] In some embodiments, the step of extracting handwriting features from the signature to obtain target character features includes:

[0028] The signature handwriting is subjected to optical image processing to obtain an initial image;

[0029] The initial image is binarized to obtain the first intermediate image;

[0030] Perform a dilation operation on the first intermediate image to obtain a second intermediate image;

[0031] Perform an erosion operation on the second intermediate image to obtain the third intermediate image;

[0032] Handwriting features are extracted from the third intermediate image to obtain the target character features.

[0033] In some embodiments, arranging the initial electronic signatures of all the second signature pages to obtain the target electronic signature includes:

[0034] Obtain the first text content of the initial electronic signature;

[0035] Based on the position information of the first text content in the pre-stored name text, the initial electronic signature is arranged to obtain the target electronic signature.

[0036] To achieve the above objectives, a second aspect of this application provides an electronic signature device, the device comprising:

[0037] The first acquisition module is used to acquire the pre-stored name text of the target object;

[0038] The text recognition module is used to perform text recognition on the pre-stored name text to obtain the total number of characters in the pre-stored name text;

[0039] The second acquisition module is used to acquire the threshold number of characters that can be displayed on the first signature page;

[0040] The pagination module is used to paginate the first signature page to obtain multiple second signature pages if the total number of characters is greater than the character count threshold.

[0041] The third acquisition module acquires the initial electronic signature of the target object on the second signature page;

[0042] The arrangement module is used to arrange all the initial electronic signatures on the second signature page to obtain the target electronic signature.

[0043] To achieve the above objectives, a third aspect of this application provides an electronic device, which includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for enabling communication between the processor and the memory. When the program is executed by the processor, it implements the method described in the first aspect above.

[0044] To achieve the above objectives, a fourth aspect of the present application provides a storage medium, which is a computer-readable storage medium for computer-readable storage, wherein the storage medium stores one or more programs that can be executed by one or more processors to implement the method described in the first aspect.

[0045] The electronic signature method, electronic signature device, electronic device, and storage medium proposed in this application obtain a pre-stored name text of the target object, perform text recognition on the pre-stored name text to obtain the total number of characters in the pre-stored name text, obtain a character count threshold that can be displayed on the first signature page, and if the total number of characters is greater than the character count threshold, the first signature page is paginated to obtain multiple second signature pages, the initial electronic signature of the target object corresponding to the second signature page is obtained, and the initial electronic signatures of all the second signature pages are arranged to obtain the target electronic signature. The embodiments of this application distinguish the signature scenario of the target object by the total number of characters and the character count threshold. When the total number of characters is greater than the character count threshold, it indicates that the target object's name has a large number of characters, and the first signature page is paginated to facilitate the target object to sign page by page, thereby improving the accuracy of signature handwriting recognition. Attached Figure Description

[0046] Figure 1 This is a flowchart of the electronic signature method provided in the embodiments of this application;

[0047] Figure 2 yes Figure 1 The flowchart of step S140 in the middle;

[0048] Figure 3 yes Figure 1 The flowchart of step S150 in the middle;

[0049] Figure 4 yes Figure 3 The flowchart of step S350 in the text;

[0050] Figure 5 yes Figure 4 The flowchart of step S410 in the middle;

[0051] Figure 6 yes Figure 1 The flowchart of step S160 in the middle;

[0052] Figure 7 This is a schematic diagram of the electronic signature device provided in the embodiments of this application;

[0053] Figure 8 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0055] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0057] First, let's analyze some of the terms used in this application:

[0058] Artificial intelligence (AI) is a new branch of computer science that studies, develops, and applies theories, methods, technologies, and systems to simulate, extend, and expand human intelligence. It aims to understand the essence of intelligence and produce intelligent machines that can react in a way similar to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing, and expert systems. AI can simulate the information processes of human consciousness and thought. Furthermore, AI utilizes digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceiving the environment, acquiring knowledge, and using that knowledge to achieve optimal results.

[0059] When conducting business online, users need to sign documents for confirmation, making electronic signatures a crucial part of online transactions. Currently, electronic signature systems generate electronic signatures by obtaining the user's handwriting. However, these systems do not differentiate between specific user scenarios. When a user's name has many characters, it is difficult to complete the signature of all the text on one screen. Furthermore, a large number of characters reduces the spacing between the characters in the signature, making it difficult for the electronic signature system to recognize the concatenated text and reducing the accuracy of signature recognition.

[0060] Based on this, embodiments of this application provide an electronic signature method, an electronic signature device, an electronic device, and a storage medium, aiming to improve the accuracy of signature handwriting recognition.

[0061] The electronic signature method, electronic signature device, electronic device, and storage medium provided in the embodiments of this application are specifically described through the following embodiments. First, the electronic signature method in the embodiments of this application is described.

[0062] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0063] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0064] The electronic signature method provided in this application relates to the field of artificial intelligence technology. The electronic signature method provided in this application can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, etc.; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application implementing the electronic signature method, but is not limited to the above forms.

[0065] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0066] It should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards of the relevant countries and regions. In addition, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user is obtained through pop-ups or redirects to confirmation pages. Only after obtaining the user's separate permission or consent is the necessary user-related data for the proper functioning of the embodiments of this application obtained.

[0067] Figure 1 This is an optional flowchart of the electronic signature method provided in the embodiments of this application. Figure 1 The method may include, but is not limited to, steps S110 to S160.

[0068] Step S110: Obtain the pre-stored name text of the target object;

[0069] Step S120: Perform text recognition on the pre-stored name text to obtain the total number of characters in the pre-stored name text;

[0070] Step S130: Obtain the threshold number of characters that can be displayed on the first signature page;

[0071] Step S140: If the total number of characters is greater than the character threshold, then the first signature page is paginated to obtain multiple second signature pages;

[0072] Step S150: Obtain the initial electronic signature of the target object corresponding to the second signature page;

[0073] Step S160: Arrange all the initial electronic signatures on the second signature page to obtain the target electronic signature.

[0074] Steps S110 to S160 of this embodiment involve obtaining the pre-stored name text of the target object, performing text recognition on the pre-stored name text to obtain the total number of characters in the pre-stored name text, obtaining the character count threshold that the first signature page can display, and if the total number of characters is greater than the character count threshold, then the first signature page is paginated to obtain multiple second signature pages, obtaining the initial electronic signature of the target object corresponding to the second signature page, and arranging the initial electronic signatures of all the second signature pages to obtain the target electronic signature. This embodiment distinguishes the signature scenario of the target object by the total number of characters and the character count threshold. When the total number of characters is greater than the character count threshold, it indicates that the target object's name has a large number of characters. Paginating the first signature page makes it easier for the target object to sign page by page, avoiding the difficulty of signature handwriting recognition caused by the small spacing between signature characters on one screen, and improving the accuracy of signature handwriting recognition.

[0075] In step S110 of some embodiments, in response to the target object's click or touch operation on the signature page, the target object's identity information is obtained, and the target object's pre-stored name text is obtained based on the identity information. The identity information may be the target object's ID card number, account number, and account password, etc. The pre-stored name text is a formatted name text that the target object has reserved in the previous scenario or has been saved in the electronic signature database. The previous scenario may be real-name authentication before signing.

[0076] In step S120 of some embodiments, the number of characters is identified and determined based on the obtained formatted text content. Specifically, the pre-stored name text is segmented into multiple text characters, and the number of characters is used as the total number of characters in the pre-stored name text. It should be noted that the interval point in the pre-stored name text is one character.

[0077] In step S130 of some embodiments, the number of characters that can be displayed on the first signature page is obtained, wherein the number of characters is the maximum number of characters that can be signed on one screen of the signature page.

[0078] In step S140 of some embodiments, the number of characters in the names of different target objects varies. When the number of characters in the name is large, it is difficult to complete the signature of all the characters in the name within the first signature page. Even if the signature of all the characters can be completed within one screen, the large number of characters will make signature handwriting recognition difficult. Therefore, it is necessary to distinguish the signature scenarios of target objects based on the number of characters in the name to improve the accuracy of signature handwriting recognition and improve the signature experience for target objects with large names. The signature scenario is distinguished by judging the total number of characters in the pre-stored name text. When the total number of characters is greater than the maximum number of characters that can be signed within one screen of the signature page, the multi-character signature process is entered. When the total number of characters is less than or equal to the maximum number of characters that can be signed within one screen of the signature page, the regular signature process is performed. Specifically, if the total number of characters in the pre-stored name text is greater than the character count threshold, it means that the target object cannot complete the signature of all the characters in the pre-stored name text within the first signature page. In this case, the first signature page is paginated to obtain multiple second signature pages, which makes it easier for the target object to sign page by page, improves the accuracy of signature handwriting recognition, and avoids repeated signing or failure to complete the signature normally. If the total number of characters is less than or equal to the character threshold, it means the target can complete the signature of all text on the first signature page, and the electronic signature of the target on the first signature page is directly obtained. For example, if the character threshold is 4, and the total number of characters in the pre-stored name text is greater than 4, that is, the number of characters in the user's name is greater than 4, then a multi-character signature process is performed, the first signature page is paginated to obtain multiple second signature pages, and the signature is completed page by page on the second signature pages. If the total number of characters in the pre-stored name text is less than or equal to 4, then a regular signature process is performed, and the signature is completed on the first signature page.

[0079] This application's embodiments optimize the unified signature method in traditional signature scenarios by differentiating the signature scenarios of different types of users. It avoids the situation where the user's signature area is small and difficult to write in scenarios with many characters due to screen limitations, thus improving the signature experience for users with names of many characters and facilitating their writing. At the same time, it solves the problem of difficulty in recognizing the signatures of users with names of many characters due to the small signature area in traditional signature scenarios, reducing the need for users to sign multiple times.

[0080] In step S150 of some embodiments, the signature handwriting of the target object on the second signature page is identified to obtain the initial electronic signature of the target object corresponding to the second signature page.

[0081] In step S160 of some embodiments, the initial electronic signatures of all the second signature pages are arranged in a preset character order and character spacing to obtain the target electronic signature.

[0082] Please see Figure 2In some embodiments, step S140 may include, but is not limited to, steps S210 to S230:

[0083] Step S210: Divide the total number of words by the word count threshold to obtain the first page number;

[0084] Step S220: Round up the first page number to obtain the second page number;

[0085] Step S230: Paginate the first signature page according to the second page number to obtain a first preset number of second signature pages, the first preset number being equal to the second page number.

[0086] In step S210 of some embodiments, the total number of characters in the pre-stored name text is divided by the character count threshold. If the total number of characters is a multiple of the character count threshold, it means that the total number of characters is divisible by the character count threshold, and the first page number obtained by the division operation is a positive integer. If the total number of characters is not a multiple of the character count threshold, it means that the total number of characters is not divisible by the character count threshold, and the first page number obtained by the division operation is a decimal.

[0087] In step S220 of some embodiments, the page number used for pagination during the pagination process is an integer. To avoid the first page number being a decimal, the first page number is rounded up to obtain the second page number, where the second page number is a positive integer. If the first page number is a positive integer, the second page number obtained by rounding up is equal to the first page number. If the first page number is a decimal, the second page number obtained by rounding up is the smallest integer value greater than the first page number. For example, if the first page number is 3, the second page number obtained by rounding up is still 3; if the first page number is 3.1, the second page number obtained by rounding up is 4; if the first page number is 3.6, the second page number obtained by rounding up is 4.

[0088] In step S230 of some embodiments, the first signature page is paginated into a number of second signature pages equal to the number of second pages, wherein the second signature pages are the same size as the first signature pages. For example, if the number of second pages is 4, the first signature page is paginated according to the number of second pages to obtain 4 second signature pages with the same size as the first signature pages.

[0089] Please see Figure 3 In some embodiments, step S150 may include, but is not limited to, steps S310 to S350:

[0090] Step S310: The pre-stored name text is split according to the word count threshold to obtain multiple intermediate name texts, and each intermediate name text corresponds to a second signature page.

[0091] Step S320: Divide the second signature page into a second preset number of signature areas. The second preset number is equal to the word count threshold. The first text content in the middle name text corresponds one-to-one with the signature area.

[0092] Step S330: Generate a corresponding text pattern in the signature area based on the first text content;

[0093] Step S340: Obtain the signature of the target object in the signature area based on the text pattern;

[0094] Step S350: Extract handwriting features from the signature to obtain the initial electronic signature of the corresponding signature area in the second signature page.

[0095] In step S310 of some embodiments, each second signature page has corresponding signature content. To obtain the signature content of the second signature page, the pre-stored name text is split sequentially according to a character count threshold to obtain multiple intermediate name texts. The number of intermediate name texts is equal to the number of pages of the second signature page, and the order of the intermediate name texts corresponds one-to-one with the order of the second signature pages. For example, if the character count threshold is 4 and the pre-stored name text is "ABCD·abcd", "ABCD·abcd" is split into three intermediate name texts: "ABCD", "·abc", and "d" according to the character count threshold. These three intermediate name texts correspond sequentially to page one, page two, and page three of the second signature page.

[0096] In step S320 of some embodiments, the second signature page is divided into a second preset number of signature areas, and the first text content in the middle name text corresponds sequentially to each signature area of ​​the second signature page. For example, the second signature page is page one, and its corresponding middle name text is "ABCD". The second signature page is divided into four signature areas, namely signature area one, signature area two, signature area three, and signature area four, where signature area one corresponds to the first text content "A", signature area two corresponds to the first text content "B", signature area three corresponds to the first text content "C", and signature area four corresponds to the first text content "D".

[0097] In step S330 of some embodiments, a text pattern is generated in the signature area based on the first text content. The content of the text pattern is the same as the first text content, and the text pattern is used to instruct the user to sign in the signature area according to the text pattern. For example, if the first text content corresponding to the second signature area is "B", then a text pattern corresponding to "B" is generated in the second signature area.

[0098] In some embodiments, steps S340 to S350 involve obtaining the user's signature in the signature area, extracting signature features from the signature, determining whether the signature features match the text pattern in the signature area, and if they match, using the signature as the initial electronic signature in the signature area of ​​the second signature page. If they do not match, a prompt message is generated so that the user can re-sign according to the prompt message.

[0099] Please see Figure 4 In some embodiments, step S350 may include, but is not limited to, steps S410 to S430:

[0100] Step S410: Extract handwriting features from the signature to obtain target character features;

[0101] Step S420: If the target character feature matches the preset sample character feature, then the target character feature is converted into the second text content corresponding to the sample character feature;

[0102] Step S430: If the second text content matches the first text content, then the signature handwriting is used as the initial electronic signature.

[0103] In step S410 of some embodiments, handwriting features are extracted from the signature handwriting to obtain target character features, wherein the target character features are the user's signature handwriting features, that is, a single text signature image of the user signing.

[0104] In step S420 of some embodiments, the sample character feature is a single text character feature in the character feature database. If the user's signature handwriting feature matches the sample character feature, that is, the user's signature handwriting feature can be identified as the text corresponding to the sample character feature, then the target character feature is converted into the second text content corresponding to the sample character feature. The character feature database is a text database, and the second text content is formatted text content.

[0105] It should be noted that a user's individual text signature image can be stored in an image database, and the corresponding text characters can be stored in a character feature database. Machine learning methods can be used to learn the mapping relationship between the text signature image and the text characters. Based on the mapping relationship, the user's signature handwriting features can be recognized to obtain the formatted text content of the corresponding text characters.

[0106] It should be further explained that, in order to reduce the omission of uncommon characters during the handwriting recognition process, individual character images can be stored in the image database, and the corresponding characters in the images can be added to the text database. By enriching both the image and text databases simultaneously, the accuracy of recognizing uncommon characters in user names is improved.

[0107] In step S430 of some embodiments, if the second text content corresponding to the target character feature matches the first text content corresponding to the text pattern of the signature area, it indicates that the user's signature in the signature area is correct, and the signature handwriting is used as the initial electronic signature of the signature area.

[0108] In some embodiments, steps S410 to S430 are performed to verify the correctness of the user's signature by determining whether the signature handwriting matches the text pattern in the signature area.

[0109] Please see Figure 5 In some embodiments, step S410 includes, but is not limited to, steps S510 to S550:

[0110] Step S510: Perform optical image processing on the signature handwriting to obtain an initial image;

[0111] Step S520: Binarize the initial image to obtain the first intermediate image;

[0112] Step S530: Perform a dilation operation on the first intermediate image to obtain the second intermediate image;

[0113] Step S540: Perform an erosion operation on the second intermediate image to obtain the third intermediate image;

[0114] Step S550: Extract handwriting features from the third intermediate image to obtain the target character features.

[0115] In step S510 of some embodiments, optical image processing is performed on the signature handwriting in the signature area to convert the signature handwriting into an image and obtain an initial image.

[0116] In step S520 of some embodiments, a segmentation threshold is determined. If the pixel value of a pixel in the initial image is less than the segmentation threshold, the pixel is classified as a background pixel. If the pixel value of a pixel in the initial image is greater than or equal to the segmentation threshold, the pixel is classified as a foreground pixel, resulting in a first intermediate image. The first intermediate image is a binary image, meaning that the pixel value of the foreground pixels is 1, and the pixel value of the background pixels is 0. Dividing the initial image into foreground and background using the segmentation threshold highlights the foreground information in the initial image, facilitating subsequent handwriting feature extraction.

[0117] In step S530 of some embodiments, the first intermediate image is dilated according to a preset structural operator to connect adjacent elements in the first intermediate image to obtain a second intermediate image. Specifically, the structural operator moves on the first intermediate image. When the pixel value of the origin of the structural operator is 1, and the pixel value of the pixel covered by its origin in the first intermediate image is also 1, a union operation is performed on the image sub-blocks of its covered area according to the structural operator to obtain the second intermediate image. The structural operator can be a disk-shaped structural operator, a linear structural operator, etc., and the origin of the structural operator can be the centroid of the structural operator, the first pixel of the structural operator, etc.

[0118] In step S540 of some embodiments, the second intermediate image is eroded according to a preset structure operator to segment the independent elements in the second intermediate image and remove boundary pixels to obtain a third intermediate image. Specifically, the structure operator moves on the second intermediate image, and when it completely covers a certain image sub-block of the second intermediate image, the structure operator performs an intersection operation with the image sub-block to obtain the third intermediate image.

[0119] It is understandable that performing dilation followed by erosion can eliminate background pixels in the image, thus achieving the purpose of noise removal.

[0120] In step S550 of some embodiments, the minimum bounding rectangle of the third intermediate image is calculated, and the elements formed by the pixels within the minimum bounding rectangle are used as the target character features.

[0121] In steps S510 to S550 of some embodiments, the signature handwriting is converted into an image by an optical image processing method to obtain an initial image. The initial image is binarized to obtain a first intermediate image. The first intermediate image is dilated using a structure operator to connect adjacent elements in the first intermediate image to obtain a second intermediate image. The second intermediate image is eroded using a structure operator to segment independent elements in the second intermediate image and remove boundary pixels to obtain a third intermediate image. The third intermediate image is then subjected to minimum rectangular region extraction to obtain the target character features.

[0122] Please see Figure 6 In some embodiments, step S160 includes, but is not limited to, steps S610 to S620:

[0123] Step S610: Obtain the first text content of the initial electronic signature;

[0124] Step S620: Arrange the initial electronic signature according to the position information of the first text content in the pre-stored name text to obtain the target electronic signature.

[0125] In steps S610 to S620 of some embodiments, the first text content of the initial electronic signature of the signature area corresponding to all second signature pages is obtained. According to the position information of the first text content in the pre-stored name text, the initial electronic signatures corresponding to the first text content are arranged with a preset character spacing to obtain the target electronic signature.

[0126] The electronic signature method of the present invention will be described in detail below with a specific embodiment. It is worth understanding that the following description is merely illustrative and not a specific limitation of the invention.

[0127] In response to a user's click on the signature box of the first signature page, the system retrieves the pre-stored name text from the preceding scene. Based on this, it performs character count recognition to determine the total number of characters in the pre-stored name text and obtains the character count threshold that the first signature page can display. If the total number of characters exceeds the threshold, the first signature page is paginated to obtain multiple second signature pages. The pre-stored name text is then split according to the character count threshold to obtain multiple intermediate name texts, each corresponding to a second signature page. The second signature page is divided into a number of signature areas equal to the character count threshold. The first text content in each intermediate name text corresponds to a signature area, and a corresponding text pattern is generated in the signature area based on the first text content. The system obtains the signature handwriting of the target object signing the signature area according to the text pattern. Optical image processing is performed on the signature handwriting to obtain an initial image. Binarization is then performed on the initial image to obtain a first intermediate image. A dilation operation is performed on the first intermediate image using a structure operator to obtain a second intermediate image. Finally, an erosion operation is performed on the second intermediate image using a structure operator to obtain... In the third intermediate image, the minimum rectangular region is extracted to obtain the target character features. If the target character features match the sample character features in the character feature database, the target character features are converted into the second text content corresponding to the sample character features. If the second text content matches the first text content, the signature handwriting is used as the initial electronic signature of the signature area. If the second text content of all signature areas on the current second signature page matches the first text content corresponding to the text pattern, a next page button is generated on the current second signature page. In response to the user's click on the next page button, the user enters the next second signature page. When the user's initial electronic signatures on all second signature pages are obtained, a submit button is generated on the last second signature page. In response to the user's click on the submit button, the first text content corresponding to the initial electronic signature is obtained. According to the position information of the first text content in the pre-stored name text, the initial electronic signature is arranged with a preset character spacing to obtain the target electronic signature. The target electronic signature is displayed on the preview pop-up window to obtain the complete user electronic signature.

[0128] If the total number of characters is less than or equal to the character threshold, the normal signature process is initiated. This involves obtaining the user's handwriting from the first signature page, recognizing the handwriting, and obtaining the target electronic signature. It should be noted that the method for recognizing the user's handwriting in the normal signature process is the same as in the multi-character signature process, and will not be repeated here.

[0129] In traditional signature scenarios, the small signature area leads to continuous signatures and small font sizes for users with long names, making handwriting recognition difficult. The electronic signature method in this application optimizes the unified signature method in traditional signature scenarios by distinguishing the signature scenarios of different types of users and combining the different requirements of different types of users for signature interaction methods and user experience. This reduces the need for users to sign multiple times, improves the signature experience for users with long names, and increases the accuracy of user signature handwriting recognition.

[0130] In some embodiments, a prompt for the user's full name can be generated at the bottom of the second signature page or in a location other than the signature area, based on pre-stored name text. For example, it could be "Please have user ABCD·abcd complete their signature." Other prompts can also be generated at the bottom of the second signature page or in other locations, such as "Please use regular script for your signature, avoiding cursive writing," to standardize the user's signature and improve the accuracy of signature recognition. It is understood that users can still use other fonts for their signatures.

[0131] In some embodiments, the signature page also includes a previous page button, allowing users to jump to the previous signature page.

[0132] In some embodiments, the signature page also includes a clear button to clear the user's handwriting on the signature page.

[0133] In some embodiments, the preview pop-up window includes a submit button and a cancel button to allow the user to confirm whether the target electronic signature is correct. If the target electronic signature is correct, the user clicks the submit button to submit the target electronic signature and complete the multi-word signing process. If the target electronic signature is incorrect, the user clicks the cancel button and returns to the corresponding signature page to modify the signature using the previous page button or the next page button.

[0134] Please see Figure 7 This application also provides an electronic signature device that can implement the above-described electronic signature method. The device includes:

[0135] The first acquisition module 710 is used to acquire the pre-stored name text of the target object;

[0136] The text recognition module 720 is used to perform text recognition on the pre-stored name text to obtain the total number of characters in the pre-stored name text.

[0137] The second acquisition module 730 is used to acquire the threshold number of characters that can be displayed on the first signature page;

[0138] The pagination module 740 is used to paginate the first signature page to obtain multiple second signature pages if the total number of characters exceeds the character threshold.

[0139] The third acquisition module 750 acquires the initial electronic signature of the target object corresponding to the second signature page;

[0140] The arrangement module 760 is used to arrange all the initial electronic signatures of the second signature page to obtain the target electronic signature.

[0141] The specific implementation of this electronic signature device is basically the same as the specific implementation of the electronic signature method described above, and will not be repeated here.

[0142] This application also provides an electronic device, which includes: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for communication between the processor and the memory. When the program is executed by the processor, it implements the aforementioned electronic signature method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0143] Please see Figure 8 , Figure 8 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes:

[0144] The processor 810 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.

[0145] The memory 820 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 820 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 820 and is called and executed by the processor 810 using the electronic signature method of the embodiments of this application.

[0146] The input / output interface 830 is used to implement information input and output;

[0147] The communication interface 840 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0148] Bus 850 transmits information between various components of the device (e.g., processor 810, memory 820, input / output interface 830, and communication interface 840);

[0149] The processor 810, memory 820, input / output interface 830 and communication interface 840 are connected to each other within the device via bus 850.

[0150] This application also provides a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs, which can be executed by one or more processors to implement the above-described electronic signature method.

[0151] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0152] The electronic signature method, electronic signature device, electronic device, and storage medium provided in this application embodiment obtain a pre-stored name text of the target object, perform text recognition on the pre-stored name text to obtain the total number of characters in the pre-stored name text, obtain a character count threshold that can be displayed on the first signature page, and if the total number of characters is greater than the character count threshold, the first signature page is paginated to obtain multiple second signature pages, the initial electronic signature of the target object corresponding to the second signature page is obtained, and the initial electronic signatures of all the second signature pages are arranged to obtain the target electronic signature. This application embodiment distinguishes the signature scenario of the target object by the total number of characters and the character count threshold. When the total number of characters is greater than the character count threshold, it indicates that the target object's name has a large number of characters, and the first signature page is paginated to facilitate the target object to sign page by page, avoiding the difficulty of signature handwriting recognition caused by the small spacing of signature characters within a screen, and improving the accuracy of signature handwriting recognition.

[0153] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0154] It will be understood by those skilled in the art that Figure 1-6 The technical solutions shown do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0155] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0156] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0157] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0158] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0159] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0160] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0161] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0162] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0163] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. An electronic signature method, characterized in that, The method includes: Retrieve the pre-stored name text of the target object; Perform text recognition on the pre-stored name text to obtain the total number of characters in the pre-stored name text; Obtain the character count threshold that can be displayed on the first signature page; If the total number of characters is greater than the character threshold, then the first signature page is paginated to obtain multiple second signature pages; Obtain the initial electronic signature of the target object on the second signature page; Arrange all the initial electronic signatures on the second signature page to obtain the target electronic signature; Obtaining the initial electronic signature of the target object on the second signature page includes: The pre-stored name text is split according to the character count threshold to obtain multiple intermediate name texts, and each intermediate name text corresponds to the second signature page. The second signature page is divided into a second preset number of signature areas, the second preset number being equal to the word count threshold, and the first text content in the middle name text corresponds one-to-one with the signature area; A corresponding text pattern is generated in the signature area based on the first text content; Obtain the signature of the target object in the signature area based on the text pattern; The signature handwriting features are extracted to obtain the initial electronic signature of the signature area corresponding to the signature area in the second signature page.

2. The electronic signature method according to claim 1, characterized in that, After obtaining the threshold number of characters that the first signature page can display, the electronic signature method further includes: If the total number of characters is less than or equal to the character threshold, then the signature of the target object on the first signature page is obtained.

3. The electronic signature method according to claim 1, characterized in that, The process of paginating the first signature page to obtain multiple second signature pages includes: The first page number is obtained by dividing the total number of words by the word count threshold. Round up the first page number to obtain the second page number; The first signature page is paginated according to the second page number to obtain a first preset number of second signature pages, wherein the first preset number is equal to the second page number.

4. The electronic signature method according to claim 1, characterized in that, The step of extracting handwriting features from the signature to obtain the initial electronic signature for the corresponding signature area on the second signature page includes: Handwriting features are extracted from the signature to obtain the target character features; If the target character feature matches the preset sample character feature, then the target character feature is converted into the second text content corresponding to the sample character feature; If the second text content matches the first text content, then the signature handwriting is used as the initial electronic signature.

5. The electronic signature method according to claim 4, characterized in that, The step of extracting handwriting features from the signature to obtain target character features includes: The signature handwriting is subjected to optical image processing to obtain an initial image; The initial image is binarized to obtain the first intermediate image; Perform a dilation operation on the first intermediate image to obtain a second intermediate image; Perform an erosion operation on the second intermediate image to obtain the third intermediate image; Handwriting features are extracted from the third intermediate image to obtain the target character features.

6. The electronic signature method according to any one of claims 1 to 5, characterized in that, The step of arranging all the initial electronic signatures on the second signature page to obtain the target electronic signature includes: Obtain the first text content of the initial electronic signature; Based on the position information of the first text content in the pre-stored name text, the initial electronic signature is arranged to obtain the target electronic signature.

7. An electronic signature device, characterized in that, The device includes: The first acquisition module is used to acquire the pre-stored name text of the target object; The text recognition module is used to perform text recognition on the pre-stored name text to obtain the total number of characters in the pre-stored name text; The second acquisition module is used to acquire the threshold number of characters that can be displayed on the first signature page; The pagination module is used to paginate the first signature page to obtain multiple second signature pages if the total number of characters is greater than the character count threshold. The third acquisition module acquires the initial electronic signature of the target object on the second signature page; The arrangement module is used to arrange all the initial electronic signatures on the second signature page to obtain the target electronic signature; The electronic signature device is also used for: The pre-stored name text is split according to the character count threshold to obtain multiple intermediate name texts, and each intermediate name text corresponds to the second signature page. The second signature page is divided into a second preset number of signature areas, the second preset number being equal to the word count threshold, and the first text content in the middle name text corresponds one-to-one with the signature area; A corresponding text pattern is generated in the signature area based on the first text content; Obtain the signature of the target object in the signature area based on the text pattern; The signature handwriting features are extracted to obtain the initial electronic signature of the signature area corresponding to the signature area in the second signature page.

8. An electronic device, characterized in that, The electronic device includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for enabling communication between the processor and the memory, wherein the program, when executed by the processor, implements the steps of the method as described in any one of claims 1 to 6.

9. A storage medium, said storage medium being a computer-readable storage medium for computer-readable storage, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Dependable processing method and device for signing on electronic document

    CN107665314A

  • Online signature method and device, electronic equipment and computer readable storage medium

    CN111756787A