Electronic protocol processing method, device, storage medium and computer equipment
By dynamically selecting seal images and determining seal positions, and dynamically drawing electronic seals in the electronic protocol with electronic authentication information, the problem of errors and inefficiency in determining seal positions in electronic protocol processing is solved, and higher processing accuracy and flexibility are achieved.
Patent Information
- Application Number
- CN202411643419.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-04-04
AI Technical Summary
In electronic protocol processing, the determination of seal positions in the prior art is prone to errors, inefficient, and the inherent seal cannot flexibly respond to agreement changes.
By obtaining the protocol type, format, current status information, electronic authentication information and stamping specification information of the electronic protocol, dynamically select the stamp image and determine the seal position, and dynamically draw the electronic stamp in the electronic protocol based on the stamp image and electronic certification information.
Improves the accuracy and efficiency of electronic protocol processing, enhances processing flexibility, and enables electronic stamps to be dynamically changed to adapt to the different layouts, types and contents of the protocol.
Smart Images

Figure CN119760162A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic protocol processing, and in particular to an electronic protocol processing method, device, storage medium and computer equipment. Background Art
[0002] With the continuous development of Internet technology and digital publishing, the use of electronic protocols in the publishing industry is becoming more and more widespread. Based on this, it is necessary to deal with seal issues in electronic protocols.
[0003] At present, when processing electronic agreements, a fixed seal is usually inserted at the manually specified seal position in the electronic agreement. However, this method of determining the seal position may result in errors in position determination due to user negligence, and also leads to the problem of low seal position determination efficiency. At the same time, the fixed seal cannot flexibly respond to changes in the agreement. Summary of the invention
[0004] The present invention provides a method, device, storage medium and computer equipment for processing an electronic protocol, which are mainly capable of improving the processing efficiency and processing accuracy of the electronic protocol and enhancing the flexibility of electronic protocol processing.
[0005] According to a first aspect of the present invention, there is provided a method for processing an electronic agreement, comprising:
[0006] In response to a processing signal of the electronic agreement to be processed, acquiring the protocol type, protocol format, current protocol status information, electronic authentication information, and seal stamping specification information of the electronic agreement to be processed;
[0007] Determine a seal image database corresponding to the protocol type, and determine a seal image corresponding to the current status information of the protocol in the seal image database, wherein the seal image database stores seal images corresponding to different protocol states;
[0008] Determine a seal position determination method corresponding to the protocol format, and determine the seal position in the electronic protocol to be processed based on the seal position determination method and the seal stamping specification information;
[0009] Based on the seal image and the electronic authentication information, an electronic seal is dynamically drawn at the seal position of the electronic agreement to be processed.
[0010] Optionally, the protocol format includes: one of a fixed-format protocol format and a non-fixed-format protocol format;
[0011] The method of determining the seal position in the electronic agreement to be processed based on the seal position determination method and the seal stamping specification information includes:
[0012] Determine a coordinate value seal position determination method corresponding to the fixed format protocol format, and determine the seal position in the electronic protocol to be processed based on the coordinate value seal position determination method and the seal stamping specification information; or,
[0013] A keyword seal position determination method corresponding to the non-fixed protocol format is determined, and based on the keyword seal position determination method and the seal stamping specification information, the seal position is determined in the electronic protocol to be processed.
[0014] Optionally, the determining the seal position in the electronic agreement to be processed based on the coordinate value seal position determination method and the seal stamping specification information includes:
[0015] Determine the page size information of the page where the to-be-processed electronic agreement is located, the agreement content position information, the agreement content size information, and the seal size information of the electronic seal in the to-be-processed electronic agreement;
[0016] Determining an initial drawing area of the electronic seal based on the page size information, the agreement content position information, the agreement content size information, the seal size information of the electronic seal, and the seal stamping specification information;
[0017] Acquire the seal width information in the seal size information and the page resolution information of the page;
[0018] Determine a transverse edge distance between a first area edge of the initial drawing area and a first page edge of the page, and determine a longitudinal edge distance between a second area edge of the initial drawing area and a second page edge of the page, wherein a direction of the first area edge relative to the initial drawing area is the same as a direction of the first page edge relative to the page, and a direction of the second area edge relative to the initial drawing area is the same as a direction of the second page edge relative to the page;
[0019] Determining an x-coordinate value of the electronic seal in the initial drawing area based on the lateral edge distance and the page resolution information, and determining a y-coordinate value of the electronic seal in the initial drawing area based on the longitudinal edge distance and the page resolution information;
[0020] Based on the x-coordinate value and the y-coordinate value, a seal position of the electronic seal is determined in the electronic protocol to be processed.
[0021] Optionally, the determining the seal position in the electronic agreement to be processed based on the keyword seal position determination method and the seal stamping specification information includes:
[0022] Obtaining drawing requirement information for drawing a seal on the electronic agreement to be processed;
[0023] Determining, in the agreement content information of the electronic agreement to be processed, initial keywords that match standard keywords in a preset seal position vocabulary, and selecting, based on the drawing requirement information, target keywords related to seal position determination from the initial keywords;
[0024] Determine whether the target keyword contains seal position indication information; if so, determine the seal position in the electronic agreement to be processed based on the seal position indication information and the seal stamping specification information; otherwise, determine the context information corresponding to the target keyword in the electronic agreement to be processed;
[0025] Based on the context information and the seal stamping specification information, a seal position is determined in the electronic agreement to be processed.
[0026] Optionally, before dynamically drawing an electronic seal at the seal position of the electronic agreement to be processed based on the seal image and the electronic authentication information, the method further includes:
[0027] dividing the grayscale image corresponding to the stamp image into a plurality of non-overlapping sub-image blocks;
[0028] Determine the number of pixels of each gray level in each sub-image block respectively, divide the number of pixels of each gray level by the total number of pixels of the corresponding sub-image block, and obtain the probability density of each gray level in each sub-image block;
[0029] The gray levels are sorted in ascending order, and any gray level except the first gray level in the sorted gray levels is taken as a current gray level, and the probability density of each current gray level is added to the probability density of each gray level sorted before the current gray level to obtain the cumulative probability density corresponding to each current gray level;
[0030] Multiplying the cumulative probability density by the maximum grayscale level in the corresponding sub-image block to obtain a new grayscale level corresponding to each current grayscale level, and updating each pixel value at each current grayscale level to a pixel value corresponding to the new grayscale level to obtain each sub-image block after equalization;
[0031] Determine the original position of each sub-image block in the grayscale image, and splice the equalized sub-image blocks according to the original position to obtain the pre-processed stamp image;
[0032] The method of dynamically drawing an electronic seal at the seal position of the electronic agreement to be processed based on the seal image and the electronic authentication information includes:
[0033] Combining the preprocessed seal image with the electronic authentication information to obtain an electronic seal;
[0034] The electronic seal is dynamically drawn at the seal position of the electronic agreement to be processed using a preset headless browser seal drawing method.
[0035] Optionally, after dynamically drawing an electronic seal at the seal position of the electronic agreement to be processed based on the seal image and the electronic authentication information, the method further includes:
[0036] The electronic agreement after drawing the electronic seal, the current state information of the agreement, the timestamp information of drawing the electronic seal, and the user identity information of the user corresponding to the electronic seal are encrypted to obtain the encrypted electronic agreement information, and the encrypted electronic agreement information is uploaded to the blockchain network for storage;
[0037] In response to the query signal of the encrypted electronic agreement information, determining a blockchain browsing method corresponding to the blockchain network, wherein the blockchain browsing method includes at least one of a regional chain browser and a blockchain browsing interface;
[0038] The encrypted electronic agreement information in the blockchain network is queried based on the blockchain browsing method.
[0039] Optionally, before determining the seal image database corresponding to the protocol type, the method further includes:
[0040] Establish mapping relationships between different protocol types and different seal image databases, and obtain multiple seal images;
[0041] Determine the image features corresponding to each of the stamp images, and determine the centroid features corresponding to each of the protocol types;
[0042] Based on the image features and the centroid features, each of the stamp images is classified to obtain a stamp image under each of the protocol types;
[0043] Encrypting the seal image under each protocol type to obtain an encrypted seal image;
[0044] Based on the mapping relationship between different protocol types and different seal image databases, the encrypted seal image is stored in the corresponding seal image database.
[0045] According to a second aspect of the present invention, there is provided an electronic protocol processing device, comprising:
[0046] An acquisition unit, configured to acquire, in response to a processing signal of the electronic agreement to be processed, a protocol type, a protocol format, current protocol status information, electronic authentication information, and seal stamping specification information of the electronic agreement to be processed;
[0047] A first determining unit is used to determine a seal image database corresponding to the protocol type, and determine a seal image corresponding to the current status information of the protocol in the seal image database, wherein the seal image database stores seal images corresponding to different protocol states;
[0048] A second determination unit is used to determine a seal position determination method corresponding to the protocol format, and determine the seal position in the electronic protocol to be processed based on the seal position determination method and the seal stamping specification information;
[0049] A drawing unit is used to dynamically draw an electronic seal at the seal position of the electronic agreement to be processed based on the seal image and the electronic authentication information.
[0050] According to a third aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned electronic protocol processing method when executed by a processor.
[0051] According to a fourth aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned electronic protocol processing method when executing the program.
[0052] According to a method, device, storage medium and computer equipment for processing electronic agreements provided by the present invention, compared with the current method of inserting a fixed seal at a manually specified seal position in an electronic agreement, the present invention dynamically selects a seal image corresponding to the current status information of the agreement in the seal image database through the protocol type, so that the selected seal image can meet the current status of the electronic agreement, thereby enhancing the flexibility of electronic agreement processing. At the same time, the present invention can determine the seal position determination method according to the protocol format, and determine the seal position in the electronic agreement to be processed based on the seal position determination method and seal stamping specification information, thereby ensuring that the determined seal position meets both the seal stamping specification and the protocol format, thereby improving the accuracy and efficiency of seal position determination, and finally, based on the seal image and electronic authentication information, dynamically draw an electronic seal at the seal position of the electronic agreement to be processed. Through the dynamic drawing of the electronic seal, it can be ensured that the electronic seal changes dynamically with changes in the protocol format, type, content, etc., thereby improving the processing flexibility of the electronic agreement. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0054] Figure 1 A flow chart of a method for processing an electronic protocol provided by an embodiment of the present invention is shown;
[0055] Figure 2 A flow chart of another method for processing an electronic protocol provided by an embodiment of the present invention is shown;
[0056] Figure 3 A schematic diagram showing the structure of an electronic protocol processing device provided by an embodiment of the present invention;
[0057] Figure 4 A schematic diagram showing the structure of another electronic protocol processing device provided by an embodiment of the present invention;
[0058] Figure 5 A schematic diagram of the physical structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0059] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0060] At present, the usual method of inserting a built-in seal at a manually designated seal position in an electronic agreement may result in position determination errors due to user negligence, and may also lead to low efficiency in seal position determination. At the same time, the built-in seal cannot flexibly respond to changes in the agreement.
[0061] In order to solve the above problems, the embodiment of the present invention provides a method for processing an electronic protocol, such as Figure 1 As shown, the method includes:
[0062] 101. In response to a processing signal of an electronic agreement to be processed, obtain a protocol type, a protocol format, current protocol status information, electronic authentication information, and seal stamping specification information of the electronic agreement to be processed.
[0063] Among them, the electronic agreement to be processed can be an agreement issued by a publishing unit to invite the author to authorize a certain work, a product sales agreement, or a binding electronic agreement in other scenarios; the agreement types include authorization agreements, service agreements, etc.; the agreement formats include: fixed-format agreement formats and non-fixed-format agreement formats, etc.; the current status information of the agreement includes: pre-authorization agreement and post-authorization agreement, etc.; the electronic authentication information includes: the authorizer's name, identity information, signature, etc.; the seal stamping specification information includes: internal company specifications and industry specifications regarding seal stamping, etc.
[0064] For the embodiment of the present invention, the processing signal of the electronic agreement to be processed is the authorization signal of the electronic agreement, that is, stamping and electronic signature are added to the electronic agreement. The embodiment of the present invention determines the stamp image and stamp position by comprehensively analyzing the protocol type, protocol format, current status information of the protocol, electronic authentication information, and stamp adding specification information of the electronic agreement to be processed, and finally dynamically draws the electronic stamp in the electronic agreement to be processed according to the stamp image and the stamp position, which can improve the drawing accuracy of the electronic stamp in the agreement to be processed, so that the drawn electronic stamp meets various needs.
[0065] 102. Determine a seal image database corresponding to the protocol type, and determine a seal image corresponding to the current status information of the protocol in the seal image database, wherein the seal image database stores seal images corresponding to different protocol statuses.
[0066] For the embodiment of the present invention, the pre-authorization protocol corresponds to the pre-authorization seal image, and the post-authorization protocol corresponds to the post-authorization seal image. First, according to the mapping relationship between different protocol types and different seal image databases, the seal image database corresponding to the protocol type is dynamically determined. If the current status information of the protocol is the pre-authorization protocol, the pre-authorization seal image is determined in the seal image database. Thus, the seal image is dynamically determined by the protocol type and protocol status, which enables the seal image determination process to flexibly respond to changes in protocol type and status, thereby enhancing the processing flexibility of electronic protocols.
[0067] 103. Determine a seal position determination method corresponding to the agreement format, and determine the seal position in the electronic agreement to be processed based on the seal position determination method and seal stamping specification information.
[0068] For the embodiments of the present invention, different protocol formats correspond to different methods of determining the seal position. The implementation of the present invention determines the seal position through the protocol format and seal stamping specification information, which can avoid the determined seal position from obstructing important protocol content, thereby improving the accuracy of determining the seal position, and at the same time enabling the determined seal position to meet the seal stamping specification requirements, while also avoiding the problem of inefficiency caused by manual determination of the seal position.
[0069] 104. Based on the seal image and the electronic authentication information, dynamically draw the electronic seal at the seal position of the electronic agreement to be processed.
[0070] For the embodiment of the present invention, if the current status information of the agreement is the pre-authorization status, it is also necessary to fill in the electronic authentication information such as the signature and identity of the authorizer in the electronic agreement, and then use the headless browser and other technologies to draw the seal image and the electronic authentication information such as the signature and identity at the seal position of the electronic agreement to be processed. In another embodiment of the present invention, the electronic authentication information also includes information such as the company name and company code. At this time, the seal image and the information such as the company name and company code are merged to form an electronic seal, and finally the electronic seal is drawn at the seal position of the electronic agreement to be processed using the headless browser and other technologies. In this way, the electronic seal is dynamically drawn at the seal position of the electronic agreement to be processed through the seal image and the electronic authentication information. Through the dynamic drawing of the electronic seal, it can be ensured that the electronic seal changes dynamically with the changes in the agreement format, type, content, etc., thereby improving the processing flexibility of the electronic agreement.
[0071] According to a method for processing electronic agreements provided by the present invention, compared with the current method of inserting a built-in seal at a manually specified seal position in an electronic agreement, the present invention dynamically selects a seal image corresponding to the current status information of the agreement in the seal image database through the protocol type, so that the selected seal image can meet the current status of the electronic agreement, thereby enhancing the flexibility of electronic agreement processing. At the same time, the present invention can determine the seal position determination method according to the protocol format, and determine the seal position in the electronic agreement to be processed based on the seal position determination method and seal stamping specification information, thereby ensuring that the determined seal position meets both the seal stamping specification and the protocol format, thereby improving the accuracy and efficiency of determining the seal position, and finally, based on the seal image and electronic authentication information, dynamically draw an electronic seal at the seal position of the electronic agreement to be processed. Through the dynamic drawing of the electronic seal, it can be ensured that the electronic seal is dynamically changed with changes in the protocol format, type, content, etc., thereby improving the processing flexibility of the electronic agreement.
[0072] Further, in order to better illustrate the process of processing the electronic protocol, as a refinement and extension of the above embodiment, the embodiment of the present invention provides another method for processing the electronic protocol, such as Figure 2 As shown, the method includes:
[0073] 201. In response to a processing signal of an electronic agreement to be processed, obtain a protocol type, a protocol format, current protocol status information, electronic authentication information, and seal stamping specification information of the electronic agreement to be processed.
[0074] The protocol format includes: one of a fixed-format protocol format and a non-fixed-format protocol format.
[0075] For the embodiment of the present invention, when a processing signal of an electronic agreement to be processed is received, the seal image is determined according to the protocol type and the current status information of the protocol, the seal position is determined according to the protocol format and the seal stamping specification information, the electronic seal is determined according to the seal image and the electronic authentication information, and finally the electronic seal is dynamically drawn at the seal position of the electronic agreement to be processed.
[0076] 202. Determine a seal image database corresponding to the protocol type, and determine a seal image corresponding to the current status information of the protocol in the seal image database, wherein the seal image database stores seal images corresponding to different protocol statuses.
[0077] For the embodiment of the present invention, in order to obtain a seal image in a seal image database, it is first necessary to construct a seal image database, based on which, the method includes: establishing a mapping relationship between different protocol types and different seal image databases, and obtaining a plurality of seal images; determining the image features corresponding to each of the seal images, and determining the centroid features corresponding to each of the protocol types; based on the image features and the centroid features, classifying each of the seal images to obtain seal images under each of the protocol types; encrypting the seal images under each of the protocol types to obtain encrypted seal images; based on the mapping relationship between different protocol types and different seal image databases, storing the encrypted seal images in the corresponding seal image database.
[0078] Among them, the seal image database stores seal images corresponding to different protocol states. Specifically, crawler technology is used to obtain multiple seal images from multiple channels such as websites and internal enterprise systems, and different seal image databases are established for different protocol types. For various protocol types, the accurate standard seal images that already exist in various protocol types are first determined, and the image features (center of mass features) corresponding to the standard seal images are determined, as well as the image features corresponding to each seal image. Then, based on each image feature and center of mass feature, the cosine similarity between each seal image and the standard seal image in various protocol types is calculated. Based on the cosine similarity, each seal image is classified into each protocol type and stored in the seal image database under each protocol type. Furthermore, after the seal image database is constructed, when it is necessary to obtain the seal image, according to the mapping relationship between the protocol type and the seal image database, the seal image corresponding to the current status information of the protocol is obtained in the seal image database corresponding to the electronic protocol to be processed. The embodiment of the present invention acquires stamp images through a pre-constructed stamp image database, which can improve the efficiency of acquiring stamp images. At the same time, since the stamp image database stores stamp images corresponding to different protocol states, the stamp processing process can flexibly respond to changes in protocol states.
[0079] Furthermore, after determining the seal image, in order to improve the clarity and usability of the seal image, the seal image needs to be preprocessed. Based on this, the method includes: dividing the grayscale image corresponding to the seal image into a plurality of non-overlapping sub-image blocks; respectively determining the number of pixels of each gray level in each of the sub-image blocks, dividing the number of pixels of each gray level by the total number of pixels of the corresponding sub-image block, and obtaining the probability density of each gray level in each of the sub-image blocks; sorting each gray level in order from small to large, and taking any gray level except the first gray level in the sorted gray levels as a current gray level, and taking each gray level as the current gray level. The probability density of each current gray level is added to the probability density of each gray level sorted before the current gray level to obtain the cumulative probability density corresponding to each current gray level; the cumulative probability density is multiplied by the maximum gray level in the corresponding sub-image block to obtain a new gray level corresponding to each current gray level, and each pixel value under each current gray level is updated to the pixel value corresponding to the new gray level to obtain each sub-image block after equalization; the original position of each sub-image block in the gray image is determined, and the equalized sub-image blocks are spliced according to the original position to obtain the preprocessed stamp image.
[0080] Specifically, the seal image is firstly gray-processed to obtain a gray-scale image, and the gray-scale image is divided into a plurality of non-overlapping sub-image blocks, wherein the number of sub-image blocks is not specifically limited in the embodiment of the present invention, and then each sub-image block is equalized. The specific equalization process is as follows: taking sub-image block a as an example, firstly, the gray-scale levels corresponding to sub-image block a are determined, such as level 0 to level 255, where 0-255 are the gray-scale values in sub-image block a respectively, and the number of pixels at each gray-scale level is determined respectively, such as the number of pixels with a gray-scale value of 0, the number of pixels with a gray-scale value of 255, etc. If the number of pixels with a gray-scale value of 255 is The number of pixels in the image block a is 2000, and the total number of pixels corresponding to the sub-image block a is 5000. The probability density of gray level 255 in the sub-image block a is m=2000÷5000=0.4. According to the above method, the probability density corresponding to each gray level in the sub-image block a can be determined. For example, the probability density corresponding to gray level A is 0.1, the probability density corresponding to gray level B is 0.2, the probability density corresponding to gray level C is 0.3, and the probability density corresponding to gray level D is 0.4. Then, the gray levels are sorted, such as gray level A, gray level B, gray level C, and gray level D in descending order. Then, the gray levels are sorted. The probability density corresponding to gray level B is added to the probability density corresponding to gray level A, that is, 0.3 is determined as the cumulative probability density corresponding to gray level B. Similarly, the probability density corresponding to gray level C is added to the probability density corresponding to gray level A and gray level B, that is, 0.6 is determined as the cumulative probability density corresponding to gray level C. The probability density corresponding to gray level D is added to the probability density corresponding to gray level A, gray level B, and gray level C, that is, 1 is determined as the cumulative probability density corresponding to gray level D. If the maximum gray level corresponding to sub-image block a is 255, then the maximum gray level 255 is multiplied by the cumulative probability density 0.3 corresponding to gray level B. , the obtained 76.5 is the new gray level corresponding to gray level B, the maximum gray level 255 is multiplied by the cumulative probability density 0.6 corresponding to gray level C, and the obtained 153 is the new gray level corresponding to gray level C, so that the new gray level corresponding to each gray level in each image block can be obtained according to the above method, and the pixel value corresponding to the new gray level is used to update the pixel value corresponding to each pixel point under the corresponding gray level, so as to obtain each equalized sub-image block, and determine the position of the original sub-image block corresponding to the equalized sub-image block, and according to the position, splice the equalized sub-image blocks together to obtain the pre-processed stamp image. Therefore, the embodiment of the present invention makes the brightness distribution of the image more uniform by redistributing the pixel values of the image, so that the originally too dark or too bright area will be properly adjusted, the contrast of the image is significantly enhanced, which is helpful to better display the image content, the details and edges of the image are enhanced, the tiny structures in the image are more clearly visible, and the stamp image is clearer and brighter in visual effect, and the overall quality is improved, so that the stamping effect in the electronic agreement is better.
[0081] Furthermore, after the seal image is preprocessed, it is necessary to use the preprocessed seal image to stamp the electronic agreement. Based on this, the method includes: combining the preprocessed seal image with the electronic authentication information to obtain an electronic seal; using a preset headless browser seal drawing method to dynamically draw the electronic seal at the seal position of the electronic agreement to be processed.
[0082] Specifically, if the seal image only contains the seal style but not the company name, and the electronic authentication information contains the company name, then it is necessary to combine the seal image with the company name in the electronic authentication information to obtain the electronic seal, and finally use the headless browser technology to dynamically render the electronic agreement page on the server side and draw the electronic seal at the specified seal position. The headless browser can simulate the user's operation in the browser, but will not display anything on the screen. It is suitable for server-side automated processing. If the electronic agreement also needs to be filled with the authorizer's signature and identity information, then it is also necessary to fill the authorizer's signature, electronic signature, title, identity information and other information in the electronic authentication information into the corresponding position in the electronic agreement.
[0083] 203. Determine a coordinate value seal position determination method corresponding to the fixed-format protocol format, and determine the seal position in the electronic protocol to be processed based on the coordinate value seal position determination method and seal stamping specification information.
[0084] Among them, the fixed layout protocol format means that the arrangement, size and position of the protocol layout elements in the layout are fixed and will not change with changes in page size, browser window size or device type.
[0085] For the embodiment of the present invention, different protocol formats correspond to different seal position determination methods. If the electronic protocol to be processed is a fixed-format protocol format, it is necessary to use a coordinate value seal position determination method to determine the seal position. Based on this, step 203 specifically includes: determining the page size information of the page where the electronic protocol to be processed is located, the protocol content position information of the protocol content information in the electronic protocol to be processed, the protocol content size information, and the seal size information of the electronic seal; determining the initial drawing area of the electronic seal based on the page size information, the protocol content position information, the protocol content size information, the seal size information of the electronic seal, and the seal stamping specification information; obtaining the seal width information in the seal size information and the page resolution information of the page; determining the first area edge of the initial drawing area and the page resolution information of the page , and determining a longitudinal edge distance between a second area edge of the initial drawing area and a second page edge of the page, wherein a direction of the first area edge relative to the initial drawing area is the same as a direction of the first page edge relative to the page, and a direction of the second area edge relative to the initial drawing area is the same as a direction of the second page edge relative to the page; based on the lateral edge distance and the page resolution information, determining an x-coordinate value of the electronic seal in the initial drawing area, and based on the longitudinal edge distance and the page resolution information, determining a y-coordinate value of the electronic seal in the initial drawing area; based on the x-coordinate value and the y-coordinate value, determining a seal position of the electronic seal in the electronic agreement to be processed.
[0086] Specifically, first, according to the page size information, the position information of the agreement content, the size information of the agreement content, the size information of the electronic seal, and the seal stamping specification information, the initial drawing area where the electronic seal can be drawn is determined in the page where the electronic agreement to be processed is located, such as the blank area in the page that can accommodate the seal. Further, after determining the initial drawing area, if the X coordinate represents the horizontal position of the electronic seal on the page, for example, according to the distance between the left edge of the initial drawing area and the left edge of the page, and the width of the seal, the X coordinate is calculated. If the left edge of the initial drawing area is 18 cm away from the left edge of the page, and the page resolution is 72dpi, then the X coordinate = (18 cm / a) * 72dpi, where a is a constant value set according to actual needs, such as 2.54. Calculate the Y coordinate: The Y coordinate represents the vertical position of the electronic seal on the page. According to the distance between the upper edge (or lower edge, depending on specific needs) of the initial drawing area and the top (or bottom) of the page, and the height of the seal, the Y coordinate is calculated. For example, if the lower edge of the initial drawing area is 8.23 cm from the bottom of the page, and the page resolution is 72dpi, then the Y coordinate = (page height - 8.23 cm / a) * 72dpi (note that it may be necessary to subtract the distance from the initial drawing area to the bottom of the page from the total height of the page to obtain the correct Y coordinate). Thus, the x-coordinate value and y-coordinate value of the electronic seal can be calculated in the above manner, and finally the position corresponding to the x-coordinate value and the y-coordinate value is determined as the seal position of the electronic seal in the electronic agreement to be processed. The embodiment of the present invention determines the position of the electronic seal by the coordinate value, which can ensure that the same coordinate value is used in multiple agreements to ensure that the stamping position of each agreement remains consistent, thereby improving the overall aesthetics and professionalism of the document, and making the position of the electronic seal meet the industry or enterprise internal seal stamping specifications. At the same time, with the help of coordinate values, the automatic stamping process of the electronic seal can be realized, reducing the steps and time of manual operation.
[0087] 204. Determine a keyword seal position determination method corresponding to the non-fixed protocol format, and determine the seal position in the electronic protocol to be processed based on the keyword seal position determination method and seal stamping specification information.
[0088] Among them, the non-fixed protocol format of the layout means that the arrangement and position of the protocol layout elements in the layout will be flexibly adjusted with changes in page size, browser window size or device type.
[0089] For the embodiment of the present invention, different protocol formats correspond to different seal position determination methods. If the electronic protocol to be processed is a non-fixed protocol format, it is necessary to use a keyword seal position determination method to determine the seal position. Based on this, step 204 specifically includes: obtaining drawing requirement information for drawing a seal on the electronic protocol to be processed; determining an initial keyword that matches a standard keyword in a preset seal position vocabulary in the protocol content information of the electronic protocol to be processed, and based on the drawing requirement information, selecting a target keyword related to seal position determination from the initial keyword; judging whether the target keyword contains seal position indication information, and if so, determining the seal position in the electronic protocol to be processed based on the seal position indication information and the seal stamping specification information, otherwise, determining the context information corresponding to the target keyword in the electronic protocol to be processed; determining the seal position in the electronic protocol to be processed based on the context information and the seal stamping specification information.
[0090] Among them, drawing requirement information refers to the determination of the requirements of the electronic agreement authorizer regarding the seal position, such as the electronic seal should be drawn at the name of the person, or at the seal indication position, etc.; the preset seal position vocabulary stores various standard keywords for seal indication positions, such as specific clauses, paragraph titles, signature area logos, seal here and other keywords; seal position indication information is indication information such as: seal here, seal area, etc.
[0091] Specifically, based on the preset seal position word library, if the initial keywords identified in the agreement content information are: a certain paragraph title, signature, date and other initial keywords, and the drawing requirement information is to stamp at the signature, then the target keyword is the signature. At this time, the signature is the seal position indication information. Finally, according to the requirements of the seal stamping specification information (such as the seal information should be clear, without smears, overlapping words and other defects, the direction of the text in the seal should be the same as the direction of the text in the agreement content, etc.), the electronic seal is drawn at the signature. In addition, if the target keyword is a specific clause in the agreement, and the specific clause does not contain seal position indication information such as "seal area" and "seal here", then the context information of the specific clause needs to be determined. For example, "This agreement will take effect after being signed and sealed by both parties", then it is necessary to infer a reasonable seal position based on the context, such as drawing an electronic seal on the signature page or confirmation page at the end of the agreement. When selecting the location of the seal, you must also follow the seal stamping specification information of the agreement to ensure that the placement of the seal does not destroy the overall aesthetics and readability of the agreement. If necessary, you can also adjust the size, rotation angle or transparency of the seal to ensure that it is coordinated with the layout and style of the agreement. Therefore, through keyword search, you can quickly locate the specific location in the electronic agreement that needs to be stamped, without having to manually flip through or search page by page, thereby greatly shortening the agreement processing cycle and improving work efficiency. At the same time, using keyword search technology, you can accurately match specific content or clauses in the electronic agreement to ensure the accuracy of the stamping location.
[0092] 205. Based on the seal image and the electronic authentication information, dynamically draw the electronic seal at the seal position of the electronic agreement to be processed.
[0093] Among them, the electronic seal not only includes the seal, but also the title, author, signature, electronic signature, etc. of the person who authorized the electronic agreement, and adds elements such as timestamp and user identity information.
[0094] For the embodiment of the present invention, if the seal image only includes the style but does not include the company name and seal type, it is necessary to query the company name and seal type (such as financial special seal and other types) in the electronic authentication information, and then combine the company name and seal type with the seal image to make it an electronic seal, and finally dynamically draw the electronic seal at the seal position of the electronic agreement to be processed. For the post-authorization electronic agreement type, it is only necessary to dynamically draw the electronic seal at the seal position of the electronic agreement to be processed. For the pre-authorization electronic agreement type, in addition to drawing the electronic seal, it is also necessary to fill in the authorizer's title, author, signature, electronic signature and other information, timestamp, user identity information and other elements in the authorization process to the corresponding position of the electronic agreement to be processed, so as to enhance the processing integrity and accuracy of the electronic agreement, so that the processed electronic agreement has practicality and usability.
[0095] Furthermore, after drawing an electronic seal in the electronic agreement to be processed, in order to ensure the security and trusted sharing of the agreement, the electronic agreement needs to be stored on the chain. Based on this, the method includes: encrypting the electronic agreement after drawing the electronic seal, the current status information of the agreement, the timestamp information of drawing the electronic seal, and the user identity information of the user corresponding to the electronic seal to obtain the encrypted electronic agreement information, and storing the encrypted electronic agreement information on the chain in the blockchain network; in response to a query signal of the encrypted electronic agreement information, determining a blockchain browsing mode corresponding to the blockchain network, wherein the blockchain browsing mode includes at least one of a regional chain browser and a blockchain browsing interface; and querying the encrypted electronic agreement information in the blockchain network based on the blockchain browsing mode.
[0096] Among them, the timestamp information refers to the time when the electronic agreement is stamped, the user identity information refers to the name, identity ID and other information of the authorizer; the current status information of the agreement includes the status before authorization agreement, post-authorization agreement, etc.
[0097] Specifically, after the electronic agreement is stamped with an electronic seal, the current status information of the electronic agreement, timestamp information, user identity information of the authorized user, and other information related to the electronic agreement are determined to be encrypted, and then the encrypted electronic agreement is uploaded to the blockchain network for storage, so that the electronic agreement and its status information are permanently preserved and cannot be tampered with. When the user wants to view the electronic agreement, the blockchain browser or system corresponding to the blockchain network can be used to view the electronic agreement and its status information on the chain. The embodiment of the present invention stores the electronic agreement through the blockchain network, which can ensure the traceability and security of the electronic agreement.
[0098] According to another method for processing electronic protocols provided by the present invention, compared with the current method of inserting a built-in seal at a manually specified seal position in an electronic protocol, the present invention dynamically selects a seal image corresponding to the current status information of the protocol in the seal image database through the protocol type, so that the selected seal image can meet the current status of the electronic protocol, thereby enhancing the flexibility of electronic protocol processing. At the same time, the present invention can determine the seal position determination method according to the protocol format, and determine the seal position in the electronic protocol to be processed based on the seal position determination method and seal stamping specification information, thereby ensuring that the determined seal position meets both the seal stamping specification and the protocol format, thereby improving the accuracy and efficiency of determining the seal position, and finally, based on the seal image and electronic authentication information, dynamically draw an electronic seal at the seal position of the electronic protocol to be processed. Through the dynamic drawing of the electronic seal, it can be ensured that the electronic seal is dynamically changed with changes in the protocol format, type, content, etc., thereby improving the processing flexibility of the electronic protocol.
[0099] Further, as Figure 1 In a specific implementation, an embodiment of the present invention provides a processing device for an electronic protocol, such as Figure 3 As shown, the device includes: an acquisition unit 31, a first determination unit 32, a second determination unit 33, and a drawing unit 34.
[0100] The acquisition unit 31 may be used to acquire the protocol type, protocol format, protocol current status information, electronic authentication information, and seal stamping specification information of the electronic protocol to be processed in response to a processing signal of the electronic protocol to be processed.
[0101] The first determination unit 32 can be used to determine a seal image database corresponding to the protocol type, and determine a seal image corresponding to the current status information of the protocol in the seal image database, wherein the seal image database stores seal images corresponding to different protocol statuses.
[0102] The second determining unit 33 may be used to determine a seal position determining method corresponding to the protocol format, and determine the seal position in the to-be-processed electronic protocol based on the seal position determining method and the seal stamping specification information.
[0103] The drawing unit 34 may be configured to dynamically draw an electronic seal at the seal position of the electronic agreement to be processed based on the seal image and the electronic authentication information.
[0104] In a specific application scenario, the protocol format includes: one of a fixed-format protocol format and a non-fixed-format protocol format; in order to determine the seal position, the second determination unit 33 can be specifically used to determine the coordinate value seal position determination method corresponding to the fixed-format protocol format, and based on the coordinate value seal position determination method and the seal stamping specification information, determine the seal position in the electronic protocol to be processed; or, determine the keyword seal position determination method corresponding to the non-fixed-format protocol format, and based on the keyword seal position determination method and the seal stamping specification information, determine the seal position in the electronic protocol to be processed.
[0105] In specific application scenarios, in order to determine the stamp position, such as Figure 4 As shown, the second determining unit 33 includes a determining module 331 and an acquiring module 332 .
[0106] The determination module 331 may be used to determine the page size information of the page where the to-be-processed electronic agreement is located, the agreement content location information of the agreement content information in the to-be-processed electronic agreement, the agreement content size information, and the seal size information of the electronic seal.
[0107] The determination module 331 may also be used to determine the initial drawing area of the electronic seal based on the page size information, the protocol content position information, the protocol content size information, the seal size information of the electronic seal, and the seal stamping specification information.
[0108] The acquisition module 332 may be used to acquire the seal width information in the seal size information and the page resolution information of the page.
[0109] The determination module 331 can also be used to determine the horizontal edge distance between the first area edge of the initial drawing area and the first page edge of the page, and determine the vertical edge distance between the second area edge of the initial drawing area and the second page edge of the page, wherein the direction of the first area edge relative to the initial drawing area is the same as the direction of the first page edge relative to the page, and the direction of the second area edge relative to the initial drawing area is the same as the direction of the second page edge relative to the page.
[0110] The determination module 331 can also be used to determine the x-coordinate value of the electronic seal in the initial drawing area based on the horizontal edge distance and the page resolution information, and to determine the y-coordinate value of the electronic seal in the initial drawing area based on the vertical edge distance and the page resolution information.
[0111] The determination module 331 may also be used to determine the seal position of the electronic seal in the electronic agreement to be processed based on the x-coordinate value and the y-coordinate value.
[0112] In a specific application scenario, in order to determine the seal position, the second determination unit 33 further includes a judgment module 333 .
[0113] The acquisition module 332 may also be used to acquire drawing requirement information for drawing a seal on the electronic agreement to be processed.
[0114] The determination module 331 can also be used to determine initial keywords that match standard keywords in a preset seal position vocabulary in the agreement content information of the electronic agreement to be processed, and select target keywords related to seal position determination from the initial keywords based on the drawing requirement information.
[0115] The judgment module 333 can be used to determine whether the target keyword contains seal position indication information. If so, the seal position is determined in the electronic agreement to be processed based on the seal position indication information and the seal stamping specification information. Otherwise, the context information corresponding to the target keyword is determined in the electronic agreement to be processed.
[0116] The determination module 331 may also be used to determine the seal position in the electronic agreement to be processed based on the context information and the seal stamping specification information.
[0117] In a specific application scenario, in order to pre-process the stamp image, the device further includes a pre-processing unit 35 .
[0118] The preprocessing unit 35 can be used to divide the grayscale image corresponding to the stamp image into a plurality of non-overlapping sub-image blocks; respectively determine the number of pixels of each gray level in each of the sub-image blocks, divide the number of pixels of each gray level by the total number of pixels of the corresponding sub-image block, and obtain the probability density of each gray level in each of the sub-image blocks; sort the gray levels in ascending order, and take any gray level except the first gray level in the sorted gray levels as a current gray level, and compare the probability density of each current gray level with the probability density of the gray level sorted in the current gray level. The probability densities of the gray levels before the gray level are added to obtain the cumulative probability density corresponding to each of the current gray levels; the cumulative probability density is multiplied by the maximum gray level in the corresponding sub-image block to obtain a new gray level corresponding to each of the current gray levels, and each pixel value under each of the current gray levels is updated to the pixel value corresponding to the new gray level to obtain each of the sub-image blocks after equalization; the original position of each of the sub-image blocks in the gray image is determined, and the sub-image blocks after equalization are spliced according to the original position to obtain the preprocessed stamp image.
[0119] In a specific application scenario, in order to dynamically draw an electronic seal, the drawing unit 34 can be specifically used to combine the preprocessed seal image with the electronic authentication information to obtain an electronic seal; and use a preset headless browser seal drawing method to dynamically draw the electronic seal at the seal position of the electronic agreement to be processed.
[0120] In a specific application scenario, in order to store the stamped electronic agreement on a chain, the device also includes a chain unit 36 and an information query unit 37.
[0121] The encryption unit 36 can be used to encrypt the electronic agreement after drawing the electronic seal, the current state information of the agreement, the timestamp information of drawing the electronic seal, and the user identity information of the user corresponding to the electronic seal to obtain the encrypted electronic agreement information, and upload the encrypted electronic agreement information to the blockchain network for storage.
[0122] The information query unit 37 can be used to determine a blockchain browsing method corresponding to the blockchain network in response to a query signal of the encrypted electronic agreement information, wherein the blockchain browsing method includes at least one of a regional chain browser and a blockchain browsing interface; and query the encrypted electronic agreement information in the blockchain network based on the blockchain browsing method.
[0123] In a specific application scenario, in order to construct a seal image database, the device further includes a construction unit 38 .
[0124] The construction unit 38 can be used to establish a mapping relationship between different protocol types and different seal image databases, and obtain multiple seal images; determine the image features corresponding to each of the seal images, and determine the centroid features corresponding to each of the protocol types; classify each of the seal images based on the image features and the centroid features to obtain seal images under each of the protocol types; encrypt the seal images under each of the protocol types to obtain encrypted seal images; based on the mapping relationship between different protocol types and different seal image databases, store the encrypted seal images in the corresponding seal image database.
[0125] It should be noted that for other corresponding descriptions of the functional modules involved in the electronic protocol processing device provided in the embodiment of the present invention, reference can be made to Figure 1 The corresponding description of the method shown will not be repeated here.
[0126] Based on the above Figure 1 The method shown, accordingly, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented: in response to a processing signal of an electronic protocol to be processed, the protocol type, protocol format, current status information of the protocol, electronic authentication information, and seal stamping specification information of the electronic protocol to be processed are obtained; a seal image database corresponding to the protocol type is determined, and a seal image corresponding to the current status information of the protocol is determined in the seal image database, wherein seal images corresponding to different protocol states are stored in the seal image database; a seal position determination method corresponding to the protocol format is determined, and based on the seal position determination method and the seal stamping specification information, a seal position is determined in the electronic protocol to be processed; based on the seal image and the electronic authentication information, an electronic seal is dynamically drawn at the seal position of the electronic protocol to be processed.
[0127] Based on the above Figure 1 The method shown and Figure 3 The embodiment of the device shown in the figure, the embodiment of the present invention also provides a physical structure diagram of a computer device, such as Figure 5As shown, the computer device includes: a processor 41, a memory 42, and a computer program stored in the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are both arranged on a bus 43, and the processor 41 implements the following steps when executing the program: in response to a processing signal of an electronic protocol to be processed, obtaining the protocol type, protocol format, current status information of the protocol, electronic authentication information, and seal stamping specification information of the electronic protocol to be processed; determining a seal image database corresponding to the protocol type, and determining a seal image corresponding to the current status information of the protocol in the seal image database, wherein seal images corresponding to different protocol states are stored in the seal image database; determining a seal position determination method corresponding to the protocol format, and determining a seal position in the electronic protocol to be processed based on the seal position determination method and the seal stamping specification information; and dynamically drawing an electronic seal at the seal position of the electronic protocol to be processed based on the seal image and the electronic authentication information.
[0128] Through the technical scheme of the present invention, the present invention dynamically selects the seal image corresponding to the current status information of the protocol in the seal image database through the protocol type, so that the selected seal image can meet the current status of the electronic protocol, thereby enhancing the flexibility of electronic protocol processing. At the same time, the present invention can determine the seal position determination method according to the protocol format, and based on the seal position determination method and the seal stamping specification information, determine the seal position in the electronic protocol to be processed, thereby ensuring that the determined seal position meets both the seal stamping specification and the protocol format, thereby improving the accuracy and efficiency of determining the seal position, and finally, based on the seal image and the electronic authentication information, dynamically draw the electronic seal at the seal position of the electronic protocol to be processed, and through the dynamic drawing of the electronic seal, it can ensure that the electronic seal changes dynamically with the changes in the protocol format, type, content, etc., thereby improving the processing flexibility of the electronic protocol.
[0129] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0130] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing an electronic agreement, characterized in that: include: In response to a processing signal of the electronic agreement to be processed, acquiring the protocol type, protocol format, current protocol status information, electronic authentication information, and seal stamping specification information of the electronic agreement to be processed; Determine a seal image database corresponding to the protocol type, and determine a seal image corresponding to the current status information of the protocol in the seal image database, wherein the seal image database stores seal images corresponding to different protocol states; Determine a seal position determination method corresponding to the protocol format, and determine the seal position in the electronic protocol to be processed based on the seal position determination method and the seal stamping specification information; Based on the seal image and the electronic authentication information, an electronic seal is dynamically drawn at the seal position of the electronic agreement to be processed.
2. The method according to claim 1, characterized in that: The protocol format includes: one of a fixed-format protocol format and a non-fixed-format protocol format; The method of determining the seal position in the electronic agreement to be processed based on the seal position determination method and the seal stamping specification information includes: Determine a coordinate value seal position determination method corresponding to the fixed format protocol format, and determine the seal position in the to-be-processed electronic protocol based on the coordinate value seal position determination method and the seal stamping specification information; or, A keyword seal position determination method corresponding to the non-fixed protocol format is determined, and based on the keyword seal position determination method and the seal stamping specification information, the seal position is determined in the electronic protocol to be processed.
3. The method according to claim 2, characterized in that The method of determining the seal position based on the coordinate value and the seal stamping specification information, determining the seal position in the electronic agreement to be processed, includes: Determine the page size information of the page where the to-be-processed electronic agreement is located, the agreement content location information, the agreement content size information, and the seal size information of the electronic seal in the to-be-processed electronic agreement; Determining an initial drawing area of the electronic seal based on the page size information, the agreement content position information, the agreement content size information, the seal size information of the electronic seal, and the seal stamping specification information; Acquire the seal width information in the seal size information and the page resolution information of the page; Determine a transverse edge distance between a first area edge of the initial drawing area and a first page edge of the page, and determine a longitudinal edge distance between a second area edge of the initial drawing area and a second page edge of the page, wherein a direction of the first area edge relative to the initial drawing area is the same as a direction of the first page edge relative to the page, and a direction of the second area edge relative to the initial drawing area is the same as a direction of the second page edge relative to the page; Determining an x-coordinate value of the electronic seal in the initial drawing area based on the lateral edge distance and the page resolution information, and determining a y-coordinate value of the electronic seal in the initial drawing area based on the longitudinal edge distance and the page resolution information; Based on the x-coordinate value and the y-coordinate value, a seal position of the electronic seal is determined in the electronic protocol to be processed.
4. The method according to claim 2, characterized in that: The determining of the seal position in the electronic agreement to be processed based on the keyword seal position determination method and the seal stamping specification information includes: Obtaining drawing requirement information for drawing a seal on the electronic agreement to be processed; Determining, in the agreement content information of the electronic agreement to be processed, initial keywords that match standard keywords in a preset seal position vocabulary, and selecting, based on the drawing requirement information, target keywords related to seal position determination from the initial keywords; Determine whether the target keyword contains seal position indication information; if so, determine the seal position in the electronic agreement to be processed based on the seal position indication information and the seal stamping specification information; otherwise, determine the context information corresponding to the target keyword in the electronic agreement to be processed; Based on the context information and the seal stamping specification information, a seal position is determined in the electronic agreement to be processed.
5. The method according to claim 1, characterized in that Before dynamically drawing the electronic seal at the seal position of the electronic agreement to be processed based on the seal image and the electronic authentication information, the method further includes: dividing the grayscale image corresponding to the stamp image into a plurality of non-overlapping sub-image blocks; Determine the number of pixels of each gray level in each sub-image block respectively, divide the number of pixels of each gray level by the total number of pixels of the corresponding sub-image block, and obtain the probability density of each gray level in each sub-image block; The gray levels are sorted in ascending order, and any gray level except the first gray level in the sorted gray levels is taken as a current gray level, and the probability density of each current gray level is added to the probability density of each gray level sorted before the current gray level to obtain the cumulative probability density corresponding to each current gray level; Multiplying the cumulative probability density by the maximum grayscale level in the corresponding sub-image block to obtain a new grayscale level corresponding to each current grayscale level, and updating each pixel value at each current grayscale level to a pixel value corresponding to the new grayscale level to obtain each sub-image block after equalization; Determine the original position of each sub-image block in the grayscale image, and splice the equalized sub-image blocks according to the original position to obtain the pre-processed stamp image; The method of dynamically drawing an electronic seal at the seal position of the electronic agreement to be processed based on the seal image and the electronic authentication information includes: Combining the preprocessed seal image with the electronic authentication information to obtain an electronic seal; The electronic seal is dynamically drawn at the seal position of the electronic agreement to be processed using a preset headless browser seal drawing method.
6. The method according to claim 1, characterized in that After dynamically drawing the electronic seal at the seal position of the electronic agreement to be processed based on the seal image and the electronic authentication information, the method further includes: The electronic agreement after drawing the electronic seal, the current state information of the agreement, the timestamp information of drawing the electronic seal, and the user identity information of the user corresponding to the electronic seal are encrypted to obtain the encrypted electronic agreement information, and the encrypted electronic agreement information is uploaded to the blockchain network for storage; In response to the query signal of the encrypted electronic agreement information, determining a blockchain browsing method corresponding to the blockchain network, wherein the blockchain browsing method includes at least one of a regional chain browser and a blockchain browsing interface; The encrypted electronic agreement information in the blockchain network is queried based on the blockchain browsing method.
7. The method according to claim 1, characterized in that Before determining the seal image database corresponding to the protocol type, the method further includes: Establish mapping relationships between different protocol types and different seal image databases, and obtain multiple seal images; Determine the image features corresponding to each of the stamp images, and determine the centroid features corresponding to each of the protocol types; Based on the image features and the centroid features, each of the stamp images is classified to obtain a stamp image under each of the protocol types; Encrypting the seal image under each protocol type to obtain an encrypted seal image; Based on the mapping relationship between different protocol types and different seal image databases, the encrypted seal image is stored in the corresponding seal image database.
8. An electronic protocol processing device, characterized in that: include: An acquisition unit, configured to acquire, in response to a processing signal of the electronic agreement to be processed, a protocol type, a protocol format, current protocol status information, electronic authentication information, and seal stamping specification information of the electronic agreement to be processed; A first determining unit is used to determine a seal image database corresponding to the protocol type, and determine a seal image corresponding to the current status information of the protocol in the seal image database, wherein the seal image database stores seal images corresponding to different protocol states; A second determination unit is used to determine a seal position determination method corresponding to the protocol format, and determine the seal position in the electronic protocol to be processed based on the seal position determination method and the seal stamping specification information; A drawing unit is used to dynamically draw an electronic seal at the seal position of the electronic agreement to be processed based on the seal image and the electronic authentication information.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.