Method, system and device for stamping perforation seal on electronic document and storage medium

By enlarging the seal image, generating the crease mark and splitting the electronic documents, the problem that traditional stitch seals cannot be stamped onto the odd pages of large pages of electronic documents is solved, and the seal integrity and anti-counterfeiting effect of paper documents is achieved.

CN120339459APending Publication Date: 2025-07-18GUIZHOU AEROSPACE INST OF MEASURING & TESTING TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510336218.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-20
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

Traditional sewing seals cannot be stamped on all odd pages of large pages of electronic documents. The printed paper sewing seals are easily forged, and paper documents are easily changed, added, and drawn, resulting in difficult to curb tampering and forging of documents.

Method used

By obtaining the page number, attribute information and size information of the electronic document to be signed, the original electronic seal image is enlarged and the fold mark generation is carried out, and the seal image is divided equally, and it is added to the seal position of the electronic document to ensure the integrity and anti-counterfeiting of each page.

Benefits of technology

It effectively solves the problem of stamping odd-numbered seals for electronic documents with large pages, prevents the forgery and tampering of paper documents, and ensures the authenticity and immutability of seals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120339459A_ABST
    Figure CN120339459A_ABST
Patent Text Reader

Abstract

The invention provides a method, system and device for stamping a perforation seal on an electronic document and a storage medium, and solves the problems that the perforation seal cannot be stamped on all odd pages of a large-page electronic document, and the printed perforation seal of a paper document is easy to counterfeit. The method comprises the steps that according to the page number of an electronic document to be signed and the number of pixel points in the horizontal direction of an original electronic seal image, the original electronic seal image is amplified, and a first electronic seal image is obtained; obtaining a string of feature characters according to the attribute information of the electronic document to be signed, and further generating a crease mark on the annular periphery of the first electronic seal image to obtain a second electronic seal image; according to the page number of the to-be-signed electronic document and the width of the original electronic seal image, performing equal-ratio segmentation on the second electronic seal image to obtain an electronic seal image segmentation set; and according to the size information of the to-be-signed electronic document and a preset seal position of the to-be-signed electronic document, adding the electronic seal image segmentation set to the seal position of the to-be-signed electronic document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information security, and particularly to a method, system, device, and storage medium for affixing a split seal to an electronic document. Background Art

[0002] With the rapid development of the digital detection capabilities of inspection and testing institutions, electronic split seals have become increasingly popular. According to the relevant statement requirements of inspection reports, inspection reports must be affixed with a split "special inspection seal". The electronic split seal is the electronic implementation of affixing a split seal to traditional paper documents. The seal image is affixed to the margins of multiple consecutive pages and belongs to a special electronic signature application. To ensure that the split seal on each page of the printed electronic document can be pieced together to restore the complete split seal, the split seal image needs to be truly cut according to the number of pages to be affixed and affixed to the odd pages of the electronic document, so as to ensure the integrity of the printed paper document.

[0003] However, in actual applications, before cutting the signature image, if the number of pages of the electronic document is large, it may lead to a situation where the pixels of the original seal image after equal ratio division are too small to be divided. To ensure that the seal image can be divided when the number of divisions is large, the seal image is enlarged and then cut, which can ensure that the split seal is affixed to each page of the electronic document. At the same time, the split seal on the paper inspection report is easily exploited by criminals, such as forging the seal and affixing it to a false inspection report. Anti-counterfeiting can be achieved by adding crease marks to the signature image. Therefore, aiming at the above problems, how to better affix a split seal to an electronic document is a problem that needs to be solved currently. Summary of the Invention

[0004] The embodiments of this application provide a method, system, device, and storage medium for affixing a split seal to an electronic document, which solves the problems that traditional split seals cannot be affixed to all odd pages of electronic documents with a large number of pages, and the split seal on the printed paper document is easily forged, and prevents the printed paper document from being paginated, page-added, or page-removed, effectively curbing the generation of tampered and forged documents.

[0005] To achieve the above object, this application adopts the following technical solutions:

[0006] In a first aspect, this application provides a method for affixing a split seal to an electronic document, the method including: obtaining the number of pages, attribute information, and size information of the electronic document to be signed, as well as the original electronic seal image and image information corresponding to the electronic document to be signed, where the image information includes the number of horizontal pixels and the horizontal width of the original electronic seal image;

[0007] Performing image enlargement processing on the original electronic seal image according to the number of pages of the electronic document to be signed and the number of horizontal pixels of the original electronic seal image to obtain a first electronic seal image;

[0008] Obtain a string of characteristic characters according to the attribute information of the electronic document to be signed

[0009] Generate a crease mark for the circular peripheral image of the first electronic seal image according to a string of characteristic characters to obtain a second electronic seal image

[0010] Perform equal ratio segmentation on the second electronic seal image according to the number of pages of the electronic document to be signed and the horizontal width of the original electronic seal image to obtain a set of segmented electronic seal images

[0011] Add the set of segmented electronic seal images to the seal position of the electronic document to be signed according to the size information of the electronic document to be signed and the preset seal position of the electronic document to be signed

[0012] In a possible design, the method of the first aspect further includes that the attribute information of the electronic document to be signed includes at least one of the following: the initials of the document creator's name, the document creator's unit code, and the document creation date

[0013] In a possible design, the method of the first aspect further includes performing image magnification processing on the original electronic seal image according to the number of pages of the electronic document to be signed and the number of horizontal pixels of the original electronic seal image to obtain the first electronic seal image, including

[0014] The number of pages of the electronic document to be signed is m, and the number of horizontal pixels of the original electronic seal image is n

[0015] Based on the fact that the split seal is stamped on odd pages, if m is odd, evenly distribute the original electronic seal to the odd pages of the electronic document to be signed, then the number of horizontal pixels on each odd page is p1 = 2n / (m + 1); if m is even, evenly distribute the original electronic seal to the odd pages of the electronic document to be signed, then the number of horizontal pixels on each odd page is p2 = 2n / m

[0016] If p1 or p2 is less than the minimum number of pixels that can be displayed on the electronic document to be signed, perform image magnification processing on the original electronic seal image until the value of p1 or p2 is greater than or equal to the minimum number of pixels that can be displayed on the electronic document to be signed to obtain the first electronic seal image

[0017] In a possible design, the method of the first aspect further includes using the nearest neighbor interpolation algorithm for image magnification processing

[0018] In a possible design, the method of the first aspect further includes generating a crease mark for the circular peripheral image of the first electronic seal image according to a string of characteristic characters to obtain a second electronic seal image, including

[0019] Obtain M characteristic characters according to a string of characteristic characters;

[0020] Obtain a set of angular values of the deflection angles of M crease imprint images according to the M characteristic characters;

[0021] Generate a crease imprint for the circular peripheral image of the first electronic seal image according to the set of angular values to obtain a second electronic seal image.

[0022] A possible design solution, the method in the first aspect further includes, according to the number of pages of the electronic document to be signed and the horizontal width of the original electronic seal image, performing proportional division on the second electronic seal image to obtain a set of segmented electronic seal images, including:

[0023] The number of pages of the electronic document to be signed is m, and the horizontal width of the original electronic seal image is width;

[0024] According to the rider seal being stamped on the odd-numbered pages, if m is odd, divide the original electronic seal image, and the width of the division on each odd-numbered page is width1 = 2×width / (m + 1), if m is even, divide the original electronic seal image, and the width of the division on each odd-numbered page is width2 = 2×width / m, thereby obtaining a set of segmented electronic seal images.

[0025] A possible design solution, the method in the first aspect further includes, according to the size information of the electronic document to be signed and the preset seal position of the electronic document to be signed, adding the set of segmented electronic seal images to the seal position of the electronic document to be signed, including:

[0026] Calculate the stamping position coordinates corresponding to the seal cutting blocks in the set of segmented electronic seal images according to the size information of the electronic document to be signed and the preset seal position of the electronic document to be signed;

[0027] Add the set of segmented electronic seal images to the seal position of the electronic document to be signed at the stamping position coordinates.

[0028] In the second aspect, the present application provides a system for stamping a rider seal on an electronic document, the system includes: an acquisition module, configured to acquire the number of pages, attribute information, and size information of the electronic document to be signed, as well as the original electronic seal image and image information corresponding to the electronic document to be signed, where the image information includes the number of horizontal pixels and the horizontal width of the original electronic seal image;

[0029] A seal magnification processing module, configured to perform image magnification processing on the original electronic seal image according to the number of pages of the electronic document to be signed and the number of horizontal pixels of the original electronic seal image to obtain a first electronic seal image;

[0030] A crease generation module, configured to obtain a string of characteristic characters according to the attribute information of the electronic document to be sealed; and further configured to generate a crease mark on the circular peripheral image of the first electronic seal image according to the string of characteristic characters, so as to obtain a second electronic seal image;

[0031] A seal cutting module, configured to perform equal-ratio segmentation on the second electronic seal image according to the number of pages of the electronic document to be sealed and the horizontal width of the original electronic seal image, so as to obtain a set of segmented electronic seal images;

[0032] A seal adding module, configured to add the set of segmented electronic seal images to the seal position of the electronic document to be sealed according to the size information of the electronic document to be sealed and the preset seal position of the electronic document to be sealed.

[0033] In a third aspect, there is provided an apparatus for affixing a split seal to an electronic document. The apparatus for affixing a split seal to an electronic document includes a module for performing the method of the first aspect described above.

[0034] In a possible design, the apparatus for affixing a split seal to an electronic document in the third aspect may further include a transceiver. The transceiver may be a transceiver circuit or an interface circuit. The transceiver may be used for the apparatus for affixing a split seal to an electronic document in the third aspect to communicate with other apparatuses.

[0035] In a possible design, the apparatus for affixing a split seal to an electronic document in the third aspect may further include a memory. The memory may be integrated with the processor or may be separately provided. The memory may be used to store the instructions involved in the method of the first aspect.

[0036] In a fourth aspect, there is provided an apparatus for affixing a split seal to an electronic document. The apparatus for affixing a split seal to an electronic document includes: a processor, the processor is coupled to a memory, and the processor is configured to execute the instructions stored in the memory, so that the apparatus for affixing a split seal to an electronic document performs the method described in the first aspect.

[0037] In a possible design, the apparatus for affixing a split seal to an electronic document described in the fourth aspect may further include a transceiver. The transceiver may be a transceiver circuit or an interface circuit. The transceiver may be used for the apparatus for affixing a split seal to an electronic document described in the fourth aspect to communicate with other apparatuses.

[0038] In a fifth aspect, there is provided an apparatus for affixing a split seal to an electronic document, including: a processor and a memory; the memory is used to store instructions, and when the processor executes the instructions, the apparatus for affixing a split seal to an electronic document performs the method described in the first aspect.

[0039] In a possible design, the electronic document affixing a split seal device described in the fifth aspect may further include a transceiver. The transceiver may be a transceiver circuit or an interface circuit. The transceiver may be used for the electronic document affixing a split seal device described in the fifth aspect to communicate with other devices.

[0040] In a sixth aspect, there is provided a computer-readable storage medium, which includes a stored computer program or instruction. When the computer program or instruction is run, the method for affixing a split seal to an electronic document described in the first aspect is executed.

[0041] In the embodiments of the present application, first, according to the number of pages of the electronic document to be sealed and the number of horizontal pixels of the original electronic seal image, the original electronic seal image is subjected to image magnification processing to obtain a first electronic seal image; secondly, according to the attribute information of the electronic document to be sealed, a crease mark is generated for the circular peripheral image of the first electronic seal image to obtain a second electronic seal image; thirdly, according to the number of pages of the electronic document to be sealed and the horizontal width of the original electronic seal image, the second electronic seal image is equally divided to obtain a set of segmented electronic seal images; and then, according to the size information of the electronic document to be sealed and the preset seal position of the electronic document to be sealed, the set of segmented electronic seal images is added to the seal position of the electronic document to be sealed, which solves the problem that traditional split seals cannot be affixed to all odd pages of large-page electronic documents and the split seals on printed paper documents are easily forged, and prevents the printed paper documents from being paginated, added pages, or removed pages, effectively curbing the generation of tampered and forged documents.

[0042] Other features and advantages of the present application will be described in detail in the subsequent specific implementation part. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative efforts.

[0044] Figure 1 It is a schematic flowchart of the method for affixing a split seal to an electronic document provided by the embodiments of the present application;

[0045] Figure 2 It is a schematic flowchart of image magnification in the method for affixing a split seal to an electronic document provided by the embodiments of the present application Figure 1 ;

[0046] Figure 3 It is a schematic flowchart of image magnification in the method for affixing a split seal to an electronic document provided by the embodiments of the present applicationFigure 2 ;

[0047] Figure 4 Schematic diagram of the crease mark in the method for affixing a split seal to an electronic document provided by an embodiment of the present application;

[0048] Figure 5 Structural schematic of the device for affixing a split seal to an electronic document provided by an embodiment of the present application Figure 1 ;

[0049] Figure 6 Structural schematic of the device for affixing a split seal to an electronic document provided by an embodiment of the present application Figure 2 . Detailed implementation manners

[0050] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application. At the same time, in the description of the embodiments of the present application, terms such as "first" and "second" are only used for distinguishing descriptions, and cannot be understood as indicating or implying relative importance. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, the meaning of "a plurality" is two or more, unless otherwise clearly and specifically defined.

[0051] Figure 1 Flow schematic diagram of the method for affixing a split seal to an electronic document provided by an embodiment of the present application.

[0052] The flow of the method for affixing a split seal to the electronic document is as follows:

[0053] Step S101, obtain the number of pages, attribute information, and size information of the electronic document to be signed, as well as the original electronic seal image and image information corresponding to the electronic document to be signed, where the image information includes the number of horizontal pixels and the horizontal width of the original electronic seal image.

[0054] Among them, the attribute information of the electronic document to be signed includes at least one of the following: the initials of the document creator's name, the document creator's unit code, and the document creation date.

[0055] In addition, the above attribute information is only an example, and may also include information such as the creation time, title, version, etc. of the document, which will not be specifically limited here.

[0056] Step S102: Perform image magnification processing on the original electronic seal image according to the number of pages of the electronic document to be signed and the number of horizontal pixels of the original electronic seal image, to obtain the first electronic seal image.

[0057] That is, the number of pages of the electronic document to be signed is m, and the number of horizontal pixels of the original electronic seal image is n;

[0058] Based on the fact that the split seal is stamped on odd pages, if m is odd, evenly distribute the original electronic seal to the odd pages of the electronic document to be signed, then the number of horizontal pixels on each odd page is p1 = 2n / (m + 1); if m is even, evenly distribute the original electronic seal to the odd pages of the electronic document to be signed, then the number of horizontal pixels on each odd page is p2 = 2n / m.

[0059] If p1 or p2 is less than the minimum number of pixels that can be displayed on the electronic document to be signed, perform image magnification processing on the original electronic seal image until the value of p1 or p2 is greater than or equal to the minimum number of pixels that can be displayed on the electronic document to be signed, to obtain the first electronic seal image.

[0060] Exemplarily, the number of pages of the electronic document to be signed is 5, and the number of horizontal pixels of the original electronic seal image is 300 pixels. Based on the fact that the split seal is stamped on odd pages, evenly distribute the original electronic seal to the odd pages of the electronic document to be signed, then the number of horizontal pixels on each odd page is Assume that the minimum number of pixels that can be displayed on the electronic document to be signed is 120, and 100 is less than 120, then it is necessary to perform image magnification processing on the original electronic seal image, obtain the number of horizontal pixels after image magnification, and recalculate the value of p1. If p1 is greater than or equal to the minimum number of pixels that can be displayed on the electronic document to be signed, obtain the first electronic seal image. For details, reference can be made to Figure 2 Understand.

[0061] It should also be noted that since the seal is a picture with a single color, the above image magnification processing uses the nearest neighbor interpolation algorithm.

[0062] Specifically, the color of the newly added pixel point is determined by averaging the colors of the 8 adjacent points around the newly added pixel point A. That is, first magnify the original electronic seal image proportionally, and then process the colors of the newly added pixel points during the proportional magnification process. Assume that the newly added point is A, map the coordinates of point A proportionally and round down to map to the original image B(x, y), obtain points C1 to C8 around point B, calculate the average value of the pixel colors of the above 8 points, and set this average value as the pixel color value of the newly added pixel point A. Then process all the newly added points in this way. For details, reference can be made to Figure 3 Understand.

[0063] Step S103: Obtain a string of characteristic characters according to the attribute information of the electronic document to be signed and sealed.

[0064] It can be understood that according to the attribute information such as the initials of the document creator's name, the unit code of the document creator, and the document creation date, it is converted into a string according to certain rules (such as splicing, encryption, hashing, etc.), such as ZWW20241220. It should be noted that this string is unique and can confirm whether the document content has been tampered with during verification. If any change occurs to the document content, the characteristic characters will also change.

[0065] Step S104: Generate a crease mark on the circular outer peripheral image of the first electronic seal image according to a string of characteristic characters to obtain a second electronic seal image.

[0066] That is to say, according to a string of characteristic characters, obtain M characteristic characters; according to the M characteristic characters, obtain a set of angle values of the deflection angles of M crease mark images; according to the set of angle values, generate a crease mark on the circular outer peripheral image of the first electronic seal image to obtain a second electronic seal image.

[0067] It can be understood that the circular outer peripheral image of the first electronic seal image is equally divided into M image blocks to be generated with crease marks with the image center as the coordinate origin by angle.

[0068] Starting from the first image block to be generated with a crease mark in the clockwise direction on the negative half-axis of the X-axis, with the center coordinates of this image block as the starting point and the first angle recorded in the set of angle values as the deflection angle, extend counterclockwise and extend in the opposite direction to form a straight line, and change the pixel points on the straight line from having color to transparent; starting from the second image block to be generated with a crease mark in the clockwise direction on the negative half-axis of the X-axis, with the center coordinates of this image block as the starting point and the second angle recorded in the set of angle values as the deflection angle, extend counterclockwise and extend in the opposite direction to form a straight line, and change the pixel points on the straight line from having color to transparent; and so on until all the angle values in the set of angle values are taken. The specifically generated second electronic seal image is as Figure 4 shown.

[0069] Step S105: Perform equal ratio division on the second electronic seal image according to the number of pages of the electronic document to be signed and sealed and the horizontal width of the original electronic seal image to obtain a set of divided electronic seal images;

[0070] That is to say, the number of pages of the electronic document to be signed and sealed is m, and the horizontal width of the original electronic seal image is width;

[0071] According to the split seal being stamped on the odd pages, if m is odd, the original electronic seal image is segmented, and the width of the segmentation on each odd page is width1 = 2×width / (m + 1). If m is even, the original electronic seal image is segmented, and the width of the segmentation on each odd page is width2 = 2×width / m, thus obtaining the electronic seal image segmentation set.

[0072] Step S106, according to the size information of the electronic document to be signed and the preset seal position of the electronic document to be signed, add the electronic seal image segmentation set to the seal position of the electronic document to be signed.

[0073] That is, according to the size information of the electronic document to be signed and the preset seal position of the electronic document to be signed, calculate the seal stamping position coordinates corresponding to the seal cutting blocks in the electronic seal image segmentation set; at the seal stamping position coordinates, add the electronic seal image segmentation set to the seal position of the electronic document to be signed.

[0074] Exemplarily, the size information of the electronic document to be signed is a length of h and a width of wl, and the preset seal position of the electronic document to be signed is the middle of the left side of the document. The lower left corner vertex of the electronic document to be signed can be set as the seal stamping position coordinate origin (0, 0), and the width of the seal cutting block is set as w2. Calculate the seal stamping position coordinates of the seal cutting block (which can also be said to be the leftmost point of the circumference in the electronic seal image segmentation set) in the electronic document to be signed as (w1 - w2, h / 2). After determination, add the electronic seal image segmentation set to the seal position of the electronic document to be signed.

[0075] In summary, first, according to the number of pages of the electronic document to be signed and the number of horizontal pixels of the original electronic seal image, perform image magnification processing on the original electronic seal image to obtain the first electronic seal image; secondly, according to the attribute information of the electronic document to be signed, generate a crease mark for the circular outer image of the first electronic seal image to obtain the second electronic seal image; thirdly, according to the number of pages of the electronic document to be signed and the horizontal width of the original electronic seal image, perform equal ratio segmentation on the second electronic seal image to obtain the electronic seal image segmentation set; furthermore, according to the size information of the electronic document to be signed and the preset seal position of the electronic document to be signed, add the electronic seal image segmentation set to the seal position of the electronic document to be signed, which solves the problems that traditional split seals cannot be stamped on all odd pages of large - page electronic documents and the split seals on printed paper documents are easily forged, and prevents the printed paper documents from being page - changed, page - added, or page - removed, effectively curbing the generation of document tampering and forgery.

[0076] The above combination Figures 1 - 4The method for affixing a split seal to an electronic document provided by the embodiments of the present application is described in detail. The following details the system for affixing a split seal to an electronic document provided by the embodiments of the present application.

[0077] The system specifically includes: an acquisition module, a seal magnification processing module, a crease generation module, a seal cutting module, and a seal addition module, as follows.

[0078] The acquisition module is used to acquire the number of pages, attribute information, and size information of the electronic document to be signed, as well as the original electronic seal image and image information corresponding to the electronic document to be signed. Among them, the image information includes the number of horizontal pixels and the horizontal width of the original electronic seal image.

[0079] The seal magnification processing module is used to perform image magnification processing on the original electronic seal image according to the number of pages of the electronic document to be signed and the number of horizontal pixels of the original electronic seal image, to obtain a first electronic seal image.

[0080] The crease generation module is used to obtain a string of characteristic characters according to the attribute information of the electronic document to be signed; and is also used to generate a crease mark from the circular peripheral image of the first electronic seal image according to a string of characteristic characters, to obtain a second electronic seal image.

[0081] The seal cutting module is used to perform equal ratio segmentation on the second electronic seal image according to the number of pages of the electronic document to be signed and the horizontal width of the original electronic seal image, to obtain a set of segmented electronic seal images.

[0082] The seal addition module is used to add the set of segmented electronic seal images to the seal position of the electronic document to be signed according to the size information of the electronic document to be signed and the preset seal position of the electronic document to be signed.

[0083] In addition, for the specific implementation manners of the above system, since they are basically similar to the method implementation manners, the description is relatively simple. For related parts, refer to the partial description of the method implementation manners. Moreover, it should be noted that in each module of the system of the present application, the components therein are logically divided according to the functions to be achieved. However, the present application is not limited thereto, and the components can be re-divided or combined according to needs.

[0084] The above describes the method and system for affixing a split seal to an electronic document provided by the embodiments of the present application. The following Figures 1 - 4 Details the device for affixing a split seal to an electronic document provided by the embodiments of the present application.

[0085] Figure 5 is the structural schematic Figure 1Exemplarily, as Figure 5 shown, the device 500 for affixing a split seal to an electronic document includes a transceiver module 501 and a processing module 502. For ease of description, Figure 5 only the main components of the device for affixing a split seal to an electronic document are shown.

[0086] Among them, the transceiver module 501 is used to execute the transceiver function of the method for affixing a split seal to an electronic document, and the processing module 502 is used to execute other functions of the method for affixing a split seal to an electronic document except for the transceiver function.

[0087] Optionally, the transceiver module 501 may include a sending module ( Figure 5 , not shown) and a receiving module ( Figure 5 , not shown). Among them, the sending module is used to implement the sending function of the device 500 for affixing a split seal to an electronic document, and the receiving module is used to implement the receiving function of the device 500 for affixing a split seal to an electronic document.

[0088] Optionally, the device 500 for affixing a split seal to an electronic document may further include a storage module ( Figure 5 , not shown), and the storage module stores programs or instructions. When the processing module 502 executes the programs or instructions, the device 500 for affixing a split seal to an electronic document can execute the method for affixing a split seal to an electronic document in the embodiments of the present application.

[0089] Next, in combination with Figure 6 each component of the device 600 for affixing a split seal to an electronic document will be specifically introduced:

[0090] Among them, the processor 601 is the control center of the device 600 for affixing a split seal to an electronic document, and it can be a single processor or a collective term for multiple processing elements. For example, the processor 601 is one or more central processing units (CPUs), or can be an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as: one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs).

[0091] Optionally, the processor 601 can execute various functions of the electronic document cross-stamped seal device 600 by running or executing software programs stored in the memory 602 and calling data stored in the memory 602, such as executing the electronic document cross-stamped seal method in the embodiments of the present application.

[0092] In a specific implementation, as an embodiment, the processor 601 may include one or more CPUs, such as Figure 6 the CPU0 and CPUl shown in

[0093] In a specific implementation, as an embodiment, the electronic document cross-stamped seal device 600 may also include multiple processors, such as Figure 6 the processor 601 and the processor 604 shown in

[0094] Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). Here, the processor may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions). Among them, the memory 602 is used to store the software program for executing the solution of the present application and is controlled by the processor 601 for execution. The specific implementation manner can refer to the above method embodiments and will not be elaborated here.

[0094] Optionally, the memory 602 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but not limited thereto. The memory 602 can be integrated with the processor 601 or exist independently and be coupled to the processor 601 through an interface circuit ( Figure 6 not shown in

[0095] A transceiver 603 is used for communication with other communication devices. For example, the electronic document split seal stamping device 600 is a first device, and the transceiver 603 can be used to communicate with a second device or a third device.

[0096] Optionally, the transceiver 603 may include a receiver and a transmitter ( Figure 6 not shown separately in ). The receiver is used to implement the receiving function, and the transmitter is used to implement the transmitting function.

[0097] Optionally, the transceiver 603 may be integrated with the processor 601 or exist independently and be coupled to the processor 601 through an interface circuit ( Figure 6 not shown in ) of the electronic document split seal stamping device 600. The embodiments of the present application do not make specific limitations on this.

[0098] It can be understood that Figure 6 the structure of the electronic document split seal stamping device 600 shown in does not constitute a limitation on the electronic document split seal stamping device. The actual electronic document split seal stamping device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0099] In addition, the technical effects of the electronic document split seal stamping device 600 can refer to the technical effects of the method described in the above method embodiments and will not be elaborated here.

[0100] It should be understood that the processor in the embodiments of the present application may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0101] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct rambus RAM (DRRAM).

[0102] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware, or any combination thereof. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that contains one or more sets of available media. The available media can be magnetic media (such as floppy disks, hard disks, magnetic tapes), optical media (such as DVDs), or semiconductor media. The semiconductor media can be a solid-state drive.

Claims

1. A method for affixing a split seal to an electronic document, characterized in that, The method includes: Obtaining the number of pages, attribute information, and size information of the electronic document to be signed, as well as the original electronic seal image and image information corresponding to the electronic document to be signed, where the image information includes the number of horizontal pixels and the horizontal width of the original electronic seal image; Performing image magnification processing on the original electronic seal image according to the number of pages of the electronic document to be signed and the number of horizontal pixels of the original electronic seal image to obtain a first electronic seal image; Obtaining a string of characteristic characters according to the attribute information of the electronic document to be signed; Generating a crease mark on the circular peripheral image of the first electronic seal image according to the string of characteristic characters to obtain a second electronic seal image; Performing equal ratio segmentation on the second electronic seal image according to the number of pages of the electronic document to be signed and the horizontal width of the original electronic seal image to obtain a set of segmented electronic seal images; Adding the set of segmented electronic seal images to the seal position of the electronic document to be signed according to the size information of the electronic document to be signed and the preset seal position of the electronic document to be signed.

2. The method for affixing a split seal to an electronic document according to claim 1, wherein The attribute information of the electronic document to be signed includes at least one of the following: the initials of the document creator's name, the unit code of the document creator, and the document creation date.

3. The method for affixing a split seal to an electronic document according to claim 1, wherein The performing image magnification processing on the original electronic seal image according to the number of pages of the electronic document to be signed and the number of horizontal pixels of the original electronic seal image to obtain a first electronic seal image includes: The number of pages of the electronic document to be signed is m, and the number of horizontal pixels of the original electronic seal image is n; Based on the saddle stitch seal being stamped on odd pages, if m is odd, evenly distributing the original electronic seal to the odd pages of the electronic document to be signed, then the number of horizontal pixels on each odd page is p1 = 2n / (m + 1), if m is even, evenly distributing the original electronic seal to the odd pages of the electronic document to be signed, then the number of horizontal pixels on each odd page is p2 = 2n / m; If p1 or p2 is less than the minimum number of pixels that can be displayed by the electronic document to be signed, perform image magnification processing on the original electronic seal image until the value of p1 or p2 is greater than or equal to the minimum number of pixels that can be displayed by the electronic document to be signed to obtain a first electronic seal image.

4. The method for affixing a split seal to an electronic document according to claim 1 or 3, characterized in that, The image magnification processing uses the nearest neighbor interpolation algorithm.

5. The method for affixing a split seal to an electronic document according to claim 1, wherein The generating a crease mark on the circular peripheral image of the first electronic seal image according to the string of characteristic characters to obtain a second electronic seal image includes: Obtaining M characteristic characters according to the string of characteristic characters; Obtaining a set of angle values of the deflection angles of M crease mark images according to the M characteristic characters; Generating a crease mark on the circular peripheral image of the first electronic seal image according to the set of angle values to obtain a second electronic seal image.

6. The method for affixing a split seal to an electronic document according to claim 1, characterized in that, The performing equal ratio segmentation on the second electronic seal image according to the number of pages of the electronic document to be signed and the horizontal width of the original electronic seal image to obtain a set of segmented electronic seal images includes: The number of pages of the electronic document to be signed is m, and the horizontal width of the original electronic seal image is width; According to the cross-stamped seal on odd pages, if m is odd, the original electronic seal image is segmented, and the width of each segment on odd pages is width1 = 2×width / (m + 1); if m is even, the original electronic seal image is segmented, and the width of each segment on odd pages is width2 = 2×width / m, thereby obtaining a set of segmented electronic seal images.

7. The method for affixing a split seal to an electronic document according to claim 1, wherein The adding of the set of segmented electronic seal images to the seal position of the electronic document to be signed according to the size information of the electronic document to be signed and the preset seal position of the electronic document to be signed includes: Calculating the corresponding seal-stamping position coordinates of the seal cutting blocks in the set of segmented electronic seal images according to the size information of the electronic document to be signed and the preset seal position of the electronic document to be signed; Adding the set of segmented electronic seal images to the seal position of the electronic document to be signed at the seal-stamping position coordinates.

8. A system for affixing a split seal to an electronic document, characterized in that, The system includes: An acquisition module, configured to acquire the number of pages, attribute information, and size information of the electronic document to be signed, as well as the original electronic seal image and image information corresponding to the electronic document to be signed, where the image information includes the number of horizontal pixels and the horizontal width of the original electronic seal image; A seal magnification processing module, configured to perform image magnification processing on the original electronic seal image according to the number of pages of the electronic document to be signed and the number of horizontal pixels of the original electronic seal image, to obtain a first electronic seal image; A crease generation module, configured to obtain a string of characteristic characters according to the attribute information of the electronic document to be signed; and further configured to generate a crease mark on the circular outer peripheral image of the first electronic seal image according to the string of characteristic characters, to obtain a second electronic seal image; A seal cutting module, configured to perform equal-ratio segmentation on the second electronic seal image according to the number of pages of the electronic document to be signed and the horizontal width of the original electronic seal image, to obtain a set of segmented electronic seal images; A seal adding module, configured to add the set of segmented electronic seal images to the seal position of the electronic document to be signed according to the size information of the electronic document to be signed and the preset seal position of the electronic document to be signed.

9. An apparatus for affixing a split seal to an electronic document, characterized in that, The device includes: a module for executing the method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program or instruction, and when the computer program or instruction is run, the method according to any one of claims 1-7 is executed.

Citation Information

Cited By

  • Visualization implementation method for electronic rotary perforation seal

    CN121582382A