CN111353485A - Seal identification method, device, equipment and medium - Google Patents
Seal identification method, device, equipment and medium Download PDFInfo
- Publication number
- CN111353485A CN111353485A CN201811561408.0A CN201811561408A CN111353485A CN 111353485 A CN111353485 A CN 111353485A CN 201811561408 A CN201811561408 A CN 201811561408A CN 111353485 A CN111353485 A CN 111353485A
- Authority
- CN
- China
- Prior art keywords
- stamp
- image
- seal
- pattern
- identified
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/24—Aligning, centring, orientation detection or correction of the image
- G06V10/242—Aligning, centring, orientation detection or correction of the image by image rotation, e.g. by 90 degrees
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/75—Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
- G06V10/758—Involving statistics of pixels or of feature values, e.g. histogram matching
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Collating Specific Patterns (AREA)
Abstract
The invention discloses a seal identification method, a seal identification device, seal identification equipment and a seal identification medium. The method comprises the following steps: acquiring an image containing a stamp pattern to be identified, and determining the area of the stamp pattern to be identified on the image; the center point of the stamp pattern area to be identified is coincided with the center point of the target stamp image, and the number of pixel points of the stamp pattern area to be identified, which are coincided with the target stamp image, is determined; determining the matching degree of the stamp pattern to be recognized and the target stamp image according to the number of the pixel points with the overlapped positions; and if the matching degree is not less than the preset threshold value, the seal pattern to be recognized is the same as the seal of the target seal image. According to the embodiment of the invention, the seals in the contract can be identified, and the automation degree of the audit work is improved.
Description
Technical Field
The invention relates to the technical field of images, in particular to a method, a device, equipment and a medium for identifying a seal.
Background
At present, the auditing and auditing of the contracts and related data in the government and enterprise business are operated in a manual auditing mode, and the contents of the contracts and the related data are audited by an auditor according to an auditing management method. The specific audit content comprises the following steps: whether a contract special seal is used in the contract and whether the seal specification is correct; whether a relevant signature exists or not and whether the signature is correct or not; whether to execute according to the corresponding approval process and the relevant specifications of the responsible person in the examination and verification of the contract/service agreement content; whether to carry out contract approval according to the terms and regulations of relevant departments, responsible persons and examination and verification period; whether the actual contract/service agreement content is consistent with the approval, etc.
The system can not identify whether the relevant special seal in the contract is correctly specified, such as information contained in the contract seal; due to the non-standardization of the contract text, the position and the range of the contract chapter are difficult to accurately position, and the like, so that the reading and the verification of the key information can only be finished manually at present, and the application range of the automatic audit of the system is limited.
Disclosure of Invention
In order to solve at least one technical problem, embodiments of the present invention provide a method, an apparatus, a device, and a medium for identifying a seal, which can identify a seal in a contract, and improve the automation degree of audit work.
In a first aspect, an embodiment of the present invention provides a method for identifying a stamp, where the method includes:
acquiring an image containing a stamp pattern to be identified, and determining an area of the stamp pattern to be identified on the image;
superposing the central point of the pattern area of the stamp to be identified with the central point of the target stamp image, and determining the number of pixel points of the pattern area of the stamp to be identified, which are superposed with the target stamp image;
determining the matching degree of the stamp pattern to be recognized and the target stamp image according to the number of the pixel points with the overlapped positions;
and if the matching degree is not less than a preset threshold value, the seal pattern to be recognized is the same as the seal of the target seal image.
According to the seal identification method provided by the embodiment of the invention, the method further comprises the following steps:
if the matching degree is smaller than a preset threshold value, rotating the pattern area of the seal to be recognized by a preset angle based on the central point;
and determining the matching degree of the rotated stamp pattern to be identified and the target stamp image.
According to the seal identification method provided by the embodiment of the invention, the method further comprises the following steps:
if the matching degree obtained after rotation is smaller than the preset threshold value, rotating the stamp pattern area to be recognized based on the central point for multiple times according to the preset angle;
and determining the matching degree of the rotated stamp pattern to be recognized and the target stamp image until the stamp pattern area to be recognized is rotated to the initial position.
According to the seal identification method provided by the embodiment of the invention, the method further comprises the following steps:
and determining the central point of the pattern area of the stamp to be identified and the central point of the target stamp image.
According to the stamp identification method provided by the embodiment of the invention, the step of determining the central point of the pattern area of the stamp to be identified and the central point of the target stamp image comprises the following steps:
projecting the stamp pattern area to be identified and the target stamp image in the horizontal direction and the vertical direction respectively;
determining boundary points of the projected stamp pattern area to be identified and the target stamp image in the horizontal and vertical directions;
and determining the central point of the pattern area of the stamp to be recognized and the central point of the target stamp image according to the boundary points.
According to the stamp identification method provided by the embodiment of the invention, the step of determining the area of the stamp pattern to be identified on the image comprises the following steps:
determining a first color of the stamp pattern to be recognized and a second color of the image;
taking the area where the first color and the second color which meet the first preset condition are as the candidate area of the stamp pattern to be identified;
and taking the candidate area with the shape and the size meeting second preset conditions as the area where the stamp pattern to be identified is located.
According to the seal identification method provided by the embodiment of the invention, the method further comprises the following steps:
and converting the stamp pattern area to be identified into a gray image with preset brightness.
According to the seal recognition method provided by the embodiment of the invention, the step of determining the matching degree of the seal pattern to be recognized and the target seal image according to the number of the pixel points with the overlapped positions comprises the following steps:
respectively determining the total number of pixel points of the stamp pattern area to be identified and the target stamp image;
and determining the matching degree of the stamp pattern to be recognized and the target stamp image according to the total number of the pixel points in the stamp pattern region to be recognized, the total number of the pixel points in the target stamp image and the number of the pixel points with superposed positions.
According to the seal identification method provided by the embodiment of the invention, the calculation formula of the matching degree is as follows:
S=Pcoi/max(P1,P2)
wherein S is the matching degree; pcoi is the number of pixel points with overlapped positions; p1 is the total number of pixel points of the target seal image; p2 is the total number of pixel points in the stamp pattern area to be identified; max (P1, P2) is the maximum of P1 and P2.
According to the seal identification method provided by the embodiment of the invention, the number of the pixel points with the overlapped positions comprises the number of the black pixel points with the overlapped positions.
In a second aspect, an embodiment of the present invention provides a stamp identification apparatus, including:
the seal area determining module is used for acquiring an image containing a seal pattern to be identified and determining an area where the seal pattern to be identified is located on the image;
the pixel number determining module is used for coinciding the central point of the to-be-recognized seal pattern area with the central point of a target seal image and determining the number of pixels of the to-be-recognized seal pattern area coinciding with the target seal image;
the matching degree determining module is used for determining the matching degree of the stamp pattern to be identified and the target stamp image according to the number of the pixel points with the overlapped positions;
and the identification module is used for identifying that the seal pattern to be identified is the same as the seal of the target seal image if the matching degree is not less than a preset threshold value.
In a third aspect, an embodiment of the present invention provides a stamp identification apparatus, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which computer program instructions are stored, which, when executed by a processor, implement the method of the first aspect in the foregoing embodiments.
According to the seal identification method, the seal identification device, the seal identification equipment and the seal identification medium, the method comprises the steps of obtaining an image containing a seal pattern to be identified, and determining an area where the seal pattern to be identified is located on the image; the center point of the stamp pattern area to be identified is coincided with the center point of the target stamp image, and the number of pixel points of the stamp pattern area to be identified, which are coincided with the target stamp image, is determined; determining the matching degree of the stamp pattern to be recognized and the target stamp image according to the number of the pixel points with the overlapped positions; and if the matching degree is not less than the preset threshold value, the seal pattern to be recognized is the same as the seal of the target seal image. According to the embodiment of the invention, the seals in the contract can be identified, and the automation degree of the audit work is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart illustrating a method of stamp identification according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a stamp identification method according to another embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a vertical projection of a stamp area according to an embodiment of the present invention;
FIG. 4 illustrates a schematic view of an embodiment of the present invention with stamp region rotated;
FIG. 5 shows a schematic diagram of adjusting a rotation parameter of an embodiment of the invention;
FIG. 6 is a schematic structural diagram of a stamp identification apparatus according to an embodiment of the present invention;
fig. 7 shows a hardware configuration diagram of the stamp recognition apparatus according to the embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The seal identification method, apparatus, device and medium according to the embodiments of the present invention will be described in detail with reference to fig. 1 to 7. It should be noted that the examples are not intended to limit the scope of the present invention.
Fig. 1 is a flowchart illustrating a stamp recognition method according to an embodiment of the present invention. As shown in fig. 1, the stamp identification method according to the embodiment of the present invention includes the following steps:
s110, acquiring an image containing a stamp pattern to be identified, and determining an area of the stamp pattern to be identified on the image;
s120, coinciding the central point of the pattern area of the stamp to be identified with the central point of the target stamp image, and determining the number of pixel points of the pattern area of the stamp to be identified coinciding with the position of the target stamp image;
s130, determining the matching degree of the stamp pattern to be identified and the target stamp image according to the number of the pixel points with the overlapped positions;
and S140, if the matching degree is not less than the preset threshold value, the seal pattern to be recognized is the same as the seal of the target seal image.
According to the embodiment of the invention, the seals in the contract can be identified, and the automation degree of the audit work is improved.
Fig. 2 is a schematic flow chart of a stamp identification method according to another embodiment of the present invention. As shown in fig. 2, the stamp identification method according to the embodiment of the present invention can be divided into two parts based on functions:
1. content extraction based on edge color;
2. and carrying out noise reduction and matching identification based on the image.
1. The color-based content extraction method comprises the following steps:
considering that the contract seal is red in practical application, a method is designed, based on the combined detection of seal color and shape features, only the specified color edge is detected, and a large number of invalid edges are ignored, so that the difficulty of subsequent work can be greatly reduced. And then simply screening according to some basic characteristics of the contract seal to obtain a candidate region.
In the embodiment of the present invention, a red-white edge is detected by taking a white-based red-character stamp as an example.
Let image pixel P1(i, j) ═ H (i, j), S (i, j), V (i, j)), where H (i, j), S (i, j), V (i, j) respectively represent the chrominance H, saturation S, luminance V components of pixel P1(i, j), two-dimensional array P2(m, n) is set to hold the edge-detected image, and a window of 3 × 3 is taken from P1(i, j) as the center.
In HSV space, the red constraint is: -30< ═ h <30, S > 0.1; the constraint for white is: v >80, S < 0.3.
According to the two constraint conditions, the distribution situation of the red and white pixel points in the window is counted, and the condition for judging whether the red and white edge points exist is as follows:
1) p1(i-1, j-1), P1(i, j-1) and P1(i +1, j-1) are all red pixels, and P1(i-1, j +1), P1(i, j +1) and P1(i +1, j +1) are all white pixels.
2) P1(i-1, j-1), P1(i, j-1) and P1(i +1, j-1) are all white pixels, and P1(i-1, j +1), P1(i, j +1) and P1(i +1, j +1) are red pixels.
If any of the above conditions is satisfied, it is considered that P1(i-1, j), P1(i, j), and P1(i +1, j) are red and white edge points, P2(i-1, j) ═ P2(i, j) ═ P2(i +1, j) ═ 1, and the other pixel values in the array P2 corresponding to the window are set to 0; if none of the above conditions is satisfied, there is no red-white edge point, and all of the P2 pixel values corresponding to the window position are set to 0.
And traversing the window through the whole image to obtain a binary red and white edge image.
And similarly, the method is used for distinguishing the seal from the printed characters based on the detection of the black and red edges.
After the processing is completed, a plurality of candidate regions are obtained, and the candidate regions need to be screened one by one to obtain a real stamp region.
Generally, the stamp area should have these features: the shape is round or square; the size of the seal floats within a certain range; the seal typeface is red.
And after screening the candidate regions based on the characteristics, entering a noise reduction and comparison stage.
2. The image denoising and matching identification method based on the contract chapter comprises the following steps:
at present, because the number of contract copies is not many, the requirement on the comparison execution speed is not high, and other external factors (such as optical fibers, region overlapping and the like) are considered, the gray-scale image is used for conversion when preprocessing is carried out. Meanwhile, the G component is used for representing, so that the brightness of the converted picture is moderate, and the subsequent identification cannot be influenced.
After image conversion is carried out, the center of a seal image is positioned through projection in the horizontal direction and the vertical direction, then seal image rotation is carried out around the center of the seal, finally matching similarity is calculated through the number of matched points and the total number of points, and comparison is completed according to the similarity.
The working steps of determining the center of a seal are as follows:
(1) after the seal area is detected and used as the seal area, the number of pixel points in each row and each column is calculated by projecting in the vertical direction and the horizontal direction and is respectively stored in arrays Hx and Hy.
(2) The left and right boundaries of the stamp area are found according to Hx, assuming Bl and Br, respectively.
(3) Calculating the horizontal center of the seal according to Bl and Br:
Cx=(Bl+Br)/2 (1)
(4) and finding the upper and lower boundaries of the stamp area according to Hy, and respectively assuming Bu and Bd.
(5) Calculating the vertical center of the seal according to Bu and Bd:
Cy=(Bu+Bd)/2 (2)
and (II) rotating and superposing the stamp images.
When the seal is compared, the data of the two seal images are read first, and the two images are assumed to be stored in the one-dimensional arrays D1 and D2 respectively. Assuming image D1 remains unchanged, the two images are aligned by rotating image D2. The main steps for rotating the image D2 are as follows:
(1) the centers of the two images are respectively calculated by the algorithm, and the centers are (Cx1, Cy1) and (Cx2, Cy 2).
(2) Assuming that the angle to be rotated is θ, the rotated coordinates (x ', y') of (x, y) are obtained by the following formula:
x'=(x-cx2)cosθ-(y-cy2)sinθ+cx2 (3)
y'=(x-cy2)cosθ+(x-cx2)sinθ+cy2 (4)
(3) placing the centers of circles of two pictures to be compared at the same position to form image superposition
And (III) calculating matching similarity.
Assuming that the image array D2 becomes D2 "after rotation and translation, the matching similarity can be calculated by directly comparing the brightness of the pixel points with the same coordinates.
The matching similarity is calculated as follows:
(1) counting the number P1 of black pixels of the image 1;
(2) counting the number of black pixels P2 of the image 2;
(3) counting the number Pcoi of black points overlapped by the positions of the image 1 and the image 2;
(4) the matching similarity is obtained by the following formula:
S=Pcoi/max(P1,P2) (5)
in the above formula, max (P1, P2) is used to find the maximum value of P1 and P2
And (IV) adjusting the rotation parameters to carry out cycle matching check.
After the primary picture matching is completed according to the algorithm, if the matching is unsuccessful, the picture is rotated again by α degrees, and the secondary matching is performed until the picture is rotated by one circle, wherein the rotation number is Z360/α.
The smaller the rotation angle α, the higher the comparison accuracy, but the comparison times and the calculation amount are also increased greatly, and the adjustment can be performed according to the business requirements.
In the embodiment of the invention, the position of the contract chapters is designed to be automatically identified, and then the images or characters in the designated area are identified and compared, so that the compliance and the accuracy of the contract chapters are judged.
Fig. 6 is a schematic structural diagram of a stamp recognition apparatus according to an embodiment of the present invention. As shown in fig. 6, the stamp identification apparatus according to the embodiment of the present invention includes the following modules:
a stamp region determining module 601, configured to obtain an image including a stamp pattern to be identified, and determine a region where the stamp pattern to be identified is located on the image;
a pixel number determining module 602, configured to coincide a center point of the to-be-recognized stamp pattern region with a center point of the target stamp image, and determine the number of pixels at which the to-be-recognized stamp pattern region coincides with the target stamp image;
the matching degree determining module 603 is configured to determine a matching degree between the stamp pattern to be recognized and the target stamp image according to the number of the pixel points with the overlapped positions;
the identifying module 604 is configured to identify that the stamp pattern to be identified is the same as the stamp of the target stamp image if the matching degree is not less than the preset threshold.
In an embodiment of the present invention, the identifying module 604 is specifically configured to:
if the matching degree is smaller than a preset threshold value, rotating the pattern area of the seal to be recognized by a preset angle based on the central point;
and determining the matching degree of the rotated stamp pattern to be identified and the target stamp image.
In an embodiment of the present invention, the identifying module 604 is specifically configured to:
if the matching degree obtained after rotation is smaller than a preset threshold value, rotating the stamp pattern area to be recognized based on the central point for multiple times according to a preset angle;
and determining the matching degree of the rotated to-be-recognized stamp pattern and the target stamp image until the to-be-recognized stamp pattern area is rotated to the initial position.
In an embodiment of the present invention, the pixel number determining module 602 is specifically configured to:
and determining the central point of the pattern area of the stamp to be identified and the central point of the target stamp image.
In an embodiment of the present invention, the pixel number determining module 602 is specifically configured to:
projecting a stamp pattern area to be identified and a target stamp image in the horizontal direction and the vertical direction respectively;
determining boundary points of the projected stamp pattern area to be identified and the target stamp image in the horizontal and vertical directions;
and determining the central point of the pattern area of the stamp to be identified and the central point of the target stamp image according to the boundary points.
In an embodiment of the present invention, the stamp region determining module 601 is specifically configured to:
determining a first color of a stamp pattern to be recognized and a second color of an image;
taking the area where the first color and the second color which meet the first preset condition are as candidate areas of the stamp pattern to be identified;
and taking the candidate area with the shape and the size meeting the second preset condition as the area where the stamp pattern to be identified is located.
In an embodiment of the present invention, the stamp region determining module 601 is specifically configured to:
and converting the stamp pattern area to be identified into a gray image with preset brightness.
In an embodiment of the present invention, the print matching degree determining module 603 is specifically configured to:
respectively determining the total number of pixel points of a stamp pattern area to be identified and a target stamp image;
and determining the matching degree of the stamp pattern to be identified and the target stamp image according to the total number of the pixel points in the stamp pattern region to be identified, the total number of the pixel points in the target stamp image and the number of the pixel points with overlapped positions.
In an embodiment of the present invention, the print matching degree determining module 603 is specifically configured to:
S=Pcoi/max(P1,P2)
wherein S is the matching degree; pcoi is the number of pixel points with overlapped positions; p1 is the total number of pixel points of the target seal image; p2 is the total number of pixel points in the stamp pattern area to be identified; max (P1, P2) is the maximum of P1 and P2.
In an embodiment of the present invention, the print matching degree determining module 603 is specifically configured to:
the number of the pixels with the coincident positions comprises the number of the black pixels with the coincident positions
Fig. 7 is a schematic diagram illustrating a hardware structure of the stamp identification apparatus according to the embodiment of the present invention.
The stamp identification device may include a processor 301 and a memory 302 having stored computer program instructions.
In particular, the processor 301 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement any one of the stamp identification methods in the above embodiments.
In one example, the stamp identification device may also include a communication interface 303 and a bus 310. As shown in fig. 3, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 to complete communication therebetween.
The communication interface 303 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiment of the present invention.
The seal recognition device can execute the seal recognition method in the embodiment of the invention, thereby realizing the seal recognition method and the seal recognition device described in combination with fig. 1 and 6.
In addition, in combination with the seal identification method in the above embodiments, embodiments of the present invention may provide a computer storage medium to implement. The computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement any of the seal identification methods in the above embodiments.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.
Claims (13)
1. A method of seal identification, the method comprising:
acquiring an image containing a stamp pattern to be identified, and determining an area of the stamp pattern to be identified on the image;
superposing the central point of the pattern area of the stamp to be identified with the central point of the target stamp image, and determining the number of pixel points of the pattern area of the stamp to be identified, which are superposed with the target stamp image;
determining the matching degree of the stamp pattern to be recognized and the target stamp image according to the number of the pixel points with the overlapped positions;
and if the matching degree is not less than a preset threshold value, the seal pattern to be recognized is the same as the seal of the target seal image.
2. The method of claim 1, further comprising:
if the matching degree is smaller than a preset threshold value, rotating the pattern area of the seal to be recognized by a preset angle based on the central point;
and determining the matching degree of the rotated stamp pattern to be identified and the target stamp image.
3. The method of claim 2, further comprising:
if the matching degree obtained after rotation is smaller than the preset threshold value, rotating the stamp pattern area to be recognized based on the central point for multiple times according to the preset angle;
and determining the matching degree of the rotated stamp pattern to be recognized and the target stamp image until the stamp pattern area to be recognized is rotated to the initial position.
4. The method of claim 1, further comprising:
and determining the central point of the pattern area of the stamp to be identified and the central point of the target stamp image.
5. The method according to claim 4, wherein the determining the center point of the to-be-recognized stamp pattern region and the center point of the target stamp image comprises:
projecting the stamp pattern area to be identified and the target stamp image in the horizontal direction and the vertical direction respectively;
determining boundary points of the projected stamp pattern area to be identified and the target stamp image in the horizontal and vertical directions;
and determining the central point of the pattern area of the stamp to be recognized and the central point of the target stamp image according to the boundary points.
6. The method according to claim 1, wherein the determining the area of the image where the stamp pattern to be recognized is located comprises:
determining a first color of the stamp pattern to be recognized and a second color of the image;
taking the area where the first color and the second color which meet the first preset condition are as the candidate area of the stamp pattern to be identified;
and taking the candidate area with the shape and the size meeting second preset conditions as the area where the stamp pattern to be identified is located.
7. The method of claim 1, further comprising:
and converting the stamp pattern area to be identified into a gray image with preset brightness.
8. The method according to claim 1, wherein the determining the matching degree of the to-be-recognized stamp pattern and the target stamp image according to the number of the pixel points overlapped by the position comprises:
respectively determining the total number of pixel points of the stamp pattern area to be identified and the target stamp image;
and determining the matching degree of the stamp pattern to be recognized and the target stamp image according to the total number of the pixel points in the stamp pattern region to be recognized, the total number of the pixel points in the target stamp image and the number of the pixel points with superposed positions.
9. The method according to claim 8, wherein the matching degree is calculated by the formula:
S=Pcoi/max(P1,P2)
wherein S is the matching degree; pcoi is the number of pixel points with overlapped positions; p1 is the total number of pixel points of the target seal image; p2 is the total number of pixel points in the stamp pattern area to be identified; max (P1, P2) is the maximum of P1 and P2.
10. The method of claim 1, wherein the number of overlapping pixels comprises a number of overlapping black pixels.
11. A seal identification device, said device comprising:
the seal area determining module is used for acquiring an image containing a seal pattern to be identified and determining an area where the seal pattern to be identified is located on the image;
the pixel number determining module is used for coinciding the central point of the to-be-recognized seal pattern area with the central point of a target seal image and determining the number of pixels of the to-be-recognized seal pattern area coinciding with the target seal image;
the matching degree determining module is used for determining the matching degree of the stamp pattern to be identified and the target stamp image according to the number of the pixel points with the overlapped positions;
and the identification module is used for identifying that the seal pattern to be identified is the same as the seal of the target seal image if the matching degree is not less than a preset threshold value.
12. A stamp identification apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-10.
13. A computer-readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811561408.0A CN111353485B (en) | 2018-12-20 | 2018-12-20 | Seal identification method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811561408.0A CN111353485B (en) | 2018-12-20 | 2018-12-20 | Seal identification method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111353485A true CN111353485A (en) | 2020-06-30 |
CN111353485B CN111353485B (en) | 2023-09-05 |
Family
ID=71196767
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811561408.0A Active CN111353485B (en) | 2018-12-20 | 2018-12-20 | Seal identification method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111353485B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111881911A (en) * | 2020-07-31 | 2020-11-03 | 珠海格力电器股份有限公司 | Positioning method and device |
CN112669367A (en) * | 2020-12-25 | 2021-04-16 | 平安科技(深圳)有限公司 | Stamping position detection method and device, computer equipment and storage medium |
CN112784835A (en) * | 2021-01-21 | 2021-05-11 | 恒安嘉新(北京)科技股份公司 | Method and device for identifying authenticity of circular seal, electronic equipment and storage medium |
CN113190455A (en) * | 2021-05-13 | 2021-07-30 | 统信软件技术有限公司 | Element positioning method and computing equipment |
CN114092937A (en) * | 2021-11-18 | 2022-02-25 | 中国建设银行股份有限公司 | Seal identification method, device, equipment and medium |
CN116757886A (en) * | 2023-08-16 | 2023-09-15 | 南京尘与土信息技术有限公司 | Data analysis method and analysis device |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0440137A2 (en) * | 1990-01-30 | 1991-08-07 | Yozan Inc. | Position adjustment system |
US20060048486A1 (en) * | 2002-06-07 | 2006-03-09 | Laing Robert J | Flexible pouch filling and heat sealing line for flexible pouches and containers for supporting and moving the flexible pouches |
CN102375980A (en) * | 2010-08-24 | 2012-03-14 | 汉王科技股份有限公司 | Image processing method and device |
CN103841089A (en) * | 2012-11-23 | 2014-06-04 | 中国移动通信集团公司 | Digital signature method, system and server |
CN104626771A (en) * | 2015-03-05 | 2015-05-20 | 深圳市创业印章实业有限公司 | Seal anti-counterfeiting method and system |
CN105447437A (en) * | 2015-02-13 | 2016-03-30 | 比亚迪股份有限公司 | Fingerprint identification method and device |
CN106340116A (en) * | 2016-08-26 | 2017-01-18 | 深圳怡化电脑股份有限公司 | Banknote identification method and device |
CN108009928A (en) * | 2017-11-23 | 2018-05-08 | 平安科技(深圳)有限公司 | Electronic insurance policy is endorsed method, apparatus, computer equipment and storage medium |
CN108197642A (en) * | 2017-12-25 | 2018-06-22 | 山东浪潮云服务信息科技有限公司 | A kind of seal discrimination method and device |
CN108596197A (en) * | 2018-05-15 | 2018-09-28 | 汉王科技股份有限公司 | A kind of seal matching process and device |
CN108717744A (en) * | 2018-04-27 | 2018-10-30 | 深圳怡化电脑股份有限公司 | Identify the method, apparatus and terminal device of the seal serial number on financial documents |
DE102018208543A1 (en) * | 2017-05-31 | 2018-12-06 | Keyence Corporation | BILDPRÜFVORRICHTUNG |
-
2018
- 2018-12-20 CN CN201811561408.0A patent/CN111353485B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0440137A2 (en) * | 1990-01-30 | 1991-08-07 | Yozan Inc. | Position adjustment system |
US20060048486A1 (en) * | 2002-06-07 | 2006-03-09 | Laing Robert J | Flexible pouch filling and heat sealing line for flexible pouches and containers for supporting and moving the flexible pouches |
CN102375980A (en) * | 2010-08-24 | 2012-03-14 | 汉王科技股份有限公司 | Image processing method and device |
CN103841089A (en) * | 2012-11-23 | 2014-06-04 | 中国移动通信集团公司 | Digital signature method, system and server |
CN105447437A (en) * | 2015-02-13 | 2016-03-30 | 比亚迪股份有限公司 | Fingerprint identification method and device |
CN104626771A (en) * | 2015-03-05 | 2015-05-20 | 深圳市创业印章实业有限公司 | Seal anti-counterfeiting method and system |
CN106340116A (en) * | 2016-08-26 | 2017-01-18 | 深圳怡化电脑股份有限公司 | Banknote identification method and device |
DE102018208543A1 (en) * | 2017-05-31 | 2018-12-06 | Keyence Corporation | BILDPRÜFVORRICHTUNG |
CN108009928A (en) * | 2017-11-23 | 2018-05-08 | 平安科技(深圳)有限公司 | Electronic insurance policy is endorsed method, apparatus, computer equipment and storage medium |
CN108197642A (en) * | 2017-12-25 | 2018-06-22 | 山东浪潮云服务信息科技有限公司 | A kind of seal discrimination method and device |
CN108717744A (en) * | 2018-04-27 | 2018-10-30 | 深圳怡化电脑股份有限公司 | Identify the method, apparatus and terminal device of the seal serial number on financial documents |
CN108596197A (en) * | 2018-05-15 | 2018-09-28 | 汉王科技股份有限公司 | A kind of seal matching process and device |
Non-Patent Citations (5)
Title |
---|
周昕: "彩色票据验印系统中的关键技术研究", 《计算机时代》 * |
周昕: "彩色票据验印系统中的关键技术研究", 《计算机时代》, no. 07, 25 July 2006 (2006-07-25), pages 16 - 18 * |
周毅;: "荷花画图像模式与杭州城市形象传播", 浙江传媒学院学报, no. 02, pages 75 - 78 * |
周琨等: "印章鉴定系统的图像处理研究", 《计算机工程与应用》 * |
周琨等: "印章鉴定系统的图像处理研究", 《计算机工程与应用》, no. 20, 15 October 2002 (2002-10-15), pages 218 - 220 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111881911A (en) * | 2020-07-31 | 2020-11-03 | 珠海格力电器股份有限公司 | Positioning method and device |
CN111881911B (en) * | 2020-07-31 | 2024-05-28 | 珠海格力电器股份有限公司 | Positioning method and device |
CN112669367A (en) * | 2020-12-25 | 2021-04-16 | 平安科技(深圳)有限公司 | Stamping position detection method and device, computer equipment and storage medium |
CN112669367B (en) * | 2020-12-25 | 2024-05-14 | 平安科技(深圳)有限公司 | Stamping position detection method and device, computer equipment and storage medium |
CN112784835A (en) * | 2021-01-21 | 2021-05-11 | 恒安嘉新(北京)科技股份公司 | Method and device for identifying authenticity of circular seal, electronic equipment and storage medium |
CN112784835B (en) * | 2021-01-21 | 2024-04-12 | 恒安嘉新(北京)科技股份公司 | Method and device for identifying authenticity of circular seal, electronic equipment and storage medium |
CN113190455A (en) * | 2021-05-13 | 2021-07-30 | 统信软件技术有限公司 | Element positioning method and computing equipment |
CN113190455B (en) * | 2021-05-13 | 2024-06-07 | 统信软件技术有限公司 | Element positioning method and computing equipment |
CN114092937A (en) * | 2021-11-18 | 2022-02-25 | 中国建设银行股份有限公司 | Seal identification method, device, equipment and medium |
CN116757886A (en) * | 2023-08-16 | 2023-09-15 | 南京尘与土信息技术有限公司 | Data analysis method and analysis device |
CN116757886B (en) * | 2023-08-16 | 2023-11-28 | 南京尘与土信息技术有限公司 | Data analysis method and analysis device |
Also Published As
Publication number | Publication date |
---|---|
CN111353485B (en) | 2023-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111353485B (en) | Seal identification method, device, equipment and medium | |
CN107545239B (en) | Fake plate detection method based on license plate recognition and vehicle characteristic matching | |
US8515162B2 (en) | QR code processing method and apparatus thereof | |
US8885048B2 (en) | Computer vision and radio frequency identification technology based book enrolment management apparatus | |
CN106326887B (en) | A kind of method of calibration and device of optical character identification result | |
CN111382704A (en) | Vehicle line-pressing violation judgment method and device based on deep learning and storage medium | |
CN111259891B (en) | Method, device, equipment and medium for identifying identity card in natural scene | |
CN114387591A (en) | License plate recognition method, system, equipment and storage medium | |
TWI765442B (en) | Method for defect level determination and computer readable storage medium thereof | |
CN108932449B (en) | Bar code binarization method and system based on clustering | |
CN113283439B (en) | Intelligent counting method, device and system based on image recognition | |
CN111695410A (en) | Violation reporting method and device, computer equipment and storage medium | |
CN112085721A (en) | Damage assessment method, device and equipment for flooded vehicle based on artificial intelligence and storage medium | |
Hossen et al. | Vehicle license plate detection and tilt correction based on HSI color model and SUSAN corner detector | |
CN108205670B (en) | License plate recognition method and device | |
CN113139399A (en) | Image line frame identification method and server | |
CN116542998B (en) | Contour detection method, device, equipment and medium for photoetching film inductance | |
CN111860687A (en) | Image identification method and device, electronic equipment and storage medium | |
CN111460198B (en) | Picture timestamp auditing method and device | |
Siddique et al. | Development of an automatic vehicle license plate detection and recognition system for Bangladesh | |
CN112308062B (en) | Medical image access number identification method in complex background image | |
CN114219760A (en) | Reading identification method and device of instrument and electronic equipment | |
CN113689378A (en) | Method and device for judging accurate positioning of test strip, storage medium and terminal | |
CN114120343A (en) | Certificate image quality evaluation method and terminal | |
CN113255657B (en) | Method and device for detecting scratch on bill surface, electronic equipment and machine-readable medium |
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 |