CN113989123B - Electronic seal stamping method and system, electronic equipment and readable medium - Google Patents
Electronic seal stamping method and system, electronic equipment and readable medium Download PDFInfo
- Publication number
- CN113989123B CN113989123B CN202111586477.9A CN202111586477A CN113989123B CN 113989123 B CN113989123 B CN 113989123B CN 202111586477 A CN202111586477 A CN 202111586477A CN 113989123 B CN113989123 B CN 113989123B
- Authority
- CN
- China
- Prior art keywords
- seal
- image
- document
- electronic
- resolution
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 239000011159 matrix material Substances 0.000 claims abstract description 35
- 230000011218 segmentation Effects 0.000 claims abstract description 33
- 238000012545 processing Methods 0.000 claims description 25
- 238000004422 calculation algorithm Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 9
- 238000004364 calculation method Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000012546 transfer Methods 0.000 claims description 5
- 238000012937 correction Methods 0.000 claims description 4
- 238000007789 sealing Methods 0.000 abstract description 9
- 238000005516 engineering process Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007639 printing Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/194—Segmentation; Edge detection involving foreground-background segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Input (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
The invention relates to an electronic seal stamping method, an electronic seal stamping system, electronic equipment and a readable medium. An electronic seal affixing method comprising: acquiring seal parameters of a seal image and document parameters of a document image; the seal parameters comprise a seal/background segmentation matrix and a seal resolution; the document parameters include a document resolution; obtaining a scaling ratio according to the seal resolution and the document resolution, and scaling the seal image and the seal/background segmentation matrix according to the scaling ratio; and acquiring a target position in a document image, and then adding a seal image to the target position of the document image. The electronic seal of the document image with any resolution ratio is realized by the electronic seal image with any source, and the method is convenient and quick. The consistency of the sizes of the printed electronic seal and the actual seal can be ensured under the operation of a small amount of extra manpower, and the application conditions and the operation difficulty of creating electronic images and sealing the electronic seal are greatly reduced.
Description
Technical Field
The present invention relates to electronic seal technology, and in particular, to a method and system for applying an electronic seal, an electronic device, and a readable medium.
Background
In an actual business scene, the normal process of stamping a document is as follows: 1. printing a document; 2. and (5) sealing the document. If the stamped document needs to be transmitted to the other party through the Internet, document scanning is needed. At present, in many scenes, most people can select an electronic seal technology to seal an electronic document, so that the complexity of the process and the sealing time can be greatly shortened.
However, in the use of electronic seals at present, a direct seal image stamping method is mostly used, that is, an acquired seal image is directly stamped onto a target document image. If the printing effect is consistent with the actual stamping size, the method can be realized under the condition that the DPI resolution of the input stamp image is consistent with that of the target document image. This imposes limitations on the scanning apparatus that acquires the electronic seal, the operation requirements when performing the scanning operation, and the acquisition route of the target document. These harsh conditions result in inefficiencies in the operation of electronic stamps and impose significant limitations on the operating scenario.
In addition, in the process of creating the electronic seal, since the resolution of the scanning device may be inconsistent with the resolution of the stamped target document or the resolution may be lost due to sending the image document under abnormal operation, if the electronic seal is stamped on the target document without processing, the printed seal may be seriously inconsistent with the actual seal size, and the seal printed after stamping is obviously enlarged or reduced from the actual seal size.
Disclosure of Invention
In view of the foregoing disadvantages of the prior art, an object of the present invention is to provide an electronic seal stamping method, which can ensure that the size of an electronic seal from any source can be consistent with that of an actual seal when the electronic seal is printed on a document image with any resolution, and greatly reduce the application conditions and operation difficulty for creating an electronic image and stamping the electronic seal.
The second objective of the present invention is to provide an electronic seal stamping system.
It is another object of the present invention to provide an electronic device.
It is a further object of the present invention to provide a computer readable medium.
In order to achieve the purpose, the invention adopts the following technical scheme:
in one aspect, the present invention provides a method for applying an electronic seal, including:
acquiring seal parameters of a seal image and document parameters of a document image; the seal parameters comprise a seal/background segmentation matrix and a seal resolution; the document parameters include a document resolution;
obtaining a scaling ratio according to the seal resolution and the document resolution, and scaling the seal image and the seal/background segmentation matrix according to the scaling ratio;
and acquiring a target position in a document image, and then adding a seal image to the target position of the document image.
Further, in the electronic seal affixing method, the seal image is generated by:
acquiring a scanned image of the paper covered with the stamp; the scanning image is obtained by scanning the paper or obtained by data transfer;
extracting a seal pre-image and seal basic parameters from the scanned image; the seal basic parameters comprise seal resolution and seal width data;
carrying out image processing on the seal pre-image to obtain a seal image;
performing seal/background region cutting on the seal image to obtain a seal/background segmentation matrix;
and saving the seal image, the seal basic parameters and the seal/background segmentation matrix.
Further, the process of extracting the seal pre-image and the seal basic parameters of the electronic seal capping method specifically includes:
acquiring a seal pre-image in the scanned image by using a contour detection algorithm, and acquiring the seal resolution of the seal pre-image;
acquiring the pixel width of the seal pre-image and the scanning DPI of scanning equipment;
and obtaining seal width data based on the pixel width and the scanning DPI.
Further, in the electronic seal capping method, the calculation formula of the seal width data is as follows:
SW=W/SP*a;
wherein SW is stamp width data; w is the pixel width; SP is scanning DPI; a is a fixed constant.
Further, in the electronic seal affixing method, the image processing specifically includes:
carrying out white balance processing on the seal pre-image by using a gray world algorithm;
and performing enhancement processing on the seal pre-image by using a gamma correction algorithm.
Further, in the electronic seal stamping method, the seal/background region cutting specifically includes:
converting the seal image into a grayscale image;
and carrying out binarization processing on the gray level image, and assigning a value of a pixel value in a pixel point which is greater than or equal to a first threshold value to be 1, otherwise, assigning the value to be 0, so as to obtain the stamp/background segmentation matrix.
Further, the electronic seal affixing method, in which the calculation formula for affixing the seal image to the target position on the document image is as follows:
Image_t[p]=(1-alpha)*image_t[p]+alpha*image_S;
wherein, imag _ t is a document image needing to be stamped; p is the target position in the document image covered by the seal image; image _ S is a seal image; alpha is the stamp/background segmentation matrix.
In another aspect, the present invention provides an electronic seal affixing system using any one of the above-described electronic seal affixing methods, comprising:
the acquisition module is used for acquiring seal parameters of the seal image and document parameters of the document image; the seal parameters comprise a seal/background segmentation matrix and a seal resolution; the document parameters include a document resolution;
the processing module is used for obtaining a scaling ratio according to the seal resolution and the document resolution and scaling the seal image and the seal/background segmentation matrix according to the scaling ratio; and acquiring a target position in the document image, and then adding the seal image to the target position on the document image.
In another aspect, the present invention further provides an electronic device, including:
a memory storing a computer program;
a processor, said computer program when executed by the processor implementing any of the aforementioned electronic seal affixing methods.
In another aspect, the present invention further provides a computer readable medium storing a computer program, which when executed by a processor, implements any of the electronic seal stamping methods described above.
Compared with the prior art, the electronic seal stamping method, the electronic seal stamping system, the electronic equipment and the readable medium provided by the invention have the following beneficial effects:
when the electronic seal is used for electronically sealing a document image, the resolution ratio of the seal image to the document image is obtained by acquiring the resolution of the seal image and the resolution of the document image, and then the seal image is scaled so that the resolution of the seal image is matched with the resolution of the document image to be the same, so that when the seal image is sealed on the document image, the seal size cannot be increased or reduced due to the unmatched resolutions, the electronic seal of the electronic seal image from any source to the document image with any resolution is realized, and the electronic seal is convenient and quick. The method can ensure the consistency of the sizes of the printed electronic seal and the actual seal under the operation of a small amount of extra manpower, and greatly reduce the application conditions and the operation difficulty of creating electronic images and sealing the electronic seal.
Drawings
FIG. 1 is a flow chart of an electronic seal affixing method according to the present invention;
FIG. 2 is a flowchart of a method for generating a stamp image according to the present invention;
FIG. 3 is a block diagram of an electronic seal applying system provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It is to be understood by those skilled in the art that the foregoing general description and the following detailed description are exemplary and explanatory specific embodiments of the invention, and are not intended to limit the invention.
The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process or method that comprises a list of steps does not include only those steps, but may include other steps not expressly listed or inherent to such process or method. Likewise, without further limitation, one or more devices or subsystems, elements or structures or components beginning with "comprising. The appearances of the phrases "in one embodiment," "in another embodiment," and similar language throughout this specification may, but do not necessarily, all refer to the same embodiment.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
Referring to fig. 1, the present invention provides an electronic seal stamping method, which is applied to any electronic device that needs to execute electronic seal stamping work, and when a scanned document is stamped, algorithm calculation can be performed according to information (seal image resolution) in an electronic seal and image resolution information of a document image, and a seal image is scaled, so that image resolutions of the seal image and the document image are unified, and then the seal image is stamped into the document image, so as to ensure that the stamped electronic seal is consistent with an actual seal in size. Direct stamping without the above-described processing results in a significant enlargement or reduction of the size of the stamp printed after stamping from the actual stamp size due to the difference in resolution between the stamp image and the stamped document image.
The electronic seal stamping method comprises the following steps:
s1, acquiring seal parameters of the seal image and document parameters of the document image; the seal parameters comprise a seal/background segmentation matrix and a seal resolution; the document parameters include a document resolution; in general, the stamp/background segmentation matrix is: and (3) using a matrix formed by taking each pixel point as an element and taking 0 and 1 as distinction, wherein the position with the element of 0 is the background, and the position with the element of 1 is the stamp. By using the seal/background segmentation matrix, the seal and the background can be better distinguished, the central position of the seal can be better determined, and the execution of subsequent steps is facilitated. Furthermore, a person skilled in the art can select an appropriate method according to actual needs to obtain the stamp/background segmentation matrix, for example, the assignment value of each pixel point in the stamp image, which is greater than the first threshold value, is 1, and otherwise, the assignment value is 0.
S2, obtaining a zoom ratio according to the seal resolution and the document resolution, and zooming the seal image and the seal/background segmentation matrix according to the zoom ratio; preferably, the scaling ratio is obtained by the following formula:
DT=SP_1/SP;
wherein DT is the scaling ratio; SP _1 is the document resolution of the document image; SP is the stamp resolution of the stamp image.
When the seal image and the seal/segmentation matrix are scaled, the scaling can be realized according to the existing scaling technology, and the scaling ratio is the scaling ratio.
S3, acquiring a target position in the document image, and then adding the seal image to the target position of the document image. Generally, the determination method of the target position is not limited, when the number of document images to be sealed is small, the target position may be determined manually, and when the number of document images to be sealed is large, the system may be selected to automatically position the position to be sealed, for example, a coordinate position of a certain pixel point in the document images may be used as the target position of batch document images to perform batch sealing.
When the electronic seal is used for electronically sealing a document image, the resolution ratio of the seal image to the document image is obtained by acquiring the resolution of the seal image and the resolution of the document image, and then the seal image is scaled so that the resolution of the seal image is matched with the resolution of the document image to be the same, so that when the seal image is sealed on the document image, the seal size cannot be increased or reduced due to the unmatched resolutions, the electronic seal of the electronic seal image from any source to the document image with any resolution is realized, and the electronic seal is convenient and quick. The consistency of the sizes of the printed electronic seal and the actual seal can be ensured under the operation of a small amount of extra manpower, and the application conditions and the operation difficulty of creating electronic images and sealing the electronic seal are greatly reduced.
Further, referring to fig. 2, as a preferred solution, in this embodiment, the generating step of the seal image is as follows:
s01, acquiring a scanned image of the paper covered with the seal; the scanning image is obtained by scanning the paper or obtained by data transfer; in this embodiment, the obtaining by data transfer specifically includes: the data is obtained by data transmission through a mobile storage medium (such as a U disk) or by network downloading.
A general way of obtaining the paper covered with the stamp is to obtain the stamp by scanning the paper, and the specific steps are as follows:
1.1 applying clear seal on the paper.
1.2 measure the longest width RW (unit: mm) of the stamp on the sheet.
The significance of measuring the longest width of a seal on paper is that if the scanned seal image and the recorded seal image are not operated by the same person or the scanned seal image is transmitted by software, mails and other modes in the middle, the images can be subjected to uncontrollable image compression and other conditions in the transmission process of the software and other modes. In order to ensure that the electronic seal entered corresponds to the actual seal size, it is necessary to measure the longest width of the seal on the paper.
1.3 obtaining the scanned image with seal by scanner or other instrument, and corresponding to the scanned DPI, i.e. the seal resolution (defined as SP) of the seal image. (SP may be obtained directly in the picture file).
S02, extracting a seal pre-image and seal basic parameters from the scanned image; the seal basic parameters comprise seal resolution and seal width data; generally, the stamp resolution may be the scanning DPI or may be obtained by directly reading the stamp image after obtaining the stamp image. In this embodiment, the acquisition process of the seal pre-image is as follows:
and acquiring coordinate information of the seal image in the image by using a contour detection algorithm for the scanned image, and re-acquiring the seal image to obtain the seal pre-image, thereby obtaining an accurate seal image _ S based on the subsequent steps. Further, the acquiring is to obtain the image contour based on the contour detection algorithm to generate the seal pre-image.
S03, carrying out image processing on the seal pre-image to obtain a seal image; preferably, the purpose of the image processing is to improve the definition of the seal image, and a person skilled in the art can select an appropriate image processing technique to process the seal pre-image according to actual requirements to obtain the seal image.
S04, performing seal/background region cutting on the seal image to obtain a seal/background segmentation matrix;
and S05, saving the seal image, the seal basic parameters and the seal/background segmentation matrix.
By using the technical scheme provided by the embodiment, the definition of the created seal image can be improved, and the operation is convenient. Meanwhile, when the seal image is stored, the seal basic parameters and the seal/background segmentation matrix can be directly called during sealing, and the method is convenient and quick.
Further, as a preferred solution, in this embodiment, the process of extracting the seal pre-image and the seal basic parameter specifically includes:
acquiring a seal pre-image in the scanned image by using a contour detection algorithm, and acquiring the seal resolution of the seal pre-image; specifically, those skilled in the art may obtain the stamp pre-image in the scanned image according to an appropriate contour detection algorithm in accordance with actual requirements, for example, an OpenCV contour extraction algorithm.
Acquiring the pixel width of the seal pre-image and the scanning DPI of scanning equipment;
and obtaining seal width data based on the pixel width and the scanning DPI.
Further, as a preferable solution, in this embodiment, the calculation formula of the seal width data is:
SW=W/SP*a;
wherein SW is seal width data; w is the pixel width; SP is scanning DPI; a is a fixed constant. In this example, a is 25.4.
Further, as a preferable scheme, when the scanned image is obtained not by scanning by the scanning device but by data transmission, that is, the source of the scanned image is not the scanned document, and there is a significant difference between the measured maximum width RW and the calculated width SW, the following operations are performed:
the scaling RT is calculated from the measured stamp longest width RW and the actual stamp width SW, and the formula is as follows:
RT=RW/SW。
and carrying out scaling processing on the seal image _ S according to the RT, so that the subsequently stored seal basic parameter can be ensured to be the real size of the seal image.
Further, as a preferable scheme, in this embodiment, the image processing specifically includes:
carrying out white balance processing on the seal pre-image by using a gray world algorithm; the formula used in detail is:
Gray=(avg(C(R))+avg(C(G))+avg(C(B)))/3;
C(R)=C(R)*avg(R)/Gray_;
C(G)=C(G)*avg(G)/Gray_;
C(B)=C(B)*avg(B)/Gray_;
wherein, R, G and B respectively represent red, green and blue pixel channels; c (—) represents the pixel value of the corresponding pixel channel in the image; avg (, denotes averaging.
And performing enhancement processing on the seal pre-image by using a gamma correction algorithm. Those skilled in the art can select an appropriate gamma correction algorithm according to requirements, and is not limited specifically.
The image processing process provided by the embodiment can ensure that the image enhancement of the seal pre-image is carried out, and the definition of the seal image is improved.
Further, as a preferable scheme, in this embodiment, the cutting of the stamp/background region specifically includes:
converting the seal image into a grayscale image;
and carrying out binarization processing on the gray level image, and assigning a value of a pixel value in a pixel point which is greater than or equal to a first threshold value to be 1, otherwise, assigning the value to be 0, so as to obtain the stamp/background segmentation matrix. Specifically, the first threshold is preferably 100-150, and is further preferably 128, that is, the assignment value of a pixel value greater than or equal to 128 is 1, otherwise, the assignment value is 0, and the stamp/background area matrix can be obtained quickly.
Further, as a preferable aspect, in the present embodiment, a calculation formula for adding a chapter image to a target position on the document image is as follows:
Image_t[p]=(1-alpha)*image_t[p]+alpha*image_S;
wherein, imag _ t is a document image needing to be stamped; p is the target position in the document image covered by the seal image; image _ S is a seal image; alpha is the stamp/background segmentation matrix.
Referring to fig. 3, the present invention further provides an electronic seal affixing system using the electronic seal affixing method according to any of the foregoing embodiments, including:
the acquisition module is used for acquiring seal parameters of the seal image and document parameters of the document image; the seal parameters comprise a seal/background segmentation matrix and a seal resolution; the document parameters include a document resolution;
the processing module is used for obtaining a scaling ratio according to the seal resolution and the document resolution and scaling the seal image and the seal/background segmentation matrix according to the scaling ratio; and acquiring a target position in the document image, and then adding the seal image to the target position on the document image.
The present invention also provides an electronic device comprising:
a memory storing a computer program;
a processor, said computer program, when executed by the processor, implementing the electronic seal affixing method of any of the preceding embodiments.
The present invention also provides a computer-readable medium storing a computer program which, when executed by a processor, implements the electronic seal affixing method according to any one of the foregoing embodiments.
More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof.
It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may occur to those skilled in the art, and all such modifications and alterations should fall within the scope of the appended claims.
Claims (8)
1. An electronic seal affixing method, which is applied to batch affixing, wherein the electronic seal affixing step for each document image includes:
acquiring seal parameters of a seal image and document parameters of a document image; the seal parameters comprise a seal/background segmentation matrix and a seal resolution; the document parameters include a document resolution;
obtaining a scaling ratio according to the seal resolution and the document resolution, and scaling the seal image and the seal/background segmentation matrix according to the scaling ratio;
acquiring a target position in a document image, and further adding a seal image to the target position of the document image;
the generation steps of the seal image are as follows:
acquiring a scanned image of the paper covered with the stamp; the scanning image is obtained by scanning the paper or obtained by data transfer;
extracting a seal pre-image and seal basic parameters from the scanned image; the seal basic parameters comprise seal resolution and seal width data;
carrying out image processing on the stamp pre-image to obtain a stamp image;
performing seal/background region cutting on the seal image to obtain a seal/background segmentation matrix;
saving the seal image, the seal basic parameters and the seal/background segmentation matrix;
if the seal image is obtained through data transmission, obtaining a scaling ratio according to the longest width of the seal and the seal calculation width, and scaling the seal image;
acquiring target positions of batch document images in the batch stamping process; the calculation formula for adding a seal image to a target position on the document image is as follows:
Image_t[p]=(1-alpha)*image_t[p]+alpha*image_S;
wherein, imag _ t is a document image needing to be stamped; p is the target position in the document image covered by the seal image; image _ S is a seal image; alpha is the stamp/background segmentation matrix.
2. The electronic seal affixing method according to claim 1, wherein the process of extracting the seal pre-image and seal base parameters specifically includes:
acquiring a seal pre-image in the scanned image by using a contour detection algorithm, and acquiring the seal resolution of the seal pre-image;
acquiring the pixel width of the seal pre-image and the scanning DPI of scanning equipment;
and obtaining seal width data based on the pixel width and the scanning DPI.
3. The electronic seal affixing method according to claim 2, wherein said seal width data is calculated by the formula:
SW=W/SP*a;
wherein SW is seal width data; w is the pixel width; SP is scanning DPI; a is a fixed constant.
4. The electronic seal affixing method according to claim 1, wherein said image processing specifically includes:
carrying out white balance processing on the stamp pre-image by using a gray world algorithm;
and performing enhancement processing on the seal pre-image by using a gamma correction algorithm.
5. The electronic seal affixing method according to claim 1, wherein said seal/background region cutting specifically includes:
converting the seal image into a grayscale image;
and carrying out binarization processing on the gray level image, and assigning the value of a pixel in a pixel point which is greater than or equal to a first threshold value as 1, otherwise, assigning the value as 0, and obtaining the stamp/background segmentation matrix.
6. An electronic seal affixing system using the electronic seal affixing method according to any one of claims 1 to 5, comprising:
the acquisition module is used for acquiring seal parameters of the seal image and document parameters of the document image; the seal parameters comprise a seal/background segmentation matrix and a seal resolution; the document parameters include a document resolution;
the processing module is used for obtaining a scaling ratio according to the seal resolution and the document resolution and scaling the seal image and the seal/background segmentation matrix according to the scaling ratio; acquiring a target position in a document image, and then adding a seal image to the target position on the document image;
the generation steps of the seal image are as follows:
acquiring a scanned image of the paper covered with the stamp; the scanning image is obtained by scanning the paper or obtained by data transfer;
extracting a seal pre-image and seal basic parameters from the scanned image; the seal basic parameters comprise seal resolution and seal width data;
carrying out image processing on the stamp pre-image to obtain a stamp image;
performing seal/background region cutting on the seal image to obtain a seal/background segmentation matrix;
saving the seal image, the seal basic parameters and the seal/background segmentation matrix;
and if the seal image is obtained through data transmission, obtaining a scaling ratio according to the longest width of the seal and the seal calculation width, and scaling the seal image.
7. An electronic device, comprising:
a memory storing a computer program;
a processor, said computer program, when executed by the processor, implementing the electronic seal affixing method according to any one of claims 1-5.
8. A computer-readable medium, characterized in that a computer program is stored which, when being executed by a processor, realizes the electronic seal affixing method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111586477.9A CN113989123B (en) | 2021-12-23 | 2021-12-23 | Electronic seal stamping method and system, electronic equipment and readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111586477.9A CN113989123B (en) | 2021-12-23 | 2021-12-23 | Electronic seal stamping method and system, electronic equipment and readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113989123A CN113989123A (en) | 2022-01-28 |
CN113989123B true CN113989123B (en) | 2022-07-22 |
Family
ID=79734073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111586477.9A Active CN113989123B (en) | 2021-12-23 | 2021-12-23 | Electronic seal stamping method and system, electronic equipment and readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113989123B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10191055A (en) * | 1996-12-26 | 1998-07-21 | Fuji Photo Film Co Ltd | Image information conversion method and image recorder |
JP2006041802A (en) * | 2004-07-26 | 2006-02-09 | Fuji Xerox Co Ltd | Stamp controller, controlling method and program |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1635533A (en) * | 2003-12-30 | 2005-07-06 | 刘瑞祯 | Digital stamp system |
JP2006107297A (en) * | 2004-10-08 | 2006-04-20 | Hitachi Omron Terminal Solutions Corp | Image collation system |
CN100547611C (en) * | 2007-01-08 | 2009-10-07 | 北京书生国际信息技术有限公司 | A kind of electric seal weakening method |
CN104517204A (en) * | 2013-09-26 | 2015-04-15 | 天津书生软件技术有限公司 | Realization method for electronic seal |
CN103577729B (en) * | 2013-10-31 | 2017-01-11 | 北京锐安科技有限公司 | Method for stamping electronic seal on PDF (portable document format) file |
US9846808B2 (en) * | 2015-12-31 | 2017-12-19 | Adaptive Computation, Llc | Image integration search based on human visual pathway model |
CN108305212A (en) * | 2018-01-09 | 2018-07-20 | 武汉斗鱼网络科技有限公司 | Image mixing method, storage medium, electronic equipment and system |
CN109687968B (en) * | 2018-11-28 | 2023-01-10 | 航天信息股份有限公司 | Method and system for realizing electronic signature |
CN112214739A (en) * | 2020-09-09 | 2021-01-12 | 东莞市惠峰商业有限公司 | Method and device for realizing electronic signature |
CN112559938A (en) * | 2020-12-21 | 2021-03-26 | 深圳云之家网络有限公司 | Electronic seal file generation method and device, computer equipment and storage medium |
CN113536392A (en) * | 2021-07-13 | 2021-10-22 | 广西戴顺信息技术有限责任公司 | Cross-platform electronic signature method based on background service |
CN113779656B (en) * | 2021-09-18 | 2023-09-12 | 厦门海迈科技股份有限公司 | Stamping method, electronic archive platform and computer readable storage medium |
-
2021
- 2021-12-23 CN CN202111586477.9A patent/CN113989123B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10191055A (en) * | 1996-12-26 | 1998-07-21 | Fuji Photo Film Co Ltd | Image information conversion method and image recorder |
JP2006041802A (en) * | 2004-07-26 | 2006-02-09 | Fuji Xerox Co Ltd | Stamp controller, controlling method and program |
Also Published As
Publication number | Publication date |
---|---|
CN113989123A (en) | 2022-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7149355B2 (en) | Image processing apparatus, image processing method, image processing program, and computer-readable record medium storing image processing program | |
CN111325716B (en) | Screen scratch and fragmentation detection method and equipment | |
EP0723364B1 (en) | Real-time image enhancement techniques | |
JP6499188B2 (en) | How to convert a saturated image to a non-saturated image | |
RU2013150934A (en) | ENCRYPTION, DECODING AND PRESENTING AN EXTENDED DYNAMIC RANGE | |
JP4443064B2 (en) | Method and apparatus for performing local color correction | |
CN106851386B (en) | Method and device for realizing augmented reality in television terminal based on Android system | |
KR20110124965A (en) | Apparatus and method for generating bokeh in out-of-focus shooting | |
WO2020065995A1 (en) | Image processing device, control method, and control program | |
CN107622504B (en) | Method and device for processing pictures | |
KR101214675B1 (en) | Method for processing a image in a handheld device and apparatus for the same | |
CN113989123B (en) | Electronic seal stamping method and system, electronic equipment and readable medium | |
CN111932462B (en) | Training method and device for image degradation model, electronic equipment and storage medium | |
CN111445402A (en) | Image denoising method and device | |
CN111241934A (en) | Method and device for acquiring photophobic region in face image | |
JP7030425B2 (en) | Image processing device, image processing method, program | |
CN110688999B (en) | Mach-band effect simulated point light source metal steel seal character detection method | |
CN111836103B (en) | Anti-occlusion processing system based on data analysis | |
CN114267035A (en) | Document image processing method and system, electronic device and readable medium | |
CN113505622A (en) | Test system and method for automatically identifying multiple bar codes and LED lamps | |
CN111191518A (en) | Double-spectrum target detection frame coordinate synchronization and mask layer drawing method | |
CN113613039B (en) | Video transmission method, system, computing device and computer storage medium | |
CN110580444B (en) | Human body detection method and device | |
CN115082354B (en) | Fax image processing method and device and readable medium | |
CN111383237B (en) | Image analysis method and device and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |