[go: up one dir, main page]

CN119760162A - Electronic protocol processing method and device, storage medium and computer equipment - Google Patents

Electronic protocol processing method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN119760162A
CN119760162A CN202411643419.9A CN202411643419A CN119760162A CN 119760162 A CN119760162 A CN 119760162A CN 202411643419 A CN202411643419 A CN 202411643419A CN 119760162 A CN119760162 A CN 119760162A
Authority
CN
China
Prior art keywords
protocol
seal
electronic
information
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411643419.9A
Other languages
Chinese (zh)
Inventor
郭帅
于江虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tongfang Knowledge Network Digital Publishing Technology Co ltd
Original Assignee
Tongfang Knowledge Network Digital Publishing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tongfang Knowledge Network Digital Publishing Technology Co ltd filed Critical Tongfang Knowledge Network Digital Publishing Technology Co ltd
Priority to CN202411643419.9A priority Critical patent/CN119760162A/en
Publication of CN119760162A publication Critical patent/CN119760162A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

本发明公开了一种电子协议的处理方法、装置、存储介质及计算机设备。方法包括:响应于待处理电子协议的处理信号,获取所述待处理电子协议的协议类型、协议格式、协议当前状态信息、电子认证信息、章印加盖规范信息;确定与所述协议类型相对应的章印图像数据库,并在所述章印图像数据库中确定与所述协议当前状态信息相对应的章印图像,其中,所述章印图像数据库中存储着不同协议状态对应的章印图像;确定与所述协议格式相对应的章印位置确定方式,并基于所述章印位置确定方式和所述章印加盖规范信息,在所述待处理电子协议中确定章印位置;基于所述章印图像和所述电子认证信息,在所述待处理电子协议的所述章印位置处动态绘制电子章印。

The present invention discloses a method, device, storage medium and computer equipment for processing an electronic protocol. The method comprises: in response to a processing signal of an electronic protocol to be processed, obtaining the protocol type, protocol format, current protocol status information, 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 protocol status information in the seal image database, wherein the seal image database stores seal images corresponding to different protocol states; 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.

Description

Electronic protocol processing method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of electronic protocol processing technologies, and in particular, to a method and apparatus for processing an electronic protocol, a storage medium, and a computer device.
Background
With the continuous development of internet technology and digital publishing, electronic protocols in the publishing industry are increasingly used, and on the basis of the electronic protocols, seal printing problems need to be processed in the electronic protocols.
Currently, in processing electronic protocols, an inherent stamp is typically inserted at a manually specified stamp location in the electronic protocol. However, this way of determining the position of the stamp may have a position determination error due to the user's negligence, and may also cause a problem of low efficiency of determining the position of the stamp. At the same time, the inherent seal does not flexibly cope with the change of the protocol.
Disclosure of Invention
The invention provides a processing method, a device, a storage medium and computer equipment of an electronic protocol, which mainly aims to improve the processing efficiency and the processing accuracy of the electronic protocol and enhance the flexibility of the electronic protocol processing.
According to a first aspect of the present invention, there is provided a method for processing an electronic protocol, comprising:
responding to a processing signal of an electronic protocol to be processed, and acquiring the protocol type, the protocol format, the current state information of the protocol, the electronic authentication information and the seal printing standard information of the electronic protocol to be processed;
Determining an octopus image database corresponding to the protocol type, and determining an octopus image corresponding to the current state information of the protocol in the octopus image database, wherein the octopus image database stores octopus images corresponding to different protocol states;
Determining an octopus position determining mode corresponding to the protocol format, and determining an octopus position in the electronic protocol to be processed based on the octopus position determining mode and the octopus capping 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.
Optionally, the protocol format comprises one of a format fixed protocol format and a format non-fixed protocol format;
The determining the stamp position in the electronic protocol to be processed based on the stamp position determining mode and the stamp capping specification information comprises the following steps:
Determining coordinate value seal position determining mode corresponding to the format fixed protocol format, and determining seal position in the electronic protocol to be processed based on the coordinate value seal position determining mode and seal standard information, or,
And determining a keyword seal position determining mode corresponding to the format of the format non-fixed protocol, and determining a seal position in the electronic protocol to be processed based on the keyword seal position determining mode and the seal cover standard information.
Optionally, determining the stamp position in the electronic protocol to be processed based on the coordinate value stamp position determining mode and the stamp standard information includes:
Determining page size information of a page where the electronic protocol to be processed is located, protocol content position information of protocol content information in the electronic protocol to be processed, protocol content size information and seal size information of an electronic seal;
Determining an 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 standard information of the seal;
Acquiring the seal width information in the seal size information and the page resolution information of the page;
Determining a lateral edge distance between a first region edge of the initial drawing region and a first page edge of the page, and determining a longitudinal edge distance between a second region edge of the initial drawing region and a second page edge of the page, wherein the direction of the first region edge relative to the initial drawing region is the same as the direction of the first page edge relative to the page, and the direction of the second region edge relative to the initial drawing region is the same as the direction of the second page edge relative to the page;
Determining an x-coordinate value of the electronic stamp in the initial rendering area based on the lateral edge distance and the page resolution information, and determining a y-coordinate value of the electronic stamp in the initial rendering area based on the longitudinal edge distance and the page resolution information;
and determining the stamp position of the electronic stamp in the electronic protocol to be processed based on the x coordinate value and the y coordinate value.
Optionally, the determining the position of the seal in the electronic protocol to be processed based on the keyword seal position determining mode and the seal standard information includes:
acquiring drawing requirement information for performing octography drawing on the electronic protocol to be processed;
Determining initial keywords matched with standard keywords in a preset octography position word stock in protocol content information of the electronic protocol to be processed, and selecting target keywords related to the octography position determination from the initial keywords based on the drawing requirement information;
Judging whether the target keyword contains the seal position indication information, if so, determining a seal position in the electronic protocol to be processed based on the seal position indication information and the seal standard information, otherwise, determining context information corresponding to the target keyword in the electronic protocol to be processed;
And determining the position of the seal in the electronic protocol to be processed based on the context information and the seal standard information.
Optionally, before 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, the method further comprises:
dividing the gray image corresponding to the seal image into a plurality of non-overlapping sub-image blocks;
respectively determining the pixel quantity of each gray level in each sub-image block, and dividing the pixel quantity of each gray level by the total pixel quantity of the corresponding sub-image block to obtain the probability density of each gray level in each sub-image block;
Sorting the gray levels according to the order from the small level to the large level, taking any gray level except the first gray level in the sorted gray levels as a current gray level respectively, and adding the probability density of each current gray level and the probability density of each gray level sorted before the current gray level to obtain the accumulated probability density corresponding to each current gray level;
Multiplying the accumulated probability density with the maximum gray level in the corresponding sub-image block to obtain a new gray level corresponding to each current gray level, and updating each pixel value under each current gray level to a pixel value corresponding to the new gray level to obtain equalized sub-image blocks;
Determining the original position of each sub-image block in the gray level image, and splicing the equalized sub-image blocks according to the original positions to obtain the preprocessed seal image;
The 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 comprises the following steps:
Combining the preprocessed seal image with the electronic authentication information to obtain an electronic seal;
and dynamically drawing the electronic seal at the seal position of the electronic protocol to be processed by utilizing a seal drawing mode of a preset headless browser.
Optionally, after dynamically drawing an electronic seal at the seal location of the electronic protocol to be processed based on the seal image and the electronic authentication information, the method further comprises:
Encrypting the electronic protocol after drawing the electronic seal, the current state information of the protocol, the time stamp information for drawing the electronic seal and the user identity information of a user corresponding to the electronic seal to obtain encrypted electronic protocol information, and uploading the encrypted electronic protocol information to a blockchain network for storage;
Determining a blockchain browsing mode corresponding to the blockchain network in response to the query signal of the encrypted electronic protocol information, wherein the blockchain browsing mode comprises at least one of a regional chain browser and a blockchain browsing interface;
Querying the encrypted electronic protocol information in the blockchain network based on the blockchain browsing mode.
Optionally, before said determining an octope image database corresponding to said protocol type, the method further comprises:
establishing mapping relations between different protocol types and different seal image databases, and acquiring various seal images;
determining image characteristics corresponding to each seal image, and determining centroid characteristics corresponding to each protocol type;
Classifying each of the seal images based on the image features and the centroid features to obtain seal images under each of the protocol types;
encrypting the seal image under each protocol type to obtain an encrypted seal image;
and storing the encrypted seal images into corresponding seal image databases based on the mapping relation between different protocol types and different seal image databases.
According to a second aspect of the present invention, there is provided a processing apparatus of an electronic protocol, comprising:
The electronic protocol processing unit is used for processing the electronic protocol to be processed according to the electronic authentication information and the electronic authentication information;
A first determining unit, configured to determine an octop image database corresponding to the protocol type, and determine an octop image corresponding to the current state information of the protocol in the octop image database, where the octop image database stores octop images corresponding to different protocol states;
the second determining unit is used for determining an octography position determining mode corresponding to the protocol format and determining an octography position in the electronic protocol to be processed based on the octography position determining mode and the octography standard information;
and the drawing unit is used for dynamically drawing the electronic seal at the seal position of the electronic protocol to be processed based on the seal image and the electronic authentication information.
According to a third aspect of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above method of processing an electronic protocol.
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 on the memory and executable on the processor, the processor implementing the method of processing an electronic protocol as above when executing the program.
According to the method, the device, the storage medium and the computer equipment for processing the electronic protocol, compared with the mode of inserting the inherent stamp at the stamp position manually appointed in the electronic protocol at present, the method and the device dynamically select the stamp image corresponding to the current state information of the protocol in the stamp image database through the protocol type, so that the selected stamp image can meet the current state of the electronic protocol, the flexibility of processing the electronic protocol is enhanced, meanwhile, the method can determine the stamp position determining mode according to the protocol format, and based on the stamp position determining mode and stamp specification information, the stamp position is determined in the electronic protocol to be processed, the determined stamp position can meet the stamp specification, the protocol format can be met, the determination accuracy and the determination efficiency of the stamp position are improved, finally, the electronic stamp is dynamically drawn at the stamp position of the electronic protocol to be processed based on the stamp image and the electronic authentication information, the dynamic drawing of the electronic stamp can be ensured along with the modification of the version, the type, the content and the like of the electronic protocol, and the processing of the electronic protocol is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
Fig. 1 shows a flowchart of a processing method of an electronic protocol according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for processing an electronic protocol according to an embodiment of the present invention;
Fig. 3 is a schematic structural diagram of a processing device of an electronic protocol according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a processing device of another electronic protocol according to an embodiment of the present invention;
fig. 5 shows a schematic physical structure of a computer device according to an embodiment of the present invention.
Detailed Description
The application will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
At present, a method of inserting an inherent stamp at a manually specified stamp position in an electronic protocol generally causes a problem of low stamp position determining efficiency due to the fact that a position determining error exists due to negligence of a user, and meanwhile, the inherent stamp cannot flexibly cope with the change of the protocol.
In order to solve the above problem, an embodiment of the present invention provides a method for processing an electronic protocol, as shown in fig. 1, where the method includes:
101. And responding to the processing signal of the electronic protocol to be processed, and acquiring the protocol type, the protocol format, the current state information, the electronic authentication information and the seal mark standard information of the electronic protocol to be processed.
The electronic protocol to be processed can be a protocol for inviting an author to authorize a certain work, a commodity buying and selling protocol, or a constraint electronic protocol under other scenes, wherein the protocol type comprises an authorization protocol, a service protocol and the like, the protocol format comprises a fixed format protocol format, an unfixed format protocol format and the like, the protocol current state information comprises a pre-authorization protocol, a post-authorization protocol and the like, the electronic authentication information comprises a signature, identity information, a signature and the like of an authorizer, and the stamp capping specification information comprises a company internal specification, an industry specification and the like about stamp capping.
For the embodiment of the invention, the processing signal of the electronic protocol to be processed is the authorization signal of the electronic protocol, namely seal marks, electronic signatures and the like are stamped in the electronic protocol. According to the embodiment of the invention, the seal picture and the seal position are determined by comprehensively analyzing the protocol type, the protocol format, the current state information of the protocol, the electronic authentication information and the seal standard information of the electronic protocol to be processed, and finally, the electronic seal is dynamically drawn in the electronic protocol to be processed according to the seal picture and the seal position, so that the drawing accuracy of the electronic seal in the protocol to be processed can be improved, and the drawn electronic seal can meet various requirements.
102. Determining an octop image database corresponding to the protocol type, and determining the octop image corresponding to the current state information of the protocol in the octop image database, wherein the octop image database stores the octop images corresponding to different protocol states.
For the embodiment of the invention, the pre-authorization protocol corresponds to the pre-authorization seal image, and the post-authorization protocol corresponds to the post-authorization seal image. According to the method, firstly, an octographic image database corresponding to a protocol type is dynamically determined according to the mapping relation between different protocol types and different octographic image databases, if the current state information of the protocol is a pre-authorization protocol, a pre-authorization octographic image is determined in the octographic image database, so that the octographic image is dynamically determined according to the protocol type and the protocol state, the determining process of the octographic image can flexibly cope with the protocol type and the state change, and the processing flexibility of an electronic protocol is enhanced.
103. And determining an octop position determining mode corresponding to the protocol format, and determining the octop position in the electronic protocol to be processed based on the octop position determining mode and the octop standard information.
For the embodiment of the invention, different protocol formats correspond to different seal position determining modes, the seal position is determined by the protocol formats and seal standard information, and the determined seal position can be prevented from shielding important protocol contents, so that the accuracy of determining the seal position is improved, the determined seal position can meet the seal cover standard requirements, and the problem of low efficiency caused by manually determining the seal position can be avoided.
104. And dynamically drawing the electronic seal at the seal position of the electronic protocol to be processed based on the seal image and the electronic authentication information.
For the embodiment of the invention, if the current state information of the protocol is the state before authorization, the electronic authentication information such as the signature, the identity and the like of the authorizer is filled in the electronic protocol, and then the electronic authentication information such as the signature, the identity and the like of the electronic protocol are drawn at the position of the signature of the electronic protocol to be processed by utilizing technologies such as a headless browser and the like. In still another embodiment of the present invention, the electronic authentication information further includes information such as company name, company code, etc., and at this time, the information such as the company name, the company code, etc. is fused with the seal image to form an electronic seal, and finally, the electronic seal is drawn at the seal position of the electronic protocol to be processed by using technologies such as a headless browser, etc. According to the electronic seal mark processing method, the electronic seal mark is dynamically drawn at the seal mark position of the electronic protocol to be processed through the seal mark image and the electronic authentication information, and the electronic seal mark can be ensured to be dynamically changed along with the change of the format, the type, the content and the like of the protocol through the dynamic drawing of the electronic seal mark, so that the processing flexibility of the electronic protocol is improved.
According to the method for processing the electronic protocol, compared with the mode of inserting the inherent stamp at the stamp position manually appointed in the electronic protocol at present, the method for processing the electronic protocol dynamically selects the stamp image corresponding to the current state information of the protocol in the stamp image database through the protocol type, so that the selected stamp image can meet the current state of the electronic protocol, the flexibility of processing the electronic protocol is enhanced, meanwhile, the method for determining the stamp position according to the protocol format can determine the stamp position in the electronic protocol to be processed based on the stamp position determining mode and stamp standard information, the stamp position to be determined can meet the stamp standard, the protocol format can be met, the determination accuracy and the determination efficiency of the stamp position can be improved, finally, the electronic stamp can be dynamically drawn at the stamp position of the electronic protocol to be processed based on the stamp image and the electronic authentication information, the electronic stamp can be ensured to be dynamically changed along with the change of the format, the type, the content and the like of the electronic protocol, and the processing flexibility of the electronic protocol is improved.
Further, in order to better illustrate the above process of processing an electronic protocol, as a refinement and extension of the above embodiment, an embodiment of the present invention provides another processing method of an electronic protocol, as shown in fig. 2, where the method includes:
201. and responding to the processing signal of the electronic protocol to be processed, and acquiring the protocol type, the protocol format, the current state information, the electronic authentication information and the seal mark standard information of the electronic protocol to be processed.
The protocol format comprises one of a format fixed protocol format and a format non-fixed protocol format.
For the embodiment of the invention, when receiving the processing signal of the electronic protocol to be processed, determining an octography image according to the protocol type and the current state information of the protocol, determining the octography position according to the protocol format and the octography standard information, determining the electronic seal according to the octography image and the electronic authentication information, and finally dynamically drawing the electronic seal at the octography position of the electronic protocol to be processed.
202. Determining an octop image database corresponding to the protocol type, and determining the octop image corresponding to the current state information of the protocol in the octop image database, wherein the octop image database stores the octop images corresponding to different protocol states.
For the embodiment of the invention, in order to acquire an octopus image in an octopus image database, an octopus image database is firstly required to be constructed, and based on the method, the method comprises the steps of establishing mapping relations between different protocol types and different octopus image databases, acquiring various octopus images, determining image characteristics corresponding to each octopus image, determining centroid characteristics corresponding to each protocol type, classifying each octopus image based on the image characteristics and the centroid characteristics to obtain the octopus image under each protocol type, conducting encryption processing on the octopus image under each protocol type to obtain an encrypted octopus image, and storing the encrypted octopus image into a corresponding octopus image database based on the mapping relations between different protocol types and different octopus image databases.
The seal image database stores seal images corresponding to different protocol states. Specifically, multiple seal images are acquired in multiple channels such as websites and enterprise internal systems by utilizing a crawler technology, meanwhile, different seal image databases are built for different protocol types, for each protocol type, firstly, accurate standard seal images existing in each protocol type are determined, image characteristics (centroid characteristics) corresponding to the standard seal images are determined, image characteristics corresponding to each seal image are determined, then cosine similarity between each seal image and the standard seal images in each protocol type is calculated according to each image characteristic and centroid characteristics, each seal image is classified under each protocol type according to the cosine similarity, and the seal images are stored in the seal image databases under each protocol type. Further, after the seal image database is built, when the seal image is required to be acquired, acquiring the seal image corresponding to the current state information of the protocol from the seal image database corresponding to the electronic protocol to be processed according to the mapping relation between the protocol type and the seal image database. According to the method and the device for obtaining the seal image, the seal image is obtained through the seal image database which is built in advance, so that the obtaining efficiency of the seal image can be improved, and meanwhile, seal images corresponding to different protocol states are stored in the seal image database, so that the seal processing process can flexibly cope with the change of the protocol states.
Further, after determining the seal image, preprocessing the seal image to improve the definition and usability of the seal image, based on which, the method includes dividing the gray image corresponding to the seal image into a plurality of non-overlapping sub-image blocks, determining the number of pixels of each gray level in each sub-image block, dividing the number of pixels of each gray level by the total number of pixels of the corresponding sub-image block to obtain the probability density of each gray level in each sub-image block, sorting the gray levels in order from small to large, taking any gray level except the first gray level in the sorted gray level as a current gray level, adding the probability density of each current gray level to the probability density of each gray level sorted before the current gray level to obtain the accumulated probability density corresponding to each current gray level, multiplying the accumulated probability density by the maximum gray level in the corresponding sub-image block to obtain the new gray level corresponding to each current gray level, and balancing the position of each sub-image block after the gray level is updated to obtain the original gray level, and equalizing the position of each sub-image after the sub-image is equalized.
Specifically, gray processing is performed on the octographic image to obtain a gray image, and the gray image is divided into a plurality of non-overlapping sub-image blocks, wherein the number of the sub-image blocks is not specifically limited in the embodiment of the present invention, and then equalization processing is performed on each sub-image block, and the specific equalization processing process is as follows: taking sub-image block a as an example, firstly, determining each gray level corresponding to sub-image block a, such as 0 level to 255 level, wherein 0-255 is the gray level value in sub-image block a, and respectively determining the pixel number under each gray level, such as the pixel number with gray level value of 0, the pixel number with gray level value of 255, and the like, and if the pixel number with gray level of 255 is 2000, the total number of pixels corresponding to sub-image block a is 5000, then the probability density m=2000/5000=0.4 of gray level in sub-image block a can be determined, the probability density corresponding to each gray level in sub-image block a can be determined in the above manner, such as 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, the probability density corresponding to gray level D is 0.4, and then the probability density corresponding to gray level B is sequentially ordered, such as the probability density corresponding to gray level a, the probability density corresponding to gray level B is 0.c is added to the probability density corresponding to gray level C is added up to the probability density corresponding to gray level C of 0.c, the probability density corresponding to the gray level C is added up to the probability density corresponding to the gray level C of C is added up to the gray level C, namely, 1 is determined as the accumulated probability density corresponding to the gray level D, if the maximum gray level corresponding to the sub-image block a is 255, multiplying the maximum gray level 255 by the accumulated probability density corresponding to the gray level B by 0.3, obtaining 76.5 as the new gray level corresponding to the gray level B, multiplying the maximum gray level 255 by the accumulated probability density corresponding to the gray level C by 0.6, obtaining 153 as the new gray level corresponding to the gray level C, thereby obtaining the new gray level corresponding to each gray level in each image block according to the above manner, updating the pixel value corresponding to each pixel point under the corresponding gray level by using the pixel value corresponding to the new gray level, obtaining each equalized sub-image block, determining the position of the original sub-image block corresponding to the equalized sub-image block, and splicing the equalized sub-image blocks according to the position, so as to obtain the preprocessed octographic image. Therefore, the embodiment of the invention ensures that the brightness distribution of the image is more uniform by reassigning the pixel values of the image, the original excessively dark or excessively bright area is properly adjusted, the contrast of the image is obviously enhanced, the image content is better displayed, the details and edges of the image are enhanced, the micro structure in the image is clearer and more visible, the seal image is clearer and brighter in visual effect, the overall quality is improved, and the seal effect in an electronic protocol is better.
Further, after preprocessing the seal image, stamping in an electronic protocol is required to be carried out by utilizing the preprocessed seal image, and based on the method, the electronic seal is obtained by combining the preprocessed seal image with the electronic authentication information, and the electronic seal is dynamically drawn at the seal position of the electronic protocol to be processed by utilizing a preset headless browser seal drawing mode.
Specifically, if the seal image only contains the seal pattern, does not contain the company name, and contains the company name in the electronic authentication information, the seal image and the company name in the electronic authentication information need to be combined at the moment to obtain the electronic seal, and finally, the electronic protocol page is dynamically rendered at the server side by utilizing the headless browser technology, and the electronic seal is drawn at the appointed seal position. The headless browser can simulate the operation of a user in the browser, but does not display any content on a screen, is suitable for automatic processing of a server side, and if signature and identity information of an authorizer are required to be filled in an electronic protocol, the signature, the electronic signature, title, the identity information and other information of the authorizer in the electronic authentication information are required to be filled in corresponding positions in the electronic protocol.
203. And determining a coordinate value seal position determining mode corresponding to the format fixed protocol format, and determining the seal position in the electronic protocol to be processed based on the coordinate value seal position determining mode and seal cover standard information.
The format fixed protocol format refers to that the arrangement mode, size and position of the protocol layout elements in the layout are fixed and cannot be changed along with the change of the page size, the browser window size or the equipment type.
For the embodiment of the invention, if the electronic protocol to be processed is in a format-fixed protocol format, the position of the stamp is determined by using a coordinate value stamp position determination mode, based on which, step 203 specifically comprises determining page size information of a page where the electronic protocol to be processed is located, protocol content position information of protocol content information in the electronic protocol to be processed, protocol content size information and stamp size information of an electronic stamp, determining an initial drawing area of the electronic stamp based on the page size information, the protocol content size information, the stamp size information of the electronic stamp and the stamp specification information, acquiring stamp width information in the stamp size information and page resolution information of the page, determining a transverse edge distance between a first area edge of the initial drawing area and a first page edge of the page, and determining a longitudinal edge distance between a second area edge of the initial drawing area and a second edge of the page, wherein the first area edge is determined relative to the first page edge in the same direction relative to the first page edge and the first page edge, the initial drawing area is determined relative to the longitudinal edge of the page in the same direction relative to the first page edge and the initial page resolution information, and determining the stamp position of the electronic stamp in the electronic protocol to be processed based on the x coordinate value and the y coordinate value.
Specifically, an initial drawing area capable of drawing the electronic seal is determined in a page where the electronic protocol to be processed is located according to page size information, protocol content position information, protocol content size information, seal size information of the electronic seal and seal printing standard information, for example, a blank area capable of accommodating the seal in the page. Further, after determining the initial drawing area, if the X coordinate indicates 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, and if the left edge of the initial drawing area is 18cm from the left edge of the page and the resolution of the page is 72dpi, the X coordinate= (18 cm/a) X72 dpi, where a is a constant value set according to the actual requirement, such as 2.54. And calculating a Y coordinate, wherein the Y coordinate represents the vertical position of the electronic seal on the page. The Y coordinate is calculated from the distance of the top (or bottom) of the page from the top (or bottom) of the initial drawing area (or lower edge, depending on the specific requirements), and the height of the stamp. For example, the initial rendering area lower edge is 8.23 cm from the page bottom and the page resolution is 72dpi, then Y coordinate= (page height-8.23 cm/a) 72dpi (note that here the initial rendering area to page bottom distance may need to be subtracted from the total page height to get the correct Y coordinate)). Therefore, the x coordinate value and the y coordinate value of the electronic seal can be calculated according to the mode, and finally, the positions corresponding to the x coordinate value and the y coordinate value are determined to be the seal positions of the electronic seal in the electronic protocol to be processed. The embodiment of the invention determines the position of the electronic seal by the coordinate values, can ensure that the seal positions of each protocol are kept consistent by using the same coordinate values in a plurality of protocols, improves the overall aesthetic property and the professional property of the document, and ensures that the position of the electronic seal meets the seal printing standard in the industry or enterprises. Meanwhile, by means of the coordinate values, the automatic stamping process of the electronic seal can be realized, and the steps and time of manual operation are reduced.
204. And determining a keyword seal position determining mode corresponding to the format of the format non-fixed protocol, and determining the seal position in the electronic protocol to be processed based on the keyword seal position determining mode and seal cover standard information.
The format of the non-fixed protocol format refers to that the arrangement mode and the position of the layout elements of the protocol in the layout can be flexibly adjusted along with the change of the page size, the browser window size or the equipment type.
For the embodiment of the invention, different protocol formats correspond to different marking position determining modes, if the electronic protocol to be processed is in a format of a non-fixed protocol format, the marking position is determined by utilizing a keyword marking position determining mode, based on the fact, step 204 specifically comprises the steps of obtaining drawing requirement information for marking the electronic protocol to be processed, determining an initial keyword matched with a standard keyword in a word stock of a preset marking position in protocol content information of the electronic protocol to be processed, selecting a target keyword related to marking position determination in the initial keyword based on the drawing requirement information, judging whether marking position indicating information is contained in the target keyword, if so, determining a marking position in the electronic protocol to be processed based on the marking position indicating information and marking standard information, otherwise, determining context information corresponding to the target keyword in the electronic protocol to be processed, and determining the marking position in the electronic protocol to be processed based on the context information and the marking standard information.
The drawing requirement information refers to the requirement of an electronic protocol authorizer for determining the seal position, such as that an electronic seal is drawn at a name or at a seal indication position, and the like, standard keywords of various seal indication positions, such as keywords of specific clauses, section titles, signature area identifiers, seals at the positions and the like, are stored in a preset seal position word stock, and seal position indication information refers to indication information of characters, such as seals at the positions, seal areas and the like.
Specifically, based on a preset seal position word stock, if the initial keywords identified in the protocol content information are initial keywords such as a paragraph title, a signature, a date and the like, and the drawing requirement information is to seal at the signature, the target keywords are the signature, the signature is seal position indication information at the moment, and finally the electronic seal is drawn at the signature word according to the requirement of seal standard information (such as that the seal information is clear, no defects such as smearing, word overlapping and the like exist, the word direction in the seal is identical to the word direction in the protocol content and the like). In addition, if the target keyword is a specific term in the agreement, and the specific term does not include the seal position indication information such as "seal area", "seal here", and the like, at this time, the context information of the specific term needs to be determined, for example, "the agreement is validated after being signed by both parties, and then a reasonable seal position needs to be inferred according to the context, for example, an electronic seal is drawn on a signature page or a confirmation page at the end of the agreement. When the position of the seal is selected, seal standard information of the protocol is required to be followed, the placement of the seal is ensured not to damage the overall aesthetic property and the readability of the protocol, and the size, the rotation angle or the transparency and other attributes of the seal can be adjusted according to the requirement so as to ensure that the seal is coordinated with the layout and the style of the protocol. Therefore, the specific position needing to be stamped in the electronic protocol can be rapidly positioned through keyword searching without manual page-by-page turning or searching, so that the protocol processing period is greatly shortened, the working efficiency is improved, meanwhile, specific content or clauses in the electronic protocol can be accurately matched by utilizing the keyword searching technology, and the stamping position accuracy is ensured.
205. And dynamically drawing the electronic seal at the seal position of the electronic protocol to be processed based on the seal image and the electronic authentication information.
The electronic seal comprises not only a seal, but also elements such as title, an author, a signature, an electronic signature and the like of an electronic protocol authorizer, such as a time stamp, user identity information and the like.
For the embodiment of the invention, if the seal image only comprises a pattern and does not contain company name and seal type, the company name and seal type (such as special seal type for finance) are required to be inquired in the electronic authentication information, then the company name and seal type are combined with the seal image to form an electronic seal, and finally the electronic seal is dynamically drawn at the seal position of the electronic protocol to be processed. For the electronic protocol type before authorization, besides drawing the electronic seal, elements such as information such as an authorizer title, an author, a signature, an electronic signature and the like, a timestamp, user identity information and the like in the authorization process are filled in the corresponding position of the electronic protocol to be processed so as to enhance the processing integrity and the processing accuracy of the electronic protocol and enable the processed electronic protocol to have practicability and usability.
Further, after drawing an electronic seal in an electronic protocol to be processed, in order to ensure the safety and the credible sharing of the protocol, the electronic protocol is required to be stored in an uplink mode, and based on the electronic protocol, the method comprises the steps of conducting encryption processing on the electronic protocol after drawing the electronic seal, the current state information of the protocol, the time stamp information for drawing the electronic seal and user identity information of a user corresponding to the electronic seal to obtain encrypted electronic protocol information, and uploading the encrypted electronic protocol information to a blockchain network for storage, and determining a blockchain browsing mode corresponding to the blockchain network in response to a query signal of the encrypted electronic protocol information, wherein the blockchain browsing mode comprises at least one of a regional chain browser and a blockchain browsing interface, and querying the encrypted electronic protocol information in the blockchain network based on the blockchain browsing mode.
The time stamp information refers to the stamping time of an electronic protocol, the user identity information refers to the name, the identity ID and other information of an authorizer, and the protocol current state information comprises the states of a pre-authorization protocol, a post-authorization protocol and the like.
Specifically, after the electronic protocol is printed with the electronic seal, the information related to the electronic protocol such as the current state information, the time stamp information, the user identity information of the authorized user and the like of the electronic protocol after the electronic seal is printed is determined to be encrypted, and then the encrypted electronic protocol is uploaded to a blockchain network to be stored, so that the electronic protocol and the state information thereof are permanently stored and are guaranteed to be untampered. When a user wants to view an electronic protocol, the user can view information such as the electronic protocol and state information thereof which are already up-linked by using a blockchain browser corresponding to the blockchain network or an interface provided by a system. According to the embodiment of the invention, the electronic protocol is stored through the block chain network, so that the traceability and the safety of the electronic protocol can be ensured.
According to the processing method of the electronic protocol, compared with the mode of inserting the inherent stamp at the stamp position manually appointed in the electronic protocol at present, the method dynamically selects the stamp image corresponding to the current state information of the protocol in the stamp image database through the protocol type, so that the selected stamp image can meet the current state of the electronic protocol, the flexibility of electronic protocol processing is enhanced, meanwhile, the method can determine the stamp position determining mode according to the protocol format and determine the stamp position in the electronic protocol to be processed based on the stamp position determining mode and stamp standard information, the determined stamp position can meet the stamp standard, the protocol format can be met, the determination accuracy and the determination efficiency of the stamp position are improved, finally, the electronic stamp is dynamically drawn at the stamp position of the electronic protocol to be processed based on the stamp image and the electronic authentication information, the electronic stamp can be ensured to be dynamically changed along with the change of the format, the type, the content and the like of the protocol, and the processing flexibility of the electronic protocol is improved.
Further, as a specific implementation of fig. 1, an embodiment of the present invention provides a processing apparatus for an electronic protocol, as shown in fig. 3, where the apparatus includes an obtaining unit 31, a first determining unit 32, a second determining unit 33, and a drawing unit 34.
The obtaining unit 31 may be configured to obtain, in response to a processing signal of an electronic protocol to be processed, a protocol type, a protocol format, current state information of the protocol, electronic authentication information, and seal print specification information of the electronic protocol to be processed.
The first determining unit 32 may be configured to determine an octop image database corresponding to the protocol type, and determine an octop image corresponding to the current state information of the protocol in the octop image database, where the octop image database stores octop images corresponding to different protocol states.
The second determining unit 33 may be configured to determine an stamp position determining manner corresponding to the protocol format, and determine a stamp position in the electronic protocol to be processed based on the stamp position determining manner and the stamp standard information.
The drawing unit 34 may be configured to dynamically draw an electronic seal at the seal position of the electronic protocol to be processed based on the seal image and the electronic authentication information.
In a specific application scenario, the protocol format comprises one of a format fixed protocol format and a format non-fixed protocol format, in order to determine the stamp position, the second determining unit 33 may be specifically configured to determine a coordinate stamp position determining manner corresponding to the format fixed protocol format, and determine the stamp position in the electronic protocol to be processed based on the coordinate stamp position determining manner and the stamp capping specification information, or determine a keyword stamp position determining manner corresponding to the format non-fixed protocol format, and determine the stamp position in the electronic protocol to be processed based on the keyword stamp position determining manner and the stamp capping specification information.
In a specific application scenario, in order to determine the position of the seal mark, as shown in fig. 4, the second determining unit 33 includes a determining module 331 and an obtaining module 332.
The determining module 331 may be configured to determine page size information of a page where the electronic protocol to be processed is located, protocol content position information of protocol content information in the electronic protocol to be processed, protocol content size information, stamp size information of an electronic stamp.
The determining module 331 may be further configured to determine an initial drawing area of the electronic stamp based on the page size information, the protocol content location information, the protocol content size information, stamp size information of the electronic stamp, and the stamp capping specification information.
The obtaining module 332 may be configured to obtain the seal width information in the seal size information and the page resolution information of the page.
The determining module 331 may be further configured to determine a lateral 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, where a direction of the first area edge with respect to the initial drawing area is the same as a direction of the first page edge with respect to the page, and a direction of the second area edge with respect to the initial drawing area is the same as a direction of the second page edge with respect to the page.
The determining module 331 may be further configured to determine an x-coordinate value of the electronic stamp in the initial drawing area based on the lateral edge distance and the page resolution information, and determine a y-coordinate value of the electronic stamp in the initial drawing area based on the longitudinal edge distance and the page resolution information.
The determining module 331 may be further configured to determine an stamp location of the electronic stamp in the electronic protocol to be processed based on the x-coordinate value and the y-coordinate value.
In a specific application scenario, in order to determine the position of the seal mark, the second determining unit 33 further includes a determining module 333.
The obtaining module 332 may be further configured to obtain drawing requirement information for performing octography on the electronic protocol to be processed.
The determining module 331 may be further configured to determine an initial keyword that matches a standard keyword in a preset octography location lexicon in protocol content information of the electronic protocol to be processed, and select, based on the drawing requirement information, a target keyword related to octography location determination from the initial keywords.
The determining module 333 may be configured to determine whether the target keyword includes an indication information of a seal position, if so, determine a seal position in the electronic protocol to be processed based on the indication information of the seal position and the standard information of seal printing, otherwise, determine context information corresponding to the target keyword in the electronic protocol to be processed.
The determining module 331 may be further configured to determine an stamp location in the electronic protocol to be processed based on the context information and the stamp specification information.
In a specific application scenario, the apparatus further comprises a preprocessing unit 35 for preprocessing the seal image.
The preprocessing unit 35 may be configured to divide the gray image corresponding to the octographic image into a plurality of non-overlapping sub-image blocks, determine the number of pixels of each gray level in each sub-image block, divide the number of pixels of each gray level by the total number of pixels of the corresponding sub-image block to obtain the probability density of each gray level in each sub-image block, sort the gray levels in order from the low level to the high level, take any gray level except the first gray level in the sorted gray levels as a current gray level, add the probability density of each current gray level to the probability density of each gray level sorted before the current gray level to obtain an accumulated probability density of each current gray level, multiply the accumulated probability density by the maximum gray level in the corresponding sub-image block to obtain a new gray level corresponding to each current gray level, update each pixel value under each current gray level to the pixel value corresponding to the new gray level, obtain an equalized image after the sub-image is spliced, and the original image is obtained after the sub-image is subjected to the equalization processing in the sub-image according to the equalizing position of each sub-image.
In a specific application scenario, in order to dynamically draw an electronic seal, the drawing unit 34 may be specifically configured to combine the preprocessed seal image with the electronic authentication information to obtain an electronic seal, and dynamically draw the electronic seal at the seal position of the electronic protocol to be processed by using a preset headless browser seal drawing mode.
In a specific application scenario, in order to store the electronic protocol after stamping in a uplink manner, the device further comprises a uplink unit 36 and an information query unit 37.
The encryption unit 36 may be configured to encrypt the electronic protocol after the electronic seal is drawn, the current state information of the protocol, the timestamp information when the electronic seal is drawn, and the user identity information of the user corresponding to the electronic seal, obtain encrypted electronic protocol information, and upload the encrypted electronic protocol information to a blockchain network for storage.
The information query unit 37 may be configured to determine a blockchain browsing manner corresponding to the blockchain network in response to the query signal of the encrypted electronic protocol information, where the blockchain browsing manner includes at least one of a local chain browser and a blockchain browsing interface, and query the encrypted electronic protocol information in the blockchain network based on the blockchain browsing manner.
In a specific application scenario, the apparatus further comprises a construction unit 38 for constructing the octographic image database.
The construction unit 38 may be configured to establish mapping relationships between different protocol types and different seal image databases, obtain multiple seal images, determine image features corresponding to each seal image, determine centroid features corresponding to each protocol type, classify each seal image based on the image features and the centroid features to obtain seal images under each protocol type, encrypt each seal image under each protocol type to obtain encrypted seal images, and store the encrypted seal images in corresponding seal image databases based on mapping relationships between different protocol types and different seal image databases.
It should be noted that, for other corresponding descriptions of each functional module related to the processing apparatus for electronic protocol provided in the embodiment of the present invention, reference may be made to corresponding descriptions of the method shown in fig. 1, which are not repeated herein.
Based on the method shown in fig. 1, correspondingly, the embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the program is executed by a processor to realize the following steps of responding to a processing signal of an electronic protocol to be processed, acquiring a protocol type, a protocol format, protocol current state information, electronic authentication information and stamp standard information of the electronic protocol to be processed, determining a stamp image database corresponding to the protocol type, determining stamp images corresponding to the protocol current state information in the stamp image database, storing stamp images corresponding to different protocol states in the stamp image database, determining a stamp position determining mode corresponding to the protocol format, determining a stamp position in the electronic protocol to be processed based on the stamp position determining mode and the stamp standard information, and dynamically drawing an electronic stamp at the stamp position of the electronic protocol to be processed based on the stamp images and the electronic authentication information.
Based on the embodiment of the method shown in fig. 1 and the device shown in fig. 3, the embodiment of the invention also provides a physical structure diagram of a computer device, as shown in fig. 5, which comprises a processor 41, a memory 42 and a computer program stored on the memory 42 and capable of running on the processor, wherein the memory 42 and the processor 41 are both arranged on a bus 43, when the processor 41 executes the program, the following steps are realized, namely, a protocol type, a protocol format, protocol current state information, electronic authentication information and seal standard information of an electronic protocol to be processed are obtained, an seal image database corresponding to the protocol type is determined, seal images corresponding to the protocol current state information are determined in the seal image database, seal image corresponding to different protocol states are stored in the seal image database, a seal position determining mode corresponding to the protocol format is determined, and the seal position determining mode and the seal electronic seal standard information are drawn in the electronic seal position to be processed based on the seal position determining protocol.
According to the technical scheme, the stamp image corresponding to the current state information of the protocol is dynamically selected in the stamp image database through the protocol type, so that the selected stamp image can meet the current state of the electronic protocol, the flexibility of electronic protocol processing is enhanced, meanwhile, the stamp position determining mode can be determined according to the protocol format, the stamp position is determined in the electronic protocol to be processed based on the stamp position determining mode and stamp capping standard information, the determined stamp position can meet the stamp capping standard and the protocol format, the determination accuracy and determination efficiency of the stamp position are improved, finally, the electronic stamp is dynamically drawn at the stamp position of the electronic protocol to be processed based on the stamp image and electronic authentication information, the electronic stamp can be ensured to be dynamically changed along with the change of the format, the type, the content and the like of the protocol through the dynamic drawing of the electronic stamp, and the processing flexibility of the electronic protocol is improved.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for processing an electronic protocol, comprising:
responding to a processing signal of an electronic protocol to be processed, and acquiring the protocol type, the protocol format, the current state information of the protocol, the electronic authentication information and the seal printing standard information of the electronic protocol to be processed;
Determining an octopus image database corresponding to the protocol type, and determining an octopus image corresponding to the current state information of the protocol in the octopus image database, wherein the octopus image database stores octopus images corresponding to different protocol states;
Determining an octopus position determining mode corresponding to the protocol format, and determining an octopus position in the electronic protocol to be processed based on the octopus position determining mode and the octopus capping 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.
2. The method of claim 1, wherein the protocol format comprises one of a fixed format and a non-fixed format;
The determining the stamp position in the electronic protocol to be processed based on the stamp position determining mode and the stamp capping specification information comprises the following steps:
Determining coordinate value seal position determining mode corresponding to the format fixed protocol format, and determining seal position in the electronic protocol to be processed based on the coordinate value seal position determining mode and seal standard information, or,
And determining a keyword seal position determining mode corresponding to the format of the format non-fixed protocol, and determining a seal position in the electronic protocol to be processed based on the keyword seal position determining mode and the seal cover standard information.
3. The method of claim 2, wherein determining the stamp location in the electronic protocol to be processed based on the coordinate value stamp location determination and the stamp capping specification information comprises:
Determining page size information of a page where the electronic protocol to be processed is located, protocol content position information of protocol content information in the electronic protocol to be processed, protocol content size information and seal size information of an electronic seal;
Determining an 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 standard information of the seal;
Acquiring the seal width information in the seal size information and the page resolution information of the page;
Determining a lateral edge distance between a first region edge of the initial drawing region and a first page edge of the page, and determining a longitudinal edge distance between a second region edge of the initial drawing region and a second page edge of the page, wherein the direction of the first region edge relative to the initial drawing region is the same as the direction of the first page edge relative to the page, and the direction of the second region edge relative to the initial drawing region is the same as the direction of the second page edge relative to the page;
Determining an x-coordinate value of the electronic stamp in the initial rendering area based on the lateral edge distance and the page resolution information, and determining a y-coordinate value of the electronic stamp in the initial rendering area based on the longitudinal edge distance and the page resolution information;
and determining the stamp position of the electronic stamp in the electronic protocol to be processed based on the x coordinate value and the y coordinate value.
4. The method of claim 2, wherein the determining the stamp location in the electronic protocol to be processed based on the keyword stamp location determination and the stamp capping specification information comprises:
acquiring drawing requirement information for performing octography drawing on the electronic protocol to be processed;
Determining initial keywords matched with standard keywords in a preset octography position word stock in protocol content information of the electronic protocol to be processed, and selecting target keywords related to the octography position determination from the initial keywords based on the drawing requirement information;
Judging whether the target keyword contains the seal position indication information, if so, determining a seal position in the electronic protocol to be processed based on the seal position indication information and the seal standard information, otherwise, determining context information corresponding to the target keyword in the electronic protocol to be processed;
And determining the position of the seal in the electronic protocol to be processed based on the context information and the seal standard information.
5. The method of claim 1, wherein prior to dynamically drawing an electronic seal at the seal location of the electronic protocol to be processed based on the seal image and the electronic authentication information, the method further comprises:
dividing the gray image corresponding to the seal image into a plurality of non-overlapping sub-image blocks;
respectively determining the pixel quantity of each gray level in each sub-image block, and dividing the pixel quantity of each gray level by the total pixel quantity of the corresponding sub-image block to obtain the probability density of each gray level in each sub-image block;
Sorting the gray levels according to the order from the small level to the large level, taking any gray level except the first gray level in the sorted gray levels as a current gray level respectively, and adding the probability density of each current gray level and the probability density of each gray level sorted before the current gray level to obtain the accumulated probability density corresponding to each current gray level;
Multiplying the accumulated probability density with the maximum gray level in the corresponding sub-image block to obtain a new gray level corresponding to each current gray level, and updating each pixel value under each current gray level to a pixel value corresponding to the new gray level to obtain equalized sub-image blocks;
Determining the original position of each sub-image block in the gray level image, and splicing the equalized sub-image blocks according to the original positions to obtain the preprocessed seal image;
The 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 comprises the following steps:
Combining the preprocessed seal image with the electronic authentication information to obtain an electronic seal;
and dynamically drawing the electronic seal at the seal position of the electronic protocol to be processed by utilizing a seal drawing mode of a preset headless browser.
6. The method of claim 1, wherein after dynamically drawing an electronic seal at the seal location of the electronic protocol to be processed based on the seal image and the electronic authentication information, the method further comprises:
Encrypting the electronic protocol after drawing the electronic seal, the current state information of the protocol, the time stamp information for drawing the electronic seal and the user identity information of a user corresponding to the electronic seal to obtain encrypted electronic protocol information, and uploading the encrypted electronic protocol information to a blockchain network for storage;
Determining a blockchain browsing mode corresponding to the blockchain network in response to the query signal of the encrypted electronic protocol information, wherein the blockchain browsing mode comprises at least one of a regional chain browser and a blockchain browsing interface;
Querying the encrypted electronic protocol information in the blockchain network based on the blockchain browsing mode.
7. The method of claim 1, wherein prior to said determining an octographic image database corresponding to said protocol type, the method further comprises:
establishing mapping relations between different protocol types and different seal image databases, and acquiring various seal images;
determining image characteristics corresponding to each seal image, and determining centroid characteristics corresponding to each protocol type;
Classifying each of the seal images based on the image features and the centroid features to obtain seal images under each of the protocol types;
encrypting the seal image under each protocol type to obtain an encrypted seal image;
and storing the encrypted seal images into corresponding seal image databases based on the mapping relation between different protocol types and different seal image databases.
8. An electronic protocol processing apparatus, comprising:
The electronic protocol processing unit is used for processing the electronic protocol to be processed according to the electronic authentication information and the electronic authentication information;
A first determining unit, configured to determine an octop image database corresponding to the protocol type, and determine an octop image corresponding to the current state information of the protocol in the octop image database, where the octop image database stores octop images corresponding to different protocol states;
the second determining unit is used for determining an octography position determining mode corresponding to the protocol format and determining an octography position in the electronic protocol to be processed based on the octography position determining mode and the octography standard information;
and the drawing unit is used for dynamically drawing the electronic seal at the seal position of the electronic protocol to be processed based on the seal image and the electronic authentication information.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program when executed by the processor implements the steps of the method according to any one of claims 1 to 7.
CN202411643419.9A 2024-11-18 2024-11-18 Electronic protocol processing method and device, storage medium and computer equipment Pending CN119760162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411643419.9A CN119760162A (en) 2024-11-18 2024-11-18 Electronic protocol processing method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411643419.9A CN119760162A (en) 2024-11-18 2024-11-18 Electronic protocol processing method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN119760162A true CN119760162A (en) 2025-04-04

Family

ID=95184000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411643419.9A Pending CN119760162A (en) 2024-11-18 2024-11-18 Electronic protocol processing method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN119760162A (en)

Similar Documents

Publication Publication Date Title
US9088673B2 (en) Image registration
US9179035B2 (en) Method of editing static digital combined images comprising images of multiple objects
US20070035780A1 (en) System and method for defining characteristic data of a scanned document
US20190318189A1 (en) Method, System and Computer Readable Storage Medium for Identifying Information Carried on Sheet
US9177199B2 (en) Semantic magazine pages
CN109255356A (en) A kind of character recognition method, device and computer readable storage medium
CN108764352A (en) Duplicate pages content detection algorithm and device
CN114332895B (en) Text image synthesis method, device, equipment, storage medium and program product
CN112508145B (en) Electronic seal generation and verification method and device, electronic equipment and storage medium
CN111402120A (en) Method and device for processing annotated image
US11321524B1 (en) Systems and methods for testing content developed for access via a network
CN112861861B (en) Method and device for recognizing nixie tube text and electronic equipment
CN108648189A (en) Image fuzzy detection method, apparatus, computing device and readable storage medium storing program for executing
CN113936187A (en) Text image synthesis method and device, storage medium and electronic equipment
CN111241974B (en) Bill information acquisition method, device, computer equipment and storage medium
JP2018042067A (en) Image processing system, image processing method, and information processing apparatus
CN114546306A (en) Data processing method, device, equipment, medium and program product applied to report form printing
CN108369647B (en) Image-based quality control
CN119760162A (en) Electronic protocol processing method and device, storage medium and computer equipment
JP5051756B2 (en) Form identification method, form identification program, and optical character reading system using the form identification method
US10475189B2 (en) Content aware, spatially adaptive automated thresholding of images
CN114896157B (en) Page compatibility testing method, device, equipment, and storage medium
US11438477B2 (en) Information processing device, information processing system and computer readable medium
JP7547729B2 (en) Information processing device, information processing system, and program
CN112150483B (en) Picture tampering detection method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Country or region after: China

Address after: Room B201, B202, B203, B205, B206, B207, B208, B209, B210, 2nd Floor, Building B-2, Zhongguancun Dongsheng Science and Technology Park, No. 66 Xixiaokou Road, Haidian District, Beijing (Dongsheng area)

Applicant after: Tongfangzhiwang Digital Technology Co.,Ltd.

Address before: Room B201, B202, B203, B205, B206, B207, B208, B209, B210, 2nd Floor, Building B-2, Zhongguancun Dongsheng Science and Technology Park, No. 66 Xixiaokou Road, Haidian District, Beijing (Dongsheng area)

Applicant before: TONGFANG KNOWLEDGE NETWORK DIGITAL PUBLISHING TECHNOLOGY CO.,LTD.

Country or region before: China

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination