Electronic signature backtracking method and device, computer equipment and storage medium
By obtaining and parsing the mouse and touch screen movement information when the user's electronic signature is generated and displayed, the problem of insufficient electronic signature backtracking capabilities in the prior art is solved, and the security and credibility of electronic signatures are improved.
Patent Information
- Application Number
- CN202411374552.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-03
AI Technical Summary
The existing electronic signature technology is difficult to accurately record and reproduce the dynamic process and details of user signatures, which limits the backtracking ability of electronic signatures. Since signatures are usually embedded in preset frameworks, the existing backtracking technology cannot effectively support cross-document Information transmission leads to a decrease in the credibility of electronic signatures.
When the user conducts electronic signature, the mouse and touch screen movement information is obtained according to the preset polling time interval, the sub-dynamic signature trajectory is generated, and these trajectories are parsed to obtain source attribute information, generate incremental data, and add it to the backtracking interface image , to fully display the user's electronic signature dynamic trajectory.
It realizes accurate traceability of electronic signatures, improves the security and authentication capabilities of electronic signatures, and meets the needs of high security and high credibility.
Smart Images

Figure CN119248141A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of machine learning technology, which is applied in the financial field, and in particular to an electronic signature backtracking method, device, computer equipment and storage medium. Background Art
[0002] Electronic signatures are increasingly used in modern business and daily life. Electronic signature solutions in financial systems such as insurance application processes can not only improve efficiency in paperless office, but also ensure the legitimacy and security of signatures in electronic transactions and contract signing.
[0003] Limited by the fact that early versions of software cannot record user operation tracks, current electronic signature technology generally records the signing process through static images or simplified signature tracks, which makes it difficult to accurately record and reproduce the dynamic process and details of user signatures, limiting the ability to trace back electronic signatures. At the same time, since electronic signatures are usually embedded in a preset framework for confidentiality, existing traceability technology fails to effectively support cross-document information transmission, making it difficult to obtain complete user operation records. The above problems have reduced the credibility of current electronic signatures.
[0004] Therefore, there is an urgent need for an accurate backtracking method for electronic signatures to ensure that the relevant rights and interests of the companies corresponding to the financial system will not be affected. Summary of the invention
[0005] The present application provides an electronic signature backtracking method, device, computer equipment and storage medium, aiming to solve the problem that the current electronic signature technology generally records the signing process through static images or simplified signature trajectories, which makes it difficult to accurately record and reproduce the dynamic process and details of the user's signature, limiting the ability to backtrack the electronic signature. At the same time, since electronic signatures are usually embedded in a preset framework for confidentiality, the existing backtracking technology fails to effectively support cross-document information transmission, making it difficult to obtain complete user operation records. The above problems lead to problems such as reduced credibility of current electronic signatures. The provided method can improve the security and authentication capabilities of electronic signatures and meet the needs of high-security and high-credibility electronic signatures.
[0006] In a first aspect, the present application provides an electronic signature backtracking method, comprising:
[0007] When the user performs electronic signature, the user's mouse movement information and touch screen movement information on the preset signature interface are obtained according to the preset polling time interval;
[0008] Generate a sub-dynamic signature trajectory according to the mouse movement information and the touch screen movement information;
[0009] Parsing the sub-dynamic signature trajectory to obtain source attribute information corresponding to the dynamic signature trajectory;
[0010] Generate incremental data according to source attribute information corresponding to each polling time interval;
[0011] According to the generation time corresponding to each of the incremental data, the source attribute information corresponding to each of the incremental data is added to the preset backtracking interface image;
[0012] In the backtracking interface image, the corresponding sub-dynamic signature trajectory is displayed in sequence through each source attribute information to completely display the dynamic signature trajectory of the user's electronic signature and complete the backtracking of the user's electronic signature.
[0013] In some embodiments, obtaining the mouse movement information and touch screen movement information of the user in a preset signature interface according to a preset polling time interval includes: setting a first event listener and a second event listener in the signature interface; wherein the first event listener is used to obtain the mouse coordinates corresponding to the preset signature interface, and the second event listener is used to obtain the touch screen coordinates corresponding to the preset signature interface; obtaining multiple mouse coordinates monitored by the first event listener and multiple touch screen coordinates monitored by the second event listener within the polling time interval; generating the mouse movement information according to the multiple mouse coordinates and generating the touch screen movement information according to the multiple touch screen coordinates.
[0014] Exemplarily, the sub-dynamic signature trajectory is generated according to the mouse movement information and the touch screen movement information: obtaining a timestamp corresponding to each of the mouse coordinates in the multiple mouse movement information; obtaining a timestamp corresponding to each of the touch screen coordinates in the multiple touch screen movement information; sorting the multiple mouse coordinates and touch screen coordinates according to the timestamps corresponding to the multiple mouse coordinates and touch screen coordinates; generating the sub-dynamic signature trajectory according to the sorted mouse coordinates and touch screen coordinates.
[0015] In some embodiments, parsing the sub-dynamic signature trajectory and obtaining source attribute information corresponding to the dynamic signature trajectory includes: performing feature extraction on each of the sub-dynamic signature trajectories to obtain feature information corresponding to the sub-dynamic signature trajectory; converting the feature information into a preset image encoding format to obtain source attribute information corresponding to the sub-dynamic signature.
[0016] Exemplarily, performing feature extraction on each of the sub-dynamic signature trajectories to obtain feature information corresponding to the sub-dynamic signature trajectory includes: obtaining timestamp information corresponding to the sub-dynamic signature trajectory; inputting the timestamp information corresponding to the sub-dynamic signature trajectory into a preset feature extractor, and the feature extractor outputs the feature information corresponding to the sub-dynamic signature trajectory; wherein the feature information includes at least one or more of finger / mouse movement speed information, finger / mouse movement acceleration information, finger / mouse movement position information, finger / mouse movement angle information and finger / mouse movement direction information.
[0017] Exemplarily, converting the feature information into a preset image coding format includes: mapping the feature information to a two-dimensional image plane; generating a heat map based on the mapped image screen; converting the heat map into the image coding format, and using the converted heat map as the sub-attribute information.
[0018] In some embodiments, the sub-dynamic signature trajectory corresponding to each of the source attribute information is displayed in sequence in the backtracking interface image, including: obtaining the throttling time corresponding to the sub-dynamic signature trajectory; the throttling time is greater than 250 milliseconds and less than 350 milliseconds; and displaying the sub-dynamic signature trajectory corresponding to each of the source attribute information in sequence in the backtracking interface image according to the throttling time.
[0019] In a second aspect, the present application provides an electronic signature backtracking device, comprising:
[0020] The information acquisition module is used to acquire the user's mouse movement information and touch screen movement information on the preset signature interface according to the preset polling time interval when the user performs electronic signature;
[0021] A trajectory generation module, used to generate a sub-dynamic signature trajectory according to the mouse movement information and the touch screen movement information;
[0022] A trajectory parsing module, used to parse the sub-dynamic signature trajectory and obtain source attribute information corresponding to the dynamic signature trajectory;
[0023] An incremental generation module, used to generate incremental data according to source attribute information corresponding to each polling time interval;
[0024] An image adding module, used for adding source attribute information corresponding to each incremental data to a preset backtracking interface image according to the generation time corresponding to each incremental data;
[0025] The backtracking completion module is used to display the corresponding sub-dynamic signature trajectory through each source attribute information in the backtracking interface image in sequence, so as to completely display the dynamic signature trajectory of the user's electronic signature and complete the backtracking of the user's electronic signature.
[0026] In a third aspect, the present application further provides a computer device, including:
[0027] Memory and processor;
[0028] The memory is used to store computer programs;
[0029] The processor is used to execute the computer program and implement the steps of the electronic signature backtracking method described in the first aspect when executing the computer program.
[0030] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the steps of the electronic signature backtracking method as described in the first aspect above.
[0031] The present application discloses an electronic signature backtracking method, device, computer equipment and storage medium. First, when a user performs an electronic signature, the mouse movement information and touch screen movement information of the user in the preset signature interface are obtained according to the preset polling time interval. Then, a sub-dynamic signature trajectory is generated according to the mouse movement information and the touch screen movement information. Then, the sub-dynamic signature trajectory is parsed to obtain the source attribute information corresponding to the dynamic signature trajectory. Further, incremental data is generated according to the source attribute information corresponding to each polling time interval. Furthermore, according to the generation time corresponding to each incremental data, the source attribute information corresponding to each incremental data is added to the preset backtracking interface image. Finally, the corresponding sub-dynamic signature trajectory is displayed in sequence in the backtracking interface image through each source attribute information to fully display the dynamic signature trajectory of the user's electronic signature, thereby completing the backtracking of the user's electronic signature.
[0032] The method provided in the present application obtains the user's mouse movement information and touch screen movement information in the signature interface by setting a polling time interval, generates a sub-dynamic signature trajectory, and parses these trajectories to obtain source attribute information. Then, incremental data is generated according to each polling time interval and added to the preset backtracking interface image, so that the corresponding sub-dynamic signature trajectory is displayed in turn, realizing a complete backtracking display of the user's electronic signature.
[0033] At the same time, compared with the existing technology, the provided method can record and trace every detail of the signing process in detail, improve the security and authentication capabilities of electronic signatures, and meet the needs of high-security and high-reliability electronic signatures.
[0034] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 This is a schematic flow chart of the steps of a first electronic signature backtracking method provided by an embodiment of the present application;
[0037] Figure 2 is a schematic flow chart of the steps of a method for obtaining mouse movement information and touch screen movement information provided by an embodiment of the present application;
[0038] Figure 3 is a schematic flow chart of the steps of a method for obtaining source attribute information provided by an embodiment of the present application;
[0039] Figure 4 It is a structural schematic diagram of an electronic signature backtracking device provided in one embodiment of the present application;
[0040] Figure 5 It is a schematic block diagram of the structure of a computer device provided in one embodiment of the present application.
[0041] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0044] It should be understood that, in order to facilitate the clear description of the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", etc. are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not necessarily limit the difference.
[0045] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0046] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0047] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0048] Electronic signatures are increasingly used in modern business and daily life. Electronic signature solutions in financial systems such as insurance application processes can not only improve efficiency in paperless office, but also ensure the legitimacy and security of signatures in electronic transactions and contract signing.
[0049] Limited by the fact that early versions of software cannot record user operation tracks, current electronic signature technology generally records the signing process through static images or simplified signature tracks, which makes it difficult to accurately record and reproduce the dynamic process and details of user signatures, limiting the ability to trace back electronic signatures. At the same time, since electronic signatures are usually embedded in a preset framework for confidentiality, existing traceability technology fails to effectively support cross-document information transmission, making it difficult to obtain complete user operation records. The above problems have reduced the credibility of current electronic signatures.
[0050] For example, the previous electronic signature used canvas technology (Canvas is a drawing technology provided by HTML5, which dynamically draws graphics and images through JavaScript. It allows developers to create complex graphics, animations, and other visualization effects on web pages, and is widely used in games, graphic design, data visualization and other fields. Canvas uses a rectangular area, which can be drawn by scripts to achieve pixel-level control, so that Canvas-based applications can perform rich user interactions and real-time content updates). The old version of rrweb (rrweb is an open source library for web page recording and playback, mainly used to monitor user interaction in web applications. It can help developers record user sessions in real time and play back recorded content when needed for analysis, debugging or user support) does not support recording canvas electronic signature tracks. At the same time, the electronic signature page is nested in an iframe (iframe (Interne Frame) is an HTML element that allows another HTML page to be embedded in the current page. Iframe is usually used to embed external content or web pages into the parent web page), and does not support backtracking information penetration.
[0051] Therefore, there is an urgent need for an accurate backtracking method for electronic signatures to ensure that the relevant rights and interests of the companies corresponding to the financial system will not be affected.
[0052] To solve the above problems, please refer to Figure 1 , Figure 1 This is a schematic flow chart of an electronic signature backtracking method provided by an embodiment of the present application. The electronic signature backtracking method can be implemented by a computer device, which can be deployed on a single server or a server cluster. It can also be deployed on a handheld terminal, a laptop computer, a wearable device or a robot, etc.
[0053] It should be noted that the provided method can be applied not only to the financial field to trace back the user's electronic signature, but also to any other scenarios with electronic signatures (such as medical and education, etc.). Therefore, the embodiments of this application do not limit the field of the provided method.
[0054] To solve the above problems, please refer to Figure 1 Specifically, Figure 1 As shown, the provided electronic signature backtracking method includes steps S101 to S106. The details are as follows:
[0055] Step S101. When a user performs electronic signature, the mouse movement information and touch screen movement information of the user on the preset signature interface are obtained according to a preset polling time interval.
[0056] Specifically, when a user performs an electronic signature, the provided method will capture the user's actions in the signature interface according to a preset polling time interval (e.g., every 300 milliseconds). This includes mouse movement information and touch screen movement information, such as coordinate position, movement speed, pressure (which can be obtained when the interface supports touch pressure detection) and other signals. This ensures that all user action information when signing is captured in real time and accurately, providing a complete data basis for subsequent signature trajectory restoration and analysis.
[0057] Exemplarily, when the preset signature interface is canvas, the mousemove and touchmove events can be used to capture the user's movement trajectory on the canvas in real time.
[0058] Step S102: Generate a sub-dynamic signature trajectory according to the mouse movement information and the touch screen movement information.
[0059] Specifically, according to the mouse and touch screen movement information captured in step S101, this information is converted into a corresponding sub-dynamic signature trajectory segment. The movement information collected in each polling time interval will generate a signature trajectory segment. This segmented generation method achieved by polling time setting helps to accurately record each part of the signature trajectory, so that the entire signature process can be decomposed and studied, which is conducive to the accurate restoration and verification of the signature.
[0060] In some embodiments, Figure 2 As shown, the mouse movement information and touch screen movement information of the user in the preset signature interface are obtained according to the preset polling time interval, including steps S101 a to S101 c.
[0061] Step S101 a. Set a first event listener and a second event listener in the signature interface; wherein the first event listener is used to obtain the mouse coordinates corresponding to the preset signature interface, and the second event listener is used to obtain the touch screen coordinates corresponding to the preset signature interface.
[0062] By setting two event listeners on the signature interface: the first event listener is used to capture the coordinate information of the mouse, and the second event listener is used to capture the coordinate information of the touch screen. The listener monitors the user's operation in real time and records the user's signature trajectory at any time. Dynamic monitoring of signature behavior is achieved to ensure that the user's mouse and touch screen operation data can be efficiently captured. Setting listeners separately can accurately capture different input devices and improve the accuracy and reliability of data acquisition.
[0063] Step S101 b. Acquire multiple mouse coordinates monitored by the first event listener and multiple touch screen coordinates monitored by the second event listener within a polling time interval.
[0064] According to the preset polling time interval (for example, every 100ms), the system calls the listener multiple times within the time interval to obtain multiple coordinate information of the mouse and touch screen. These coordinate information records the movement trajectory of the user's mouse or finger on the signature interface. The timed polling method can effectively capture a large number of data points in a short period of time to ensure the detailed restoration of the signature process. Acquiring multiple coordinates at the same time makes the data richer and more continuous, which helps to generate a smooth signature trajectory (such as by using JavaScript to define a function captureUserMovement(event) to handle captured mouse movement and touch screen movement events. This function records the coordinate position of the mouse or touch screen on the Canvas.).
[0065] Step S101 c. Generate mouse movement information according to a plurality of mouse coordinates and generate touch screen movement information according to a plurality of touch screen coordinates.
[0066] According to the multiple mouse coordinates and touch screen coordinates collected in step S101 b, mouse movement information and touch screen movement information are generated respectively. The movement information includes detailed data such as movement path, speed, timestamp, etc. The refined movement information record provides a basis for the subsequent signature trajectory generation and verification. Generating mouse and touch screen movement information separately at the same time enables different input device data to be processed and analyzed independently, which helps to improve the flexibility and accuracy of data processing (such as through the captureUserMovement(event) function, periodically (according to the preset polling time interval, for example, every 100 milliseconds) obtain and record the movement information of the mouse and touch screen). In summary, the provided electronic signature backtracking method can record and restore the user's signing process in detail, ensuring the high integrity and authenticity of the signature data. This not only helps to verify the validity of the signature, but also ensures the security and reliability of the electronic signature system.
[0067] Exemplarily, a sub-dynamic signature trajectory is generated based on mouse movement information and touch screen movement information: obtain a timestamp corresponding to each mouse coordinate in multiple mouse movement information; obtain a timestamp corresponding to each touch screen coordinate in multiple touch screen movement information; sort the multiple mouse coordinates and touch screen coordinates according to the timestamps corresponding to the multiple mouse coordinates and touch screen coordinates; generate a sub-dynamic signature trajectory based on the sorted mouse coordinates and touch screen coordinates.
[0068] By standardizing the timeline, we can ensure that data collected from different devices can be seamlessly integrated, and timestamp sorting can maintain the temporal consistency of the signature, ensuring the true restoration of the signature trajectory (for example, in the sendMovements function, a sub-dynamic signature trajectory is generated based on the captured movement information. Use the beginPath, moveTo, and lineTo methods of Canvas to connect each coordinate point into a trajectory, and save the generated trajectory information as a sub-dynamic signature trajectory object). At the same time, the generated sub-dynamic signature trajectory carefully reflects each step of the user's signature, making the signature backtracking highly detailed and highly restored, providing an accurate data basis for subsequent signature verification and analysis.
[0069] Step S103: Analyze the sub-dynamic signature trajectory to obtain source attribute information corresponding to the dynamic signature trajectory.
[0070] Specifically, the provided method parses each generated sub-dynamic signature trajectory and extracts its source attribute information (such as the src (source) attribute. In HTML, the src attribute is used to specify the URL of an external resource). These source attribute information may include the coordinate point sequence, movement speed, angle change, pressure, etc. when signing. Extracting valuable source attribute information can provide rich data support for the authenticity verification and dynamic analysis of the signature trajectory. It realizes the conversion of dynamic trajectory data into analyzable source attribute information.
[0071] In some embodiments, please refer to Figure 3 Parsing the sub-dynamic signature trajectory and obtaining source attribute information corresponding to the dynamic signature trajectory includes step S103a and step S103b.
[0072] Step S103a. Perform feature extraction on each sub-dynamic signature trajectory to obtain feature information corresponding to the sub-dynamic signature trajectory.
[0073] By extracting features from each sub-dynamic signature trajectory, relevant feature information can be obtained. This feature information includes but is not limited to the speed, acceleration, position, angle and direction of the user when signing. Furthermore, through feature extraction, each step of the user's signature can be carefully analyzed, thereby providing detailed data support for the authenticity verification of the signature. The extracted feature information can be further used for behavioral analysis and pattern recognition to help identify the identity of the signer.
[0074] Step S103b. Convert the feature information into a preset image coding format to obtain source attribute information corresponding to the sub-dynamic signature.
[0075] The extracted feature information is converted into a preset image coding format to generate the source attribute information of the sub-dynamic signature. This image coding format may include intuitive representations such as heat maps, as described in sub-implementation C. Image coding can more intuitively display signature features and improve the comprehensibility and visualization of data. By converting to an image format, the feature information is convenient for storage, transmission and subsequent processing, thereby improving data processing efficiency (such as by dynamically updating the src attribute of the image tag, the user's signature track can be displayed to the user in real time, thereby enhancing the user interaction experience. For example, in the generateSubDynamicSi gnatureTrack function, the generated sub-dynamic signature track is parsed. The parsed signature track is exported as image data in Base64 encoding format to obtain the corresponding source attribute information (i.e., the src attribute value)).
[0076] Through the above embodiments, the user's electronic signature behavior can be analyzed and recorded more comprehensively and meticulously, which not only improves the analysis and verification capabilities of signature data, but also increases the efficiency of data storage and transmission.
[0077] Exemplarily, feature extraction is performed on each sub-dynamic signature trajectory to obtain feature information corresponding to the sub-dynamic signature trajectory, including: obtaining timestamp information corresponding to the sub-dynamic signature trajectory; inputting the timestamp information corresponding to the sub-dynamic signature trajectory into a preset feature extractor, and the feature extractor outputs the feature information corresponding to the sub-dynamic signature trajectory; wherein the feature information includes at least one or more of finger / mouse movement speed information, finger / mouse movement acceleration information, finger / mouse movement position information, finger / mouse movement angle information and finger / mouse movement direction information.
[0078] By obtaining the timestamp information of the sub-dynamic signature trajectory. The timestamp information is input into the preset feature extractor, and the feature extractor outputs the corresponding feature information based on the input timestamp information. The feature information includes but is not limited to the following finger / mouse movement speed information, finger / mouse movement acceleration information, finger / mouse movement position information, finger / mouse movement angle information and finger / mouse movement direction information. Then, through feature extraction, the details of the signature trajectory can be deeply analyzed to extract rich behavioral features. These feature information helps to more accurately record and understand the user's signature behavior, and provide more detailed data support for the subsequent dynamic signature trajectory generation and verification.
[0079] Exemplarily, converting the feature information into a preset image coding format includes: mapping the feature information to a two-dimensional image plane; generating a heat map based on the mapped image screen; converting the heat map into an image coding format, using the converted heat map as sub-attribute information.
[0080] The method provided maps the extracted feature information into a two-dimensional image plane and generates a heat map according to the mapped two-dimensional image plane. The heat map visualizes the high-frequency and low-frequency action areas in the signature trajectory, reflecting the feature density of the signature. The generated heat map is converted into an image encoding format as the final source attribute information. The two-dimensional heat map provides an intuitive way to represent the user's signature features, making the analysis and verification process more intuitive. Through image encoding, the feature information can be efficiently stored, transmitted and processed to ensure the consistency and integrity of the data. At the same time, the heat map can highlight the key action areas in the signature process and improve the accuracy and readability of signature tracing.
[0081] At the same time, the heat map can be compressed and saved in an image encoding format. This helps save storage space and improve transmission efficiency. After extracting and encoding feature information, these image data will be used as source attribute information to generate and display incremental data.
[0082] It should be noted that, in some embodiments, the extracted feature information is mapped to a two-dimensional image plane, including: mapping the position coordinates to the pixels of the image, representing the speed and acceleration information with color or grayscale, and then different data features are represented with different colors or brightness on the heat map. The specific representation form can be set by the user according to the needs.
[0083] Step S104: Generate incremental data according to the source attribute information corresponding to each polling time interval.
[0084] Specifically, the provided method generates corresponding incremental data based on the source attribute information obtained at each polling time interval. These incremental data represent the amount of change in the signature in each time period. The incremental data can efficiently record the details of the changes in the signature process and can be further used for the backtracking and verification of the signature trajectory. The increased data granularity is also conducive to subsequent refined analysis.
[0085] Step S105. According to the generation time corresponding to each incremental data, the source attribute information corresponding to each incremental data is added to the preset backtracking interface image.
[0086] Specifically, according to the timestamp of each incremental data generation, the system will add the corresponding source attribute information to the preset backtracking interface image. This image can be a timeline or a dynamic signature demonstration interface. At the same time, the source attribute information is added to the backtracking image in an orderly manner, so that the entire signature process can be displayed intuitively. The time information of each point ensures the accuracy and timing of the signature backtracking.
[0087] Step S106. In the backtracking interface image, the corresponding sub-dynamic signature trajectory is displayed in sequence through each source attribute information to completely display the dynamic signature trajectory of the user's electronic signature, thereby completing the backtracking of the user's electronic signature.
[0088] Specifically, in the traceback interface image, the system will sequentially display the sub-dynamic signature trajectory corresponding to each source attribute information. By displaying these trajectory fragments one by one, the dynamic process of the signature can be completely restored. By showing the entire process of the signature, the user can intuitively see every step of the change in the signature, which provides a strong basis for the authenticity verification, analysis and error correction of the signature. At the same time, the user can also obtain the signature trajectory corresponding to the characteristic position for viewing. This method also enhances the transparency and traceability of the signature process. The provided method can not only effectively record and restore the signature process by finely capturing, analyzing and traceback every detail of the user in the electronic signature process, but also provide detailed and powerful support for the verification and tracking of the signature.
[0089] Exemplarily, by setting the image tag corresponding to the retrospective image interface to display status in the player corresponding to the retrospective image interface (such as rrwebPlayer), the user's signature trajectory can be successfully displayed, allowing the user to clearly watch and review his or her own operation process.
[0090] In some embodiments, the sub-dynamic signature trajectory corresponding to each source attribute information is displayed in sequence in the backtracking interface image, including: obtaining the throttling time corresponding to the sub-dynamic signature trajectory; the throttling time is greater than 250 milliseconds and less than 350 milliseconds; and displaying the sub-dynamic signature trajectory corresponding to each source attribute information in sequence according to the throttling time in the backtracking interface image.
[0091] The throttling time refers to the time interval between two consecutive sub-dynamic signature trajectories. This time parameter ensures that during the tracing back process, the user's signature action is presented at a speed close to the actual signing speed, rather than too fast or too slow, to ensure the realism of the tracing back process. The throttling time is selected to be greater than 250 milliseconds and less than 350 milliseconds in order to balance the smoothness and visibility of the display. A throttling time of 250 milliseconds to 350 milliseconds means a display frequency of about 4-6 frames per second, which can make the tracing back process look smooth without making the user's movements too fast to make it difficult to observe the detailed movements.
[0092] According to the above throttling time, each sub-dynamic signature trajectory is displayed step by step and continuously in the backtracking interface. The display time interval of each trajectory is kept between 250 milliseconds and 350 milliseconds to ensure that the presentation speed of each trajectory is uniform.
[0093] At the same time, the provided embodiments have the following beneficial effects:
[0094] 1. Improve the realism and smoothness of the backtracking experience: By controlling the throttling time, the signature backtracking process can accurately reflect the speed and rhythm of the actual signature, thereby providing users with a more realistic and natural viewing experience.
[0095] 2. Enhance the user's understanding of the signature trajectory: Appropriate time saving can ensure the smooth display of the signature trajectory and make every detail paragraph clearly presented. Avoid the whole process being too fast so that the user cannot observe carefully, and avoid being too slow so that the tracing process seems procrastinated.
[0096] 3. Ensure smooth data processing: In the process of implementing the backtracking function, reasonable control of the display time interval can reduce the resource consumption of system processing, avoid data backlog and delay, and thus realize real-time or near real-time backtracking function.
[0097] In summary, this embodiment has significantly improved the physical experience and technical implementation of electronic signature backtracking. Reasonable selection and control of throttling time can not only optimize user experience, but also achieve a balance between system performance and resource consumption.
[0098] See also Figure 4 As shown, Figure 4 1 is a schematic diagram of the structure of the electronic signature backtracking device 200 provided in an embodiment of the present application. The electronic signature backtracking device 200 is used to execute the steps of the electronic signature backtracking method shown in the above embodiments. The electronic signature backtracking device 200 can be a single server or a server cluster, or the electronic signature backtracking device 200 can be a terminal, which can be a handheld terminal, a laptop computer, a wearable device or a robot, etc.
[0099] like Figure 4 As shown, the electronic signature backtracking device 200 includes:
[0100] The information acquisition module 201 is used to acquire the user's mouse movement information and touch screen movement information on the preset signature interface according to a preset polling time interval when the user performs electronic signature;
[0101] A trajectory generating module 202, configured to generate a sub-dynamic signature trajectory according to the mouse movement information and the touch screen movement information;
[0102] A trajectory parsing module 203, used to parse the sub-dynamic signature trajectory and obtain source attribute information corresponding to the dynamic signature trajectory;
[0103] An incremental generation module 204, configured to generate incremental data according to source attribute information corresponding to each polling time interval;
[0104] An image adding module 205 is used to add source attribute information corresponding to each incremental data to a preset backtracking interface image according to the generation time corresponding to each incremental data;
[0105] The backtracking completion module 206 is used to display the corresponding sub-dynamic signature trajectory in the backtracking interface image in sequence through each source attribute information to completely display the dynamic signature trajectory of the user's electronic signature and complete the backtracking of the user's electronic signature.
[0106] In some embodiments, the information acquisition module 201 is also used to: set a first event listener and a second event listener in the signature interface; wherein the first event listener is used to obtain the mouse coordinates corresponding to the preset signature interface, and the second event listener is used to obtain the touch screen coordinates corresponding to the preset signature interface; obtain the multiple mouse coordinates monitored by the first event listener and the multiple touch screen coordinates monitored by the second event listener within the polling time interval; generate the mouse movement information according to the multiple mouse coordinates and generate the touch screen movement information according to the multiple touch screen coordinates.
[0107] Exemplarily, the trajectory generation module 202 is also used to: obtain a timestamp corresponding to each of the mouse coordinates in the multiple mouse movement information; obtain a timestamp corresponding to each of the touch screen coordinates in the multiple touch screen movement information; sort the multiple mouse coordinates and touch screen coordinates according to the timestamps corresponding to the multiple mouse coordinates and touch screen coordinates; and generate the sub-dynamic signature trajectory according to the sorted mouse coordinates and touch screen coordinates.
[0108] In some embodiments, the trajectory analysis module 203 is further used to: perform feature extraction on each of the sub-dynamic signature trajectories to obtain feature information corresponding to the sub-dynamic signature trajectory; and convert the feature information into a preset image encoding format to obtain source attribute information corresponding to the sub-dynamic signature.
[0109] Exemplarily, the trajectory analysis module 203 is also used to: obtain the timestamp information corresponding to the sub-dynamic signature trajectory; input the timestamp information corresponding to the sub-dynamic signature trajectory into a preset feature extractor, and the feature extractor outputs the feature information corresponding to the sub-dynamic signature trajectory; wherein the feature information includes at least one or more of the finger / mouse movement speed information, finger / mouse movement acceleration information, finger / mouse movement position information, finger / mouse movement angle information and finger / mouse movement direction information.
[0110] Exemplarily, the trajectory analysis module 203 is further used to: map the feature information to a two-dimensional image plane; generate a heat map according to the mapped image screen; convert the heat map into the image encoding format, and use the converted heat map as the sub-attribute information.
[0111] In some embodiments, the backtracking completion module 206 is used to: obtain the throttling time corresponding to the sub-dynamic signature trajectory; the throttling time is greater than 250 milliseconds and less than 350 milliseconds; and display the sub-dynamic signature trajectory corresponding to each source attribute information in the backtracking interface image in sequence according to the throttling time.
[0112] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the electronic signature backtracking device and each module described above can refer to the corresponding process in the electronic signature backtracking method embodiments described in the above embodiments, and will not be repeated here.
[0113] The electronic signature backtracking method described above can be implemented in the form of a computer program. The computer program can be used in Figure 4 Run on the device shown.
[0114] See also Figure 5 , Figure 5 1 is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. The computer device includes a processor, a memory and a network interface connected via a device bus, wherein the memory may include a storage medium and an internal memory.
[0115] The storage medium can store an operating device and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any electronic signature backtracking method.
[0116] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0117] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any electronic signature backtracking method.
[0118] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will appreciate that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the terminal to which the scheme of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0119] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0120] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:
[0121] When the user performs electronic signature, the user's mouse movement information and touch screen movement information on the preset signature interface are obtained according to the preset polling time interval;
[0122] Generate a sub-dynamic signature trajectory according to the mouse movement information and the touch screen movement information;
[0123] Parsing the sub-dynamic signature trajectory to obtain source attribute information corresponding to the dynamic signature trajectory;
[0124] Generate incremental data according to source attribute information corresponding to each polling time interval;
[0125] According to the generation time corresponding to each of the incremental data, the source attribute information corresponding to each of the incremental data is added to the preset backtracking interface image;
[0126] In the backtracking interface image, the corresponding sub-dynamic signature trajectory is displayed in sequence through each source attribute information to completely display the dynamic signature trajectory of the user's electronic signature and complete the backtracking of the user's electronic signature.
[0127] In some embodiments, obtaining the mouse movement information and touch screen movement information of the user in a preset signature interface according to a preset polling time interval includes: setting a first event listener and a second event listener in the signature interface; wherein the first event listener is used to obtain the mouse coordinates corresponding to the preset signature interface, and the second event listener is used to obtain the touch screen coordinates corresponding to the preset signature interface; obtaining multiple mouse coordinates monitored by the first event listener and multiple touch screen coordinates monitored by the second event listener within the polling time interval; generating the mouse movement information according to the multiple mouse coordinates and generating the touch screen movement information according to the multiple touch screen coordinates.
[0128] Exemplarily, the sub-dynamic signature trajectory is generated according to the mouse movement information and the touch screen movement information: obtaining a timestamp corresponding to each of the mouse coordinates in the multiple mouse movement information; obtaining a timestamp corresponding to each of the touch screen coordinates in the multiple touch screen movement information; sorting the multiple mouse coordinates and touch screen coordinates according to the timestamps corresponding to the multiple mouse coordinates and touch screen coordinates; generating the sub-dynamic signature trajectory according to the sorted mouse coordinates and touch screen coordinates.
[0129] In some embodiments, parsing the sub-dynamic signature trajectory and obtaining source attribute information corresponding to the dynamic signature trajectory includes: performing feature extraction on each of the sub-dynamic signature trajectories to obtain feature information corresponding to the sub-dynamic signature trajectory; converting the feature information into a preset image encoding format to obtain source attribute information corresponding to the sub-dynamic signature.
[0130] Exemplarily, performing feature extraction on each of the sub-dynamic signature trajectories to obtain feature information corresponding to the sub-dynamic signature trajectory includes: obtaining timestamp information corresponding to the sub-dynamic signature trajectory; inputting the timestamp information corresponding to the sub-dynamic signature trajectory into a preset feature extractor, and the feature extractor outputs the feature information corresponding to the sub-dynamic signature trajectory; wherein the feature information includes at least one or more of finger / mouse movement speed information, finger / mouse movement acceleration information, finger / mouse movement position information, finger / mouse movement angle information and finger / mouse movement direction information.
[0131] Exemplarily, converting the feature information into a preset image coding format includes: mapping the feature information to a two-dimensional image plane; generating a heat map based on the mapped image screen; converting the heat map into the image coding format, and using the converted heat map as the sub-attribute information.
[0132] In some embodiments, the sub-dynamic signature trajectory corresponding to each of the source attribute information is displayed in sequence in the backtracking interface image, including: obtaining the throttling time corresponding to the sub-dynamic signature trajectory; the throttling time is greater than 250 milliseconds and less than 350 milliseconds; and displaying the sub-dynamic signature trajectory corresponding to each of the source attribute information in sequence in the backtracking interface image according to the throttling time.
[0133] A computer-readable storage medium is also provided in an embodiment of the present application. The computer-readable storage medium stores a computer program. The computer program includes program instructions. The processor executes the program instructions to implement the steps of the electronic signature backtracking method provided in the above embodiments of the present application.
[0134] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.
[0135] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. An electronic signature backtracking method, characterized in that: include: When the user performs electronic signature, the user's mouse movement information and touch screen movement information on the preset signature interface are obtained according to the preset polling time interval; Generate a sub-dynamic signature trajectory according to the mouse movement information and the touch screen movement information; Parsing the sub-dynamic signature trajectory to obtain source attribute information corresponding to the dynamic signature trajectory; Generate incremental data according to source attribute information corresponding to each polling time interval; According to the generation time corresponding to each of the incremental data, the source attribute information corresponding to each of the incremental data is added to the preset backtracking interface image; In the backtracking interface image, the corresponding sub-dynamic signature trajectory is displayed in sequence through each source attribute information to completely display the dynamic signature trajectory of the user's electronic signature and complete the backtracking of the user's electronic signature.
2. The method according to claim 1, characterized in that The step of obtaining the user's mouse movement information and touch screen movement information on the preset signature interface according to the preset polling time interval includes: A first event listener and a second event listener are set on the signature interface; wherein the first event listener is used to obtain the mouse coordinates corresponding to the preset signature interface, and the second event listener is used to obtain the touch screen coordinates corresponding to the preset signature interface; Acquire the multiple mouse coordinates monitored by the first event listener and the multiple touch screen coordinates monitored by the second event listener within the polling time interval; The mouse movement information is generated according to the plurality of mouse coordinates, and the touch screen movement information is generated according to the plurality of touch screen coordinates.
3. The method according to claim 2, characterized in that The sub-dynamic signature trajectory is generated according to the mouse movement information and the touch screen movement information: Obtaining a timestamp corresponding to each of the mouse coordinates in the plurality of mouse movement information; Obtaining a timestamp corresponding to each of the touch screen coordinates in the plurality of touch screen movement information; sorting the plurality of mouse coordinates and touch screen coordinates according to timestamps corresponding to the plurality of mouse coordinates and touch screen coordinates; The sub-dynamic signature trajectory is generated according to the sorted mouse coordinates and touch screen coordinates.
4. The method according to claim 1, characterized in that The parsing the sub-dynamic signature trajectory to obtain source attribute information corresponding to the dynamic signature trajectory includes: Perform feature extraction on each of the sub-dynamic signature trajectories to obtain feature information corresponding to the sub-dynamic signature trajectories; The characteristic information is converted into a preset image coding format to obtain source attribute information corresponding to the sub-dynamic signature.
5. The method according to claim 4, characterized in that The step of extracting features from each of the sub-dynamic signature trajectories to obtain feature information corresponding to the sub-dynamic signature trajectories includes: Obtaining timestamp information corresponding to the sub-dynamic signature trajectory; The timestamp information corresponding to the sub-dynamic signature trajectory is input into a preset feature extractor, and the feature extractor outputs the feature information corresponding to the sub-dynamic signature trajectory; wherein the feature information includes at least one or more of the finger / mouse movement speed information, finger / mouse movement acceleration information, finger / mouse movement position information, finger / mouse movement angle information and finger / mouse movement direction information.
6. The method according to claim 4, characterized in that The converting the feature information into a preset image coding format comprises: Mapping the feature information to a two-dimensional image plane; generating a heat map based on the mapped image screen; The heat map is converted into the image coding format, and the converted heat map is used as the sub-attribute information.
7. The method according to claim 1, characterized in that The sub-dynamic signature tracks corresponding to each source attribute information are sequentially displayed in the backtracking interface image, including: Obtaining a throttling time corresponding to the sub-dynamic signature trajectory; the throttling time is greater than 250 milliseconds and less than 350 milliseconds; The sub-dynamic signature trajectory corresponding to each source attribute information is displayed in sequence in the backtracking interface image according to the throttling time.
8. An electronic signature backtracking device, characterized in that: include: The information acquisition module is used to acquire the user's mouse movement information and touch screen movement information on the preset signature interface according to a preset polling time interval when the user performs electronic signature; A trajectory generation module, used to generate a sub-dynamic signature trajectory according to the mouse movement information and the touch screen movement information; A trajectory parsing module, used to parse the sub-dynamic signature trajectory and obtain source attribute information corresponding to the dynamic signature trajectory; An incremental generation module, used to generate incremental data according to source attribute information corresponding to each polling time interval; An image adding module, used for adding source attribute information corresponding to each incremental data to a preset backtracking interface image according to the generation time corresponding to each incremental data; The backtracking completion module is used to display the corresponding sub-dynamic signature trajectory through each source attribute information in the backtracking interface image in sequence, so as to completely display the dynamic signature trajectory of the user's electronic signature and complete the backtracking of the user's electronic signature.
9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is configured to execute the computer program and implement the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to implement the method according to any one of claims 1 to 7.
