Signature appearance consistency verification method, storage medium, device and product
By obtaining signature appearance features and calculating similarity values, the accuracy problem of signature appearance consistency verification is solved, efficient and automated signature appearance consistency verification is achieved, and the evaluation accuracy and efficiency of signature appearance consistency are improved.
Patent Information
- Application Number
- CN202510912941.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-03
- Publication Date
- 2025-10-10
AI Technical Summary
In the prior art, when users switch between signature products from different manufacturers, it is difficult to achieve accurate signature appearance consistency verification through manual visual observation, resulting in inaccurate signature appearance consistency verification results.
By obtaining the signature appearance features of the two format files to be verified, including the signature position coordinates, size, color and transparency, the signature appearance similarity value is calculated to achieve automatic comparison and quantitative evaluation of the consistency of signature appearance.
It achieves accurate evaluation and efficient automatic verification of signature appearance consistency, reduces manual intervention, and improves the accuracy and efficiency of signature appearance consistency verification.
Smart Images

Figure CN120766293A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of digital signature technology, and more specifically, to a method, storage medium, device, and product for verifying signature appearance consistency. Background Art
[0002] Electronic signature consistency refers to the comparison of signature appearance elements across documents signed using different signature products, using the same document format, signature image, and positioning method. In scenarios such as legal documents and financial contracts where signature compliance is critical, when users switch between signature products from different vendors, electronic signature consistency verification is required to ensure that the signature appearance of the new product is highly consistent with the original product, based on business continuity and compliance requirements.
[0003] Currently, in order to ensure that the signature appearance of newly connected products is highly consistent with that of existing products, users carefully review the content of documents signed by different signature products and roughly compare the relevant elements of the signature appearance. This method relies solely on manual visual observation and lacks precise evaluation and quantitative data, making it difficult to ensure the accuracy of the consistency test results.
[0004] Therefore, how to provide a technical solution for a method of signature appearance consistency verification with higher accuracy has become a technical problem that needs to be solved urgently. Summary of the Invention
[0005] The purpose of some embodiments of the present application is to provide a method, storage medium, device and product for signature appearance consistency verification. The technical solutions of the embodiments of the present application can improve the accuracy and efficiency of signature appearance consistency comparison.
[0006] In the first aspect, some embodiments of the present application provide a method for verifying the consistency of signature appearance, including: obtaining two layout files to be verified, wherein the two layout files to be verified are obtained by signing different signature components; the file content, file type, signature image and signature positioning method of the two layout files to be verified are the same; obtaining each signature appearance feature in each of the two layout files to be verified, wherein the signature appearance features include: signature position coordinates, signature image size, signature image color and signature image transparency; according to the each signature appearance feature, calculating the signature appearance similarity value between the two layout files to be verified; and confirming whether the signature appearance between the two layout files to be verified is consistent through the signature appearance similarity value.
[0007] Some embodiments of the present application obtain the appearance features of each signature in two to-be-verified format files, then calculate a signature appearance similarity value for the signatures in the two to-be-verified format files based on the signature appearance features. This signature appearance similarity value is then used to determine whether the signature appearances of the two to-be-verified format files are consistent. Embodiments of the present application can automatically compare the appearance consistency of signatures between two to-be-verified format files. By quantifying signature appearance as data, accurate assessment of signature appearance consistency is achieved without the need for human intervention, resulting in high efficiency.
[0008] In some embodiments, obtaining each signature appearance feature in each of the two to-be-verified format files includes: parsing each of the to-be-verified format files to obtain each parsed file; and extracting each signature appearance feature from each of the parsed files.
[0009] Some embodiments of the present application parse and extract each format file to be verified to obtain the appearance features of each signature, thereby providing an effective data basis for subsequent signature appearance consistency comparison.
[0010] In some embodiments, extracting the appearance features of each signature from each parsed file includes: searching for the corresponding signature domain object based on the signature domain object number; extracting the signature position coordinates using the annotation information of the signature domain object; and determining the signature image size through the signature position coordinates; extracting the signature image of the signature domain object; traversing and calculating the signature image to obtain the signature image color and the signature image transparency.
[0011] Some embodiments of the present application extract signature appearance features by parsing signature field related information in a file, thereby achieving accurate extraction of signature appearance features.
[0012] In some embodiments, based on the various signature appearance features, the signature appearance similarity value between the two to-be-verified layout files is calculated, including: obtaining the weight of each signature appearance feature in the signature appearance features; calculating the appearance similarity between each signature appearance feature in the two to-be-verified layout files; wherein the appearance similarity includes: position similarity, size similarity, color similarity and transparency similarity; and performing weighted summation of the appearance similarity and the weight of each signature appearance feature to obtain the signature appearance similarity value.
[0013] Some embodiments of the present application calculate the signature appearance similarity value between two files by using the weight and appearance similarity of each signature appearance feature in the signature appearance features, thereby achieving effective verification of signature appearance consistency.
[0014] In some embodiments, the signature appearance similarity value is used to confirm whether the signature appearances of the two layout files to be verified are consistent, including: if the signature appearance similarity value is greater than or equal to the verification threshold, then it is confirmed that the signature appearances of the two layout files to be verified are consistent; if the signature appearance similarity value is less than the verification threshold, then it is confirmed that the signature appearances of the two layout files to be verified are inconsistent.
[0015] Some embodiments of the present application determine whether the signature appearances of two files are consistent by comparing the signature appearance similarity value with a verification threshold, thereby achieving quantitative comparison of signature appearance consistency.
[0016] In some embodiments, when confirming that the signature appearances of the two to-be-verified format files are consistent, the method further includes: feeding back the file names, signature component identifiers, and the signature appearance similarity values of the two to-be-verified format files.
[0017] Some embodiments of the present application provide feedback of relevant information to timely inform relevant personnel when the signature appearance is consistent.
[0018] In some embodiments, when it is confirmed that the signature appearances between the two layout files to be verified are inconsistent, the method further includes: obtaining a difference value of each signature appearance feature in the two layout files to be verified; based on the difference value, generating a notification message or a processing plan; wherein the notification message is used to inform relevant personnel to perform manual review; the processing plan is used to adjust the signature appearance of one of the two layout files to be verified based on the signature appearance of the other layout file.
[0019] Some embodiments of the present application can promptly inform relevant personnel and handle the issue in a timely manner by generating notification information or processing solutions when the signature appearance is inconsistent.
[0020] In the second aspect, some embodiments of the present application provide a device for verifying the consistency of signature appearance, including: a file acquisition module, used to obtain two layout files to be verified, wherein the two layout files to be verified are obtained by signing different signature components; the file content, file type, signature image and signature positioning method of the two layout files to be verified are the same; a feature acquisition module, used to obtain each signature appearance feature in each of the two layout files to be verified, wherein the signature appearance features include: signature position coordinates, signature image size, signature image color and signature image transparency; a similarity calculation module, used to calculate the signature appearance similarity value between the two layout files to be verified based on the each signature appearance feature; a comparison module, used to confirm whether the signature appearance between the two layout files to be verified is consistent through the signature appearance similarity value.
[0021] In a third aspect, some embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the method described in any embodiment of the first aspect.
[0022] In a fourth aspect, some embodiments of the present application provide an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor can implement a method as described in any embodiment of the first aspect when executing the program.
[0023] In a fifth aspect, some embodiments of the present application provide a computer program product, comprising a computer program, wherein the computer program, when executed by a processor, can implement the method described in any embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of some embodiments of the present application, the following is a brief introduction to the drawings required for use in some 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 paying any creative work.
[0025] Figure 1 A system diagram for signature appearance consistency verification provided for some embodiments of the present application; Figure 2 One of the flow charts of the method for signature appearance consistency verification provided in some embodiments of the present application; Figure 3 Flowchart 2 of the method for signature appearance consistency verification provided in some embodiments of the present application; Figure 4 A block diagram of a device for verifying signature appearance consistency provided in some embodiments of the present application; Figure 5 A schematic diagram of an electronic device is provided for some embodiments of the present application. DETAILED DESCRIPTION
[0026] The technical solutions in some embodiments of the present application will be described below in conjunction with the drawings in some embodiments of the present application.
[0027] 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.
[0028] In electronic document management, electronic signatures for layout documents are an important means of ensuring the authenticity, integrity, and non-repudiation of documents. To implement the signature operation of layout documents, there are a variety of signature products available on the market. Although the layout documents signed by the signature components used by each signature product contain valid signature information, there may be differences in the visual effects of the signature, such as the position, size, color, and transparency. This difference not only affects the aesthetics and professionalism of the document, but more importantly, in some scenarios with high requirements for the standardization of signatures (such as legal documents, financial contracts, etc.), it may cause doubts about the effectiveness of the signature. At present, for the consistency verification of the appearance of layout document signatures, the manual identification method has revealed extremely significant inherent defects. From the above-mentioned related technologies, it can be seen that the existing technology lacks a technical solution for efficient and accurate signature appearance consistency verification.
[0029] In view of this, some embodiments of the present application provide a method for verifying the consistency of signature appearance. This method can first extract signature appearance features from two layout files to be verified, and then determine the signature appearance similarity value of the electronic signatures between the two layout files to be verified based on the signature appearance features. Based on the signature appearance similarity value, it can be confirmed whether the signature appearances of the two layout files to be verified are consistent. Some embodiments of the present application can efficiently and accurately complete the consistency determination of the signature appearances of different signature components, thereby ensuring the consistency and standardization of the signature appearances of different signature components and improving the quality and credibility of electronic document signatures.
[0030] The following is combined with Figure 1 The overall structure of the signature appearance consistency verification system provided by some embodiments of the present application is exemplified.
[0031] like Figure 1 As shown, some embodiments of the present application provide a system diagram for signature appearance consistency verification. The signature appearance consistency verification system may include: a terminal 100 and a server 200. Specifically, the terminal 100 may send two layout files to be verified to the server 200. The server 200 may perform feature extraction on the two layout files to be verified to obtain signature appearance features; then, perform similarity calculations between the signature appearance features to obtain signature appearance similarity values; and finally, determine whether the signature appearances of the two layout files to be verified are consistent based on the signature appearance similarity values.
[0032] In some embodiments of the present application, the terminal 100 may be a mobile terminal or a non-portable computer terminal, which is not specifically limited in the embodiments of the present application.
[0033] In other embodiments of the present application, if the terminal 100 has the functions of the server 200 for extracting signature features, calculating similarity, and determining the consistency of signature appearance of two format files to be verified, the server 200 may not be provided. Specifically, a flexible choice can be made in actual application scenarios, and the embodiments of the present application are not limited thereto.
[0034] The following is combined with Figure 2 The implementation process of signature appearance consistency verification performed by the server 200 provided in some embodiments of the present application is exemplified.
[0035] Please see the attached Figure 2 , Figure 2 A flowchart of a method for verifying signature appearance consistency is provided for some embodiments of the present application. The method for verifying signature appearance consistency may include: S210, obtaining two layout files to be verified, wherein the two layout files to be verified are obtained by signing different signature components; the two layout files to be verified have the same file content, file type, signature image and signature positioning method.
[0036] For example, in the specific example of this application, the data collection and document processing module in server 200 is used to obtain two layout files to be verified that were signed by different signature components, record the signature component identifier corresponding to each file in the two layout files to be verified, and introduce the layout files stored on external media into the verification workflow. It should be noted that the verification prerequisite is that the file content, file type, signature image, and signature positioning method of the two layout files to be verified are the same.
[0037] S220, obtaining each signature appearance feature in each of the two to-be-verified format files, wherein the signature appearance features include: signature position coordinates, signature image size, signature image color, and signature image transparency.
[0038] For example, in the specific example of this application, the signature feature extraction module in server 200 can extract the signature appearance features of the electronic signature from the format file to be verified. The signature position is represented by the signature position coordinates; the signature image size is represented by the width and height of the signature area; the signature image color is represented by the dominant color of the signature area; and the signature image transparency is obtained by the alpha channel value of the signature image. Signature appearance features can be flexibly expanded and are not specifically limited in this embodiment of the application.
[0039] In some embodiments of the present application, S220 may include: parsing the respective format files to be verified to obtain respective parsed files; and extracting the respective signature appearance features from the respective parsed files.
[0040] For example, in the specific example of this application, the signature feature extraction module parses the layout files according to different types of layout files (that is, the layout files to be verified) using a parsing method that is adapted thereto, extracts signature appearance features from each located signature domain, and supports special scenarios such as the extraction of invisible signatures, providing key data support for subsequent consistency verification work.
[0041] In some embodiments of the present application, the corresponding signature domain object is searched based on the signature domain object number; the signature position coordinates are extracted using the annotation information of the signature domain object; and the signature image size is determined using the signature position coordinates; the signature image of the signature domain object is extracted; the signature image is traversed and calculated to obtain the signature image color and the signature image transparency.
[0042] For example, in the specific examples of this application, the signature appearance features of different types of documents are used as examples for explanation.
[0043] For a PDF document (as a specific example of a layout file to be verified), the signature position coordinates and image size are obtained as follows: New signature field object numbers (referred to as numbers) are sequentially added to the reference text root field array. The corresponding signature field object is found based on these numbers. The signature coordinates within the PDF document are then precisely extracted using the annotation rectangle information (Rect key) within the signature field object. The four-point coordinates are converted to two points and the width and height of the signature image (i.e., the size of the signature image, in pts) for consistency verification of the signature position and size. The signature image color is obtained by extracting the signature image (or signature image) from the image object in the signature incremental update and calculating the most common color to determine the primary color. ImageIO.read() converts the image to a BufferedImage, iterates through each pixel of the signature image, and obtains the RGB (red, green, blue) and alpha channel values. The most common color is determined as the primary color. The average transparency is calculated by dividing the sum of the alpha values of all pixels by the total number of pixels (as a specific example of signature image transparency).
[0044] For OFD open-format documents (as another specific example of a format file to be verified), the specific method for obtaining the signature position coordinates and signature image size is as follows: obtain the signature information from the OFD file, obtain the signature coordinate outer border position information Boundary, and after a series of calculations, finally obtain the set of OFD signature coordinates for this time, thereby extracting the signature position coordinates and size of the OFD file (note that the unit is mm) for verifying the consistency of position and size. The specific method for obtaining the signature image color is as follows: extract the signature image from the signature structure, calculate the color with the highest occurrence rate to obtain the main color tone, convert the image to BufferedImage using ImageIO.read(), traverse each pixel of the image, obtain the RGB (red, green, blue) and Alpha channel values, traverse the color with the highest occurrence rate to obtain the main color tone, and use the sum of the Alpha values of all pixels divided by the total number of pixels to obtain the average transparency.
[0045] S230: Calculate the signature appearance similarity value between the two to-be-verified format files based on the signature appearance features.
[0046] For example, in a specific example of the present application, based on the signature appearance features obtained above, the signature appearance similarity value of the seal appearance (signature appearance) between two to-be-verified format files can be determined.
[0047] In some embodiments of the present application, S230 may include: obtaining the weight of each signature appearance feature in the signature appearance features; calculating the appearance similarity between each signature appearance feature in the two layout files to be verified; wherein the appearance similarity includes: position similarity, size similarity, color similarity and transparency similarity; performing weighted summation on the appearance similarity and the weight of each signature appearance feature to obtain the signature appearance similarity value.
[0048] For example, in the specific example of the present application, the similarity calculation module of the server 200 assigns corresponding weights to each signature appearance feature, such as k1, k2, k3, and k4, with a total weight of 1, including the weight k1 of the position feature, the weight k2 of the size feature, the weight k3 of the color feature, and the weight k4 of the transparency feature. The values of k1, k2, k3, and k4 can be flexibly set. Afterwards, the appearance similarity between each signature appearance feature among the signature appearance features signed by different signature components is first calculated. The specific calculation method for each signature appearance feature is as follows: Position similarity: Assume that the coordinates of the signatures in the two layout files to be verified are x1, y1 and x2, y2 respectively. Use Euclidean distance to measure the difference in the positions of the two signatures. The similarity value is between 0 and 1. The closer the value is to 1, the more similar it is. The calculation formula of position similarity A is:
[0049] Size similarity: Assume that the widths of the signatures in the two layout files to be verified are w1 and w2, and the heights are h1 and h2. The similarity value is between 0 and 1. The closer the value is to 1, the more similar it is. The size similarity B is calculated as follows:
[0050] Color similarity: Assume that the signature colors in the two to-be-verified format files are red1, green1, blue1 and red2, green2, blue2 respectively (in the RGB color model, the main colors of red-red, green-green, and blue-blue, the three channel values correspond to the three dimensions in the color space respectively, and the value range of each channel is an integer from 0 to 255, 0 indicates that the light intensity of the color channel is the minimum value, that is, there is no color component; 255 indicates that the light intensity of the color channel is the maximum value, that is, the color component reaches saturation). The similarity value is between 0 and 1. The closer the value is to 1, the more similar it is. The color similarity C is calculated as follows:
[0051] Transparency similarity: Assume that the transparency of the signatures in the two to-be-verified format files is t1 and t2 respectively (the transparency value t ranges from 0 to 255, where 0 indicates that the pixel is completely transparent, i.e., invisible; 255 indicates that the pixel is completely opaque, i.e., completely visible). The similarity value is between 0 and 1, and the closer the value is to 1, the more similar it is. The calculation formula for transparency similarity D is: .
[0052] Finally, according to the appearance similarity A, B, C and D of each signature appearance feature and the corresponding weight, the signature appearance similarity value Q is obtained, that is, .
[0053] S240: Determine whether the signature appearances of the two to-be-verified format files are consistent based on the signature appearance similarity value.
[0054] For example, in the specific example of the present application, by analyzing Q, it can be confirmed whether the signature appearances of the two format files to be verified are consistent.
[0055] In some embodiments of the present application, S240 may include: if the signature appearance similarity value is greater than or equal to the verification threshold, confirming that the signature appearance between the two layout files to be verified is consistent; if the signature appearance similarity value is less than the verification threshold, confirming that the signature appearance between the two layout files to be verified is inconsistent.
[0056] For example, in the specific example of the present application, a similarity threshold value is set (as a specific example of the verification threshold value, for example, a threshold value in the range of 0.5-1 can be flexibly set). When the similarity value of the integrated signature is greater than or equal to the similarity threshold value, it is determined that the appearance of the signatures of the different signature components is consistent; when the similarity value is less than the similarity threshold value, it is determined that the appearance of the signatures is inconsistent. For example, if the similarity threshold value is set to 0.8, the calculated similarity value is 0.7, and since 0.7<0.8, it is determined that the appearance of the signatures is inconsistent.
[0057] In some embodiments of the present application, in the case where it is confirmed that the appearance of the signatures of the two to-be-verified layout files is consistent, the file names, signature component identifiers, and the similarity value of the appearance of the signatures of the two to-be-verified layout files are fed back.
[0058] For example, in the specific example of the present application, if the appearance of the signatures is consistent, the result of the verification passing is output, and relevant information such as the file name, the signature component identifier, and the integrated similarity score (i.e., the similarity value of the appearance of the signatures) is returned for subsequent query and statistics.
[0059] In some embodiments of the present application, in the case where it is confirmed that the appearance of the signatures of the two to-be-verified layout files is inconsistent, the difference value of each signature appearance feature in the signature appearance features of the two to-be-verified layout files is obtained; based on the difference value, notification information or a processing scheme is generated; wherein the notification information is used to inform relevant personnel to perform manual auditing; and the processing scheme is used to adjust the signature appearance of one of the two to-be-verified layout files as a reference.
[0060] For example, in the specific example of the present application, if the appearance of the signatures is inconsistent, the result of the verification failing is output, and detailed difference information such as the difference value between various signature appearance features is provided. At the same time, a corresponding processing mechanism (as a specific example of the notification information or the processing scheme) can be triggered to notify relevant personnel to perform manual auditing or to adjust and optimize the parameters of the signature component. Specifically, the signature appearance of one of the two layout files can be taken as a reference to adjust the signature appearance of the other layout file.
[0061] The specific process of the signature appearance consistency verification provided by some embodiments of the present application will be described below with reference to the accompanying drawings. Figure 3 The specific process of the signature appearance consistency verification provided by some embodiments of the present application will be described below with reference to the accompanying drawings.
[0062] Please refer to the accompanying drawings Figure 3 , Figure 3 A method flowchart of the signature appearance consistency verification provided by some embodiments of the present application is shown in FIG. 2.
[0063] The above process will be described below.
[0064] S310: Obtain two format files to be verified that are signed out by different signature components.
[0065] The two format files to be verified have the same file content, file type, signature image and signature positioning method.
[0066] S320: parse each format file to be verified to obtain each parsed file.
[0067] S330, extracting each signature appearance feature from each parsed file.
[0068] S340: Obtain the weight of each signature appearance feature in the signature appearance features.
[0069] S350: Calculate the appearance similarity between each signature appearance feature in the two to-be-verified format files.
[0070] S360: Perform weighted summation of the appearance similarity and the weight of each signature appearance feature to obtain a signature appearance similarity value.
[0071] S370, determine whether the signature appearance similarity value is less than the verification threshold, if so, execute S380, otherwise execute D390.
[0072] S380: Confirm that the signature appearances of the two format files to be verified are inconsistent.
[0073] S390: Confirm that the signature appearances of the two format files to be verified are consistent.
[0074] It can be understood that the specific implementation process of S310~S390 can refer to the method embodiment provided above. To avoid repetition, the detailed description is appropriately omitted here.
[0075] Through some of the embodiments provided by the present application, it can be seen that the present application conducts an in-depth analysis of the signature results of different types of layout documents. For PDF format documents, the annotation rectangle information Rect key is extracted from the signature field of the incremental update of the signature, the coordinates of the current PDF signature are accurately extracted, and the signature image is extracted from the image object. The electronic signature of the OFD open layout document indirectly protects the OFD original text by protecting the signature description file. Therefore, the coordinates of the current OFD signature are accurately extracted from the signature coordinate outer frame position information Boundary in the signature description file, and the signature image is extracted from the signature structure. The above two different analysis methods are used to extract the appearance features of the signature. The similarity value is calculated by a multi-feature comprehensive evaluation method, which avoids the one-sidedness and limitations of a single feature evaluation. It comprehensively and objectively reflects the consistency of the signature appearance from multiple dimensions and can accurately detect subtle differences in the signature appearance; such as invisible signatures, thereby ensuring the consistency of the signature appearance in key aspects such as position, size, color, and transparency, greatly improving the standardization and professionalism of electronic document signatures and enhancing the legal effect and credibility of the documents. At the same time, this solution reduces operational difficulty, achieving a high degree of automation throughout the entire verification process, from data collection, preprocessing, feature extraction, similarity calculation, to consistency judgment and result feedback. This not only significantly reduces manual intervention and improves verification efficiency, but also effectively reduces errors caused by human factors, improving overall work efficiency.
[0076] Please refer to Figure 4 , Figure 4 The following is a block diagram illustrating the components of an apparatus for verifying signature appearance consistency, as provided in some embodiments of the present application. It should be understood that the apparatus for verifying signature appearance consistency corresponds to the aforementioned method embodiments and is capable of executing each step involved in the aforementioned method embodiments. The specific functions of the apparatus for verifying signature appearance consistency can be found in the description above, and a detailed description is omitted here to avoid repetition.
[0077] Figure 4The device for verifying the consistency of signature appearance includes at least one software functional module that can be stored in a memory in the form of software or firmware or solidified in the device for verifying the consistency of signature appearance, and the device for verifying the consistency of signature appearance includes: a file acquisition module 410, used to obtain two layout files to be verified, wherein the two layout files to be verified are obtained after being signed by different signature components; the file content, file type, signature image and signature positioning method of the two layout files to be verified are the same; a feature acquisition module 420, used to obtain each signature appearance feature in each of the two layout files to be verified, wherein the signature appearance features include: signature position coordinates, signature image size, signature image color and signature image transparency; a similarity calculation module 430, used to calculate the signature appearance similarity value between the two layout files to be verified based on the each signature appearance feature; a comparison module 440, used to confirm whether the signature appearance between the two layout files to be verified is consistent through the signature appearance similarity value.
[0078] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method, and will not be described in detail here.
[0079] Some embodiments of the present application further provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the operations corresponding to any of the above methods provided in the above embodiments.
[0080] Some embodiments of the present application further provide a computer program product, which includes a computer program, wherein when the computer program is executed by a processor, it can implement the operations corresponding to any of the above methods provided in the above embodiments.
[0081] like Figure 5 As shown, some embodiments of the present application provide an electronic device 500, which includes: a memory 510, a processor 520, and a computer program stored in the memory 510 and executable on the processor 520, wherein the processor 520 can implement a method as described in any of the above embodiments when reading the program from the memory 510 through the bus 530 and executing the program.
[0082] Processor 520 can process digital signals and can include various computing architectures, such as a complex instruction set computer architecture, a reduced instruction set computer architecture, or an architecture that implements a combination of multiple instruction sets. In some examples, processor 520 can be a microprocessor.
[0083] The memory 510 can be used to store instructions executed by the processor 520 or data related to the instructions execution process. The instructions and / or data can include code for implementing some or all of the functions of one or more modules described in the embodiments of the present application. The processor 520 of the embodiments of the present disclosure can be configured to execute the instructions in the memory 510 to implement the methods shown in the above. The memory 510 includes a dynamic random access memory, a static random access memory, a flash memory, an optical memory, or other memories well known to those skilled in the art.
[0084] The above only describes the embodiments of the present application and is not used to limit the protection scope of the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0085] The above only describes the embodiments of the present application and is not used to limit the protection scope of the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0086] It should be noted that, in this document, the terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.
Claims
1. A method for checking signature appearance consistency, characterized in that: include: Obtain two format files to be verified, wherein the two format files to be verified are signed by different signature components; the two format files to be verified have the same file content, file type, signature image, and signature positioning method; Acquire each signature appearance feature in each of the two to-be-verified format files, wherein the signature appearance features include: signature position coordinates, signature image size, signature image color, and signature image transparency; Calculating the signature appearance similarity value between the two to-be-verified format files based on the respective signature appearance features; Whether the signature appearances of the two to-be-verified format files are consistent is confirmed through the signature appearance similarity value.
2. The method according to claim 1, wherein The acquiring of each signature appearance feature in each of the two to-be-verified format files includes: Parsing each of the to-be-verified format files to obtain each parsed file; Extracting each signature appearance feature from each parsed file.
3. The method according to claim 2, wherein The extracting the signature appearance features from the parsed files includes: Find the corresponding signature domain object based on the signature domain object number; Extracting the signature position coordinates using the annotation information of the signature field object; and determining the signature image size using the signature position coordinates; Extracting the signature image of the signature domain object; The signature image is traversed and calculated to obtain the signature image color and the signature image transparency.
4. The method according to any one of claims 1 to 3, wherein Calculating the signature appearance similarity value between the two to-be-verified format files based on the respective signature appearance features includes: Obtaining a weight of each signature appearance feature in the signature appearance features; Calculating the appearance similarity between each signature appearance feature in the two to-be-verified format files; wherein the appearance similarity includes: position similarity, size similarity, color similarity, and transparency similarity; The appearance similarity and the weight of each signature appearance feature are weighted and summed to obtain the signature appearance similarity value.
5. The method according to any one of claims 1 to 3, wherein The step of confirming whether the signature appearances of the two to-be-verified format files are consistent with each other through the signature appearance similarity value includes: If the signature appearance similarity value is greater than or equal to the verification threshold, it is confirmed that the signature appearances of the two to-be-verified format files are consistent; If the signature appearance similarity value is less than the verification threshold, it is determined that the signature appearances of the two to-be-verified format files are inconsistent.
6. The method according to claim 5, wherein In the case of confirming that the signature appearances of the two to-be-verified format files are consistent, the method further includes: Feedback is given of the file names, signature component identifiers and signature appearance similarity values of the two to-be-verified format files.
7. The method according to claim 5, wherein In the case of confirming that the signature appearances of the two to-be-verified format files are inconsistent, the method further includes: Obtaining a difference value of each signature appearance feature among the signature appearance features in the two to-be-verified format files; Based on the difference value, a notification message or a processing plan is generated; wherein, the notification message is used to inform relevant personnel to perform manual review; the processing plan is used to adjust the signature appearance of one of the two layout files to be verified based on the signature appearance of the other layout file.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program is executed by a processor to perform the method according to any one of claims 1 to 7.
9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the computer program executes the method according to any one of claims 1 to 7 when run by the processor.
10. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program is executed by a processor to perform the method according to any one of claims 1 to 7.