Electronic seal processing method and processing system thereofTechnical Field
The invention relates to an electronic seal processing method and a processing system thereof.
Background
Before the user signs the electronic contract, an electronic seal needs to be manufactured. There are 2 ways to make electronic seal: a template stamp may be generated from a predefined template; the electronic seal conforming to the stamping effect can be obtained after the electronic seal is subjected to image processing by covering the entity impression on blank A4 paper and electronically scanning to a computer. The first solution has the disadvantage that the effect presented to the user is poor, in particular the effect printed by the electronic contract, and the electronic seal looks very false compared to the actual seal effect. The second scheme has the defects of troublesome operation and complex flow, and greatly reduces the working efficiency of users.
Disclosure of Invention
The invention provides an electronic seal processing method and a processing system thereof, which adopt the following technical scheme:
an electronic seal processing method comprises the following steps:
generating an electronic seal;
acquiring a processed picture from a database, wherein the database stores a plurality of processed pictures;
superposing the processed picture on the electronic seal;
and removing the overlapped part of the electronic seal and the processing picture to generate the processing seal.
Further, the specific method for generating the electronic seal comprises the following steps:
determining the shape, the color and the main body name of the seal;
and generating the electronic seal according to the seal shape, the seal color and the seal main body name.
Further, before the electronic seal is generated, the electronic seal processing method further comprises:
and establishing a database storing a plurality of processed pictures.
Further, the specific method for establishing the database storing the plurality of processed pictures is as follows:
acquiring a plurality of pictures;
cutting the picture into a preset size;
converting the cut picture into a gray level picture to obtain a processed picture;
and storing the processed pictures in a database.
Further, the picture is a scaffold picture.
Further, the specific method for superposing the processing picture on the electronic seal comprises the following steps:
randomly rotating the processed picture by a certain angle;
and superposing the rotated processed picture to the electronic seal.
Further, the specific method for removing the overlapped part of the electronic seal and the processing picture to generate the processing seal comprises the following steps:
graying the overlapped electronic seal;
performing binarization on the electronic seal to remove overlapping parts;
and converting the points meeting the gray threshold into the original color of the electronic seal.
Further, the electronic seal processing method further comprises the following steps:
storing the generated processing seal;
the processing seal is stamped on the electronic file to be stamped;
and carrying out digital signature on the electronic file after stamping.
An electronic seal processing system comprising:
the database is used for storing a plurality of processing pictures;
the electronic seal generating module is used for generating an electronic seal according to the related information;
the image acquisition module is used for acquiring a processing picture from the database;
and the image processing module is used for superposing the acquired processing picture on the electronic seal and then removing the overlapped part of the electronic seal and the processing picture to generate the processing seal.
Further, the electronic seal processing system further includes:
the template storage module is used for storing the generated processing seal;
the stamping module is used for stamping the processing seal onto the electronic file to be stamped;
and the digital signature module is used for digitally signing the stamped electronic file through the corresponding digital certificate.
The electronic seal processing method and the processing system thereof have the advantages that the processing seal generated by the processing method and the processing system has mottled and incomplete texture, is more close to the actual seal effect, and provides a user with the experience of physical seal when in electronic contract seal, so that the electronic seal is close to the effect of physical seal. Meanwhile, the speed of generating and processing the seal is high, and the office time is saved.
Drawings
FIG. 1 is a schematic diagram of an electronic seal processing system of the present invention;
FIG. 2 is a schematic diagram of an electronic seal processing method of the present invention;
FIG. 3 is a schematic diagram of a resulting electronic seal;
FIG. 4 is a schematic diagram of processing a picture;
FIG. 5 is a schematic diagram of superimposing a processed picture onto an electronic stamp;
fig. 6 is a schematic diagram of the resulting process stamp.
An electronic seal processing system 100, a database 10, an electronic seal generating module 20, an image acquisition module 30, an image processing module 40, a template storage module 50, a seal module 60 and a digital signature module 70.
Detailed Description
The invention is described in detail below with reference to the drawings and the specific embodiments.
An electronic seal processing system 100 is disclosed as shown in fig. 1, comprising: database 10, electronic seal generation module 20, image acquisition module 30, and image processing module 40. Wherein the database 10 is used for storing a number of processed pictures. The electronic seal generating module 20 is configured to generate an electronic seal according to the related information. The image acquisition module 30 is used for acquiring a processed picture from the database 10. The image processing module 40 is configured to superimpose the obtained processing image on the electronic seal, and then remove the overlapping portion of the electronic seal and the processing image to generate the processing seal. The electronic seal is processed by the electronic seal processing system 100 to obtain a processed seal with mottled effect.
As a preferred embodiment, electronic seal processing system 100 further includes: template storage module 50, stamping module 60 and digital signature module 70. The template storage module 50 is used for storing the generated processing stamp. The stamping module 60 is used for stamping the processing stamp onto the electronic file to be stamped. The digital signature module 70 is configured to digitally sign the signed electronic file through a corresponding digital certificate.
As shown in fig. 2, the invention also discloses an electronic seal processing method, which comprises the following steps: s1: and generating an electronic seal. S2: a processed picture is obtained from a database 10, and the database 10 stores a plurality of processed pictures. S3: and superposing the processed picture on the electronic seal. S4: and removing the overlapped part of the electronic seal and the processing picture to generate the processing seal. The above steps are specifically described below.
For step S1: and generating an electronic seal.
The electronic stamp is generated by an electronic stamp generating module 20. Specifically, the seal shape, seal color and seal body name are determined, and the electronic seal generating module 20 automatically generates an electronic seal according to the above information. Wherein the seal shape comprises a circle, an ellipse, a square and the like, and the seal color comprises red, blue and the like.
For step S2: a processed picture is obtained from a database 10, and the database 10 stores a plurality of processed pictures.
A processing picture for processing the electronic seal is randomly selected from the database 10 by the image acquisition module 30. Wherein, a plurality of processed pictures are stored in advance in the database 10.
As a preferred embodiment, before step S1, the database 10 storing the processed pictures is pre-established, specifically, the specific method for establishing the database 10 storing the processed pictures is as follows: a plurality of pictures with proper patterns are obtained, the pictures are cut into preset sizes, the cut pictures are converted into gray level images to obtain processed pictures, and the processed pictures are stored in the database 10. The patterns on the pictures can be freely selected, and in the invention, the patterns in the pictures are scaffolds. The picture is cut into a predetermined size and converted into a gray scale to obtain a processed picture, and fig. 4 is a schematic diagram of one processed picture in the database 10. Finally, the processed pictures are stored in the database 10.
For step S3: and superposing the processed picture on the electronic seal.
The selected processed picture is superimposed on the electronic stamp by the image processing module 40.
In the present invention, in order to increase the variety of the effects after superposition, the randomly selected processed pictures are randomly rotated by a certain angle again and are superimposed on the electronic seal, as shown in fig. 5. It can be understood that the same processed picture is overlapped on the electronic seal by rotating different angles, and the effect is different.
For step S4: and removing the overlapped part of the electronic seal and the processing picture to generate the processing seal.
And removing the overlapped part of the electronic seal and the processing picture to obtain the processing seal with mottled and incomplete effects.
Specifically, the specific method for removing the overlapped part of the electronic seal and the processing picture to generate the processing seal comprises the following steps: and graying the overlapped electronic seal. And then binarizing the electronic seal to remove the overlapped part. And converting the points meeting the gray threshold into the original color of the electronic seal. The resulting processed stamp is shown in fig. 6.
Converting the superimposed electronic seal into a gray map, binarizing the electronic seal to remove overlapping parts, and finally converting the color of the seal into red originally selected, specifically converting the point meeting the gray threshold into red.
As an optional embodiment, the electronic seal processing method further includes: and storing the generated processing seal. And stamping the processing seal on the electronic file to be stamped. And carrying out digital signature on the electronic file after stamping.
And evaluating the generated processing seal, if the effect is satisfactory, storing the processing seal in a template storage module 50 for direct calling of next seal, and if the effect is unsatisfactory, giving up and executing relevant steps again to generate a new processing seal until the processing seal with better effect is generated. And then the generated processing seal is stamped on the electronic file to be stamped through the stamping module 60, and it can be understood that the processing seal generated through the method is a transparent seal, the content of the processing seal is not covered by other parts. And finally, the stamped file is digitally signed by a corresponding digital signature module 70.
The foregoing has shown and described the basic principles, principal features and advantages of the invention. It will be appreciated by persons skilled in the art that the above embodiments are not intended to limit the invention in any way, and that all technical solutions obtained by means of equivalent substitutions or equivalent transformations fall within the scope of the invention.