CN111353485B - Seal identification method, device, equipment and medium - Google Patents

Seal identification method, device, equipment and medium Download PDF

Info

Publication number
CN111353485B
CN111353485B CN201811561408.0A CN201811561408A CN111353485B CN 111353485 B CN111353485 B CN 111353485B CN 201811561408 A CN201811561408 A CN 201811561408A CN 111353485 B CN111353485 B CN 111353485B
Authority
CN
China
Prior art keywords
seal
image
identified
determining
target
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
Application number
CN201811561408.0A
Other languages
Chinese (zh)
Other versions
CN111353485A (en
Inventor
王海明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Liaoning Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Liaoning Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Liaoning Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811561408.0A priority Critical patent/CN111353485B/en
Publication of CN111353485A publication Critical patent/CN111353485A/en
Application granted granted Critical
Publication of CN111353485B publication Critical patent/CN111353485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • G06V10/242Aligning, centring, orientation detection or correction of the image by image rotation, e.g. by 90 degrees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation 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/758Involving statistics of pixels or of feature values, e.g. histogram matching
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses a seal identification method, device, equipment and medium. The method comprises the following steps: acquiring an image containing a seal pattern to be identified, and determining the area of the seal pattern to be identified on the image; overlapping the center point of the stamp pattern area to be identified with the center point of the target stamp image, and determining the number of pixel points of which the stamp pattern area to be identified is overlapped with the target stamp image; determining the matching degree of the seal pattern to be identified and the target seal image according to the number of the pixel points with the coincident positions; if the matching degree is not less than the preset threshold value, the pattern of the seal to be identified is the same as the seal of the target seal image. According to the embodiment of the invention, the seal in the contract can be identified, and the automation degree of auditing work is improved.

Description

Seal identification method, device, equipment and medium
Technical Field
The present invention relates to the field of image technologies, and in particular, to a method, an apparatus, a device, and a medium for identifying a seal.
Background
At present, the auditing and auditing of the contracts and related data in government and enterprise business are operated in a manual auditing mode, and auditing personnel audit the contents of the contracts and related data according to an auditing management method. The specific audit content comprises: whether a contract-specific chapter is used in the contract, and whether the chapter specification is correct; whether the related signature exists or not, and whether the signature is correct or not; in the examination of the contract/business agreement content, whether to execute according to the relevant specification of the corresponding examination and approval flow and responsible person or not; whether to conduct contract approval according to the terms and regulations of relevant departments, responsible persons and auditing deadlines; whether the actual contract/business agreement content is consistent with approval, etc.
Because the system cannot identify whether the relevant special seal in the contract is correctly standardized, such as information contained in the contract seal; the non-standardization of the contract text is difficult to accurately locate the position and the range of the contract chapter, and the like, so that the reading and the auditing of the key information can only be completed manually at present, and the application range of the automatic auditing of the system is limited.
Disclosure of Invention
In order to solve at least one technical problem, the embodiment of the invention provides a seal identification method, device, equipment and medium, which can identify seals in a contract and improve the automation degree of auditing work.
In a first aspect, an embodiment of the present invention provides a seal identification method, including:
acquiring an image containing a seal pattern to be identified, and determining the area of the seal pattern to be identified on the image;
overlapping the central point of the seal pattern area to be identified with the central point of the target seal image, and determining the number of pixel points of the seal pattern area to be identified, which are overlapped with the target seal image;
determining the matching degree of the seal pattern to be identified and the target seal image according to the number of the pixel points with the coincident positions;
and if the matching degree is not smaller than a preset threshold value, the seal pattern to be identified 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 seal pattern area to be identified by a preset angle based on the center point;
and determining the matching degree of the rotated seal pattern to be identified and 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 obtained after rotation is smaller than the preset threshold value, rotating the seal pattern area to be identified for a plurality of times according to the preset angle based on the center point;
and determining the matching degree of the rotated seal pattern to be identified and the target seal image until the seal pattern area to be identified is rotated to an 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 center point of the to-be-identified seal pattern area and the center point of the target seal image.
According to the seal identification method provided by the embodiment of the invention, the determining of the center point of the seal pattern area to be identified and the center point of the target seal image comprises the following steps:
projecting the pattern area of the seal to be identified and the target seal image in the horizontal direction and the vertical direction respectively;
determining boundary points of the pattern area of the seal to be identified and the target seal image in the horizontal and vertical directions after projection;
and determining the central point of the to-be-identified seal pattern area and the central point of the target seal image according to the boundary points.
According to the seal identification method provided by the embodiment of the invention, the determining the area where the seal pattern to be identified is located on the image comprises the following steps:
determining a first color of the seal pattern to be identified and a second color of the image;
taking the region where the first color and the second color meet a first preset condition as a candidate region of the seal pattern to be identified;
and taking the candidate region with the shape and the size meeting the second preset condition as the region where the seal 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 pattern area of the seal to be identified into a gray image with preset brightness.
According to the seal identification method provided by the embodiment of the invention, the determining the matching degree of the seal pattern to be identified and the target seal image according to the number of the pixel points with the coincident positions comprises the following steps:
respectively determining the total number of pixel points of the seal pattern area to be identified and the target seal image;
and determining the matching degree of the seal pattern to be identified and the target seal image according to the total number of the pixel points of the seal pattern area to be identified, the total number of the pixel points of the target seal image and the number of the pixel points with the coincident 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 coincident positions; p1 is the total number of pixel points of the target seal image; p2 is the total number of pixel points of the pattern area of the seal to be identified; max (P1, P2) is the maximum value 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 identifying apparatus, including:
the seal area determining module is used for acquiring an image containing the seal pattern to be identified and determining the area of the seal pattern to be identified on the image;
the pixel point quantity determining module is used for overlapping the central point of the seal pattern area to be identified with the central point of the target seal image and determining the quantity of the pixel points of the seal pattern area to be identified, which are overlapped with the position of the target seal image;
the matching degree determining module is used for determining the matching degree of the seal pattern to be identified and the target seal image according to the number of the pixel points with the coincident positions;
and the identification module is used for identifying the seal pattern to be identified as the seal of the target seal image if the matching degree is not smaller than a preset threshold value.
In a third aspect, an embodiment of the present invention provides a stamp identifying 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 as in the first aspect of the embodiments described above.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method as in the first aspect of the embodiments described above.
The method determines the area of the seal pattern to be identified on the image by acquiring the image containing the seal pattern to be identified; overlapping the center point of the stamp pattern area to be identified with the center point of the target stamp image, and determining the number of pixel points of which the stamp pattern area to be identified is overlapped with the target stamp image; determining the matching degree of the seal pattern to be identified and the target seal image according to the number of the pixel points with the coincident positions; if the matching degree is not less than the preset threshold value, the pattern of the seal to be identified is the same as the seal of the target seal image. According to the embodiment of the invention, the seal in the contract can be identified, and the automation degree of auditing work is improved.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are needed to be used in the embodiments of the present invention will be briefly described, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a stamp identification method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a stamp identifying method according to another embodiment of the present invention;
FIG. 3 is a schematic view of a stamp area as a vertical projection in accordance with an embodiment of the present invention;
FIG. 4 shows a schematic diagram of rotating a stamp area in accordance with an embodiment of the present invention;
FIG. 5 shows a schematic diagram of adjusting rotation parameters according to an embodiment of the present invention;
fig. 6 is a schematic diagram showing the structure of a stamp identifying apparatus according to an embodiment of the present invention;
fig. 7 shows a hardware configuration diagram of a stamp identifying apparatus of an 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 the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely configured to illustrate the invention and are not configured to limit 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 invention by showing examples of the invention.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 like elements in a process, method, article or apparatus that comprises the element.
The method, apparatus, device and medium for identifying a stamp according to embodiments of the present invention are described in detail below 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 shows a flow chart of a stamp identifying method according to an embodiment of the present invention. As shown in fig. 1, the seal identification method according to the embodiment of the invention includes the following steps:
s110, acquiring an image containing a seal pattern to be identified, and determining the area of the seal pattern to be identified on the image;
s120, overlapping the center point of the seal pattern area to be identified with the center point of the target seal image, and determining the number of pixel points of the seal pattern area to be identified, which are overlapped with the position of the target seal image;
s130, determining the matching degree of the seal pattern to be identified and the target seal image according to the number of the pixel points with the coincident positions;
and S140, if the matching degree is not smaller than a preset threshold value, the seal pattern to be identified is the same as the seal of the target seal image.
According to the embodiment of the invention, the seal in the contract can be identified, and the automation degree of auditing work is improved.
Fig. 2 is a flow chart of a seal identification method according to another embodiment of the present invention. As shown in fig. 2, the seal identification method according to the embodiment of the present invention can be divided into two parts based on functions:
1. extracting content based on edge colors;
2. noise reduction and matching recognition based on images.
1. Color-based content extraction method:
considering that the contract seal is red in practical application, a method is designed, based on the combination detection of seal color and shape characteristics, only specified color edges are detected, and a large number of invalid edges are ignored, so that the difficulty of subsequent work can be greatly reduced. And then, carrying out simple screening according to some basic characteristics of the contract seal to obtain candidate areas.
In the embodiment of the invention, taking a white background red character stamp as an example, the detection of the red and white edges is performed.
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) represent the chrominance H, saturation S, luminance V component of pixel P1 (i, j), respectively. A two-dimensional array P2 (m, n) is provided for storing the image after edge detection. A 3 x 3 window is centered around P1 (i, j).
In HSV space, the constraint of red is: -30< = h <30, s >0.1; the constraint of white is: v >80, S <0.3.
According to the two constraint conditions, the distribution condition of red and white pixel points in the window is counted, and whether the red and white edge points exist or not is judged as follows:
1) P1 (i-1, j-1), P1 (i, j-1), P1 (i+1, j-1) are red pixels, while P1 (i-1, j+1), P1 (i, j+1), P1 (i+1, j+1) are white pixels.
2) P1 (i-1, j-1), P1 (i, j-1), and P1 (i+1, j-1) are white pixels, while P1 (i-1, j+1), P1 (i, j+1), and P1 (i+1, j+1) are red pixels.
If any one of the above conditions is satisfied, it can be considered that P1 (i-1, j), P1 (i, j), P1 (i+1, j) are red and white edge points, let P2 (i-1, j) =p2 (i, j) =p2 (i+1, j) =1, and set the other pixel values in the array P2 corresponding to the window to 0; if none of the above conditions is satisfied, no red and white edge point exists, and all the P2 pixel values corresponding to the window position are set to 0.
Traversing the window through the whole image to obtain a binarized red and white edge image.
And similarly, the detection based on the black and red edges is used for distinguishing the seal from the printed characters.
After the above processing is completed, a plurality of candidate areas are obtained, and the candidate areas need to be screened one by one to obtain a real seal area.
Typically the stamp area should possess these features: the shape is round or square; the size of the seal floats in a certain range; the seal character is red.
And screening the candidate areas based on the characteristics, and entering a noise reduction and comparison stage.
2. The contract chapter image noise reduction and matching recognition method comprises the following steps:
at present, since the number of contracts is not large, 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 level image is used for conversion when preprocessing is performed. Meanwhile, the G component is used for representing, so that the brightness of the converted picture is moderate, and the subsequent recognition is not affected.
After image conversion, the stamp image center is positioned through projections in the horizontal direction and the vertical direction, then stamp image rotation is carried out around the stamp center, finally matching similarity is calculated through the number of matched points and the number of total points, and comparison is completed according to the similarity.
The working steps of determining the circle center of the seal are as follows:
(1) After detecting the seal area and taking the seal area as the seal area, projecting the seal area in two directions of vertical and horizontal, calculating the number of pixel points in each row and each column, and respectively storing the number in arrays Hx and Hy.
(2) The left and right boundaries of the stamp area are found from Hx, assuming Bl and Br, respectively.
(3) The horizontal center of the stamp was calculated from Bl and Br:
Cx=(Bl+Br)/2 (1)
(4) The upper and lower boundaries of the stamp area are found according to Hy, assuming Bu and Bd, respectively.
(5) Calculating the vertical center of the stamp according to Bu and Bd:
Cy=(Bu+Bd)/2 (2)
and (II) rotating and superposing the seal images.
When the seal comparison is carried out, the data of two seal images are read first, and the two images are assumed to be respectively stored in the one-dimensional arrays D1 and D2. Assuming that the image D1 remains unchanged, the two images are compared by rotating the image D2. The main steps of rotating the image D2 are as follows:
(1) The centers of the two images were calculated using the algorithm above, respectively, and the resulting centers were (Cx 1, cy 1) and (Cx 2, cy 2), respectively.
(2) Assuming that the angle to be rotated is θ, the coordinates (x ', y') after (x, y) rotation 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) The centers of two pictures to be compared are arranged at the same position to form an image superposition
And (III) calculating the matching similarity.
Assuming that the image array D2 is changed into D2 "after rotation and translation, the matching similarity can be calculated by directly comparing the brightness of the pixels with the same coordinates.
The matching similarity calculation process is as follows:
(1) Counting the number P1 of black pixel points of the image 1;
(2) Counting the number P2 of black pixels of the image 2;
(3) Counting the number Pcoi of black points with the overlapped 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 maximize P1 and P2
And fourthly, adjusting the rotation parameters to carry out cycle matching checking.
After the primary picture matching is completed according to the algorithm, if the matching is unsuccessful, the picture is rotated by an angle alpha again, and secondary matching is performed. Until one rotation, the number of rotations is z=360/α.
The smaller the rotation angle alpha is, the higher the comparison precision is, but the comparison times and the calculation amount are also greatly increased, and the adjustment can be carried out according to the service requirement.
In the embodiment of the invention, the automatic identification of the position of the chapter for the contract is designed, and then the identification comparison is carried out on the images or the characters in the appointed area, so that the compliance and the accuracy of the chapter for the contract are judged.
Fig. 6 is a schematic diagram showing the structure of a stamp identifying apparatus according to the embodiment of the present invention. As shown in fig. 6, the stamp identifying apparatus according to the embodiment of the present invention includes the following modules:
the seal area determining module 601 is configured to obtain an image including a seal pattern to be identified, and determine an area where the seal pattern to be identified is located on the image;
the pixel point number determining module 602 is configured to coincide a center point of the to-be-identified stamp pattern area with a center point of the target stamp image, and determine the number of pixel points where the to-be-identified stamp pattern area coincides with the target stamp image;
a matching degree determining module 603, configured to determine a matching degree of the to-be-identified seal pattern and the target seal image according to the number of the pixel points with coincident positions;
and the identification module 604 is configured to identify the stamp pattern to be identified as the stamp of the target stamp image if the matching degree is not less than a preset threshold.
In one embodiment of the present invention, the identification module 604 is specifically configured to:
if the matching degree is smaller than a preset threshold value, rotating the to-be-identified seal pattern area by a preset angle based on the central point;
and determining the matching degree of the rotated seal pattern to be identified and the target seal image.
In one embodiment of the present invention, the identification module 604 is specifically configured to:
if the matching degree obtained after rotation is smaller than a preset threshold value, rotating the seal pattern area to be identified on the basis of the center point for a plurality of times according to a preset angle;
and determining the matching degree of the rotated seal pattern to be identified and the target seal image until the seal pattern area to be identified is rotated to the initial position.
In one embodiment of the present invention, the pixel count determining module 602 is specifically configured to:
and determining the center point of the pattern area of the seal to be identified and the center point of the target seal image.
In one embodiment of the present invention, the pixel count determining module 602 is specifically configured to:
projecting the pattern area of the seal to be identified and the target seal image in the horizontal direction and the vertical direction respectively;
determining boundary points of the projected seal pattern area to be identified and the target seal image in the horizontal and vertical directions;
and determining the central point of the pattern area of the seal to be identified and the central point of the target seal image according to the boundary points.
In one embodiment of the present invention, seal area determining module 601 is specifically configured to:
determining a first color of a seal pattern to be identified and a second color of an image;
taking the region where the first color and the second color which meet the first preset condition are located as a candidate region of the seal pattern to be identified;
and taking the candidate region with the shape and the size meeting the second preset condition as the region where the seal pattern to be identified is located.
In one embodiment of the present invention, seal area determining module 601 is specifically configured to:
and converting the pattern area of the seal to be identified into a gray image with preset brightness.
In one embodiment of the present invention, the print matching degree determination module 603 is specifically configured to:
respectively determining the total number of pixel points of a seal pattern area to be identified and a target seal image;
and determining the matching degree of the seal pattern to be identified and the target seal image according to the total number of the pixel points of the seal pattern area to be identified, the total number of the pixel points of the target seal image and the number of the pixel points with the coincident positions.
In one embodiment of the present invention, the print matching degree determination 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 coincident positions; p1 is the total number of pixel points of the target seal image; p2 is the total number of pixel points of the pattern area of the seal to be identified; max (P1, P2) is the maximum value of P1 and P2.
In one embodiment of the present invention, the print matching degree determination module 603 is specifically configured to:
the number of the pixel points with the overlapped positions comprises the number of the black pixel points with the overlapped positions
Fig. 7 shows a schematic hardware structure of a stamp identifying apparatus according to an embodiment of the present invention.
A processor 301 and a memory 302 storing computer program instructions may be included in the stamp identification apparatus.
In particular, the processor 301 may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present invention.
Memory 302 may include mass storage for data or instructions. By way of example, and not limitation, memory 302 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. Memory 302 may include removable or non-removable (or fixed) media, where appropriate. Memory 302 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 302 is a non-volatile solid-state memory. In particular embodiments, memory 302 includes Read Only Memory (ROM). The ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these, where appropriate.
Processor 301 reads and executes the computer program instructions stored in memory 302 to implement any of the stamp identification methods of the above embodiments.
In one example, stamp identification apparatus may further 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 to each other by a bus 310 and perform communication with each other.
The communication interface 303 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiment of the present invention.
Bus 310 includes hardware, software, or both that couple the components of the online data flow billing device to each other. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 310 may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
The seal identification device can execute the seal identification method in the embodiment of the invention, thereby realizing the seal identification method and the device described in connection with fig. 1 and 6.
In addition, in combination with the seal identification method in the above embodiment, the embodiment of the invention may be implemented by providing a computer storage medium. The computer storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the stamp identification methods of the above embodiments.
It should be understood that the invention is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. 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 shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented in 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, a plug-in, a 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 over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, 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 the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure 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, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (12)

1. A method of stamp identification, the method comprising:
acquiring an image containing a seal pattern to be identified, and determining the area of the seal pattern to be identified on the image;
overlapping the central point of the seal pattern area to be identified with the central point of the target seal image, and determining the number of pixel points of the seal pattern area to be identified, which are overlapped with the target seal image;
determining the matching degree of the seal pattern to be identified and the target seal image according to the number of the pixel points with the coincident positions;
if the matching degree is not smaller than a preset threshold value, the seal pattern to be identified is the same as the seal of the target seal image;
the step of obtaining the image containing the seal pattern to be identified and determining the area of the seal pattern to be identified on the image comprises the following steps:
acquiring an image containing a seal image to be identified, and acquiring red and white edge points and black and red edge points in the image through constraint conditions;
performing binarization processing on the image based on the red and white edge points to obtain a red and white edge image, and performing binarization processing on the image based on the black and white edge points to obtain a black and red edge image;
determining the area where the seal pattern to be identified is located on the image based on the red-white edge image and the black-red edge image;
the method further comprises the steps of:
if the matching degree is smaller than a preset threshold value, rotating the seal pattern area to be identified by a preset angle based on the center point;
and determining the matching degree of the rotated seal pattern to be identified and the target seal image.
2. The method according to claim 1, wherein the method further comprises:
if the matching degree obtained after rotation is smaller than the preset threshold value, rotating the seal pattern area to be identified for a plurality of times according to the preset angle based on the center point;
and determining the matching degree of the rotated seal pattern to be identified and the target seal image until the seal pattern area to be identified is rotated to an initial position.
3. The method according to claim 1, wherein the method further comprises:
and determining the center point of the to-be-identified seal pattern area and the center point of the target seal image.
4. A method according to claim 3, wherein said determining the center point of the stamp pattern area to be identified and the center point of the target stamp image comprises:
projecting the pattern area of the seal to be identified and the target seal image in the horizontal direction and the vertical direction respectively;
determining boundary points of the pattern area of the seal to be identified and the target seal image in the horizontal and vertical directions after projection;
and determining the central point of the to-be-identified seal pattern area and the central point of the target seal image according to the boundary points.
5. The method according to claim 1, wherein determining the area of the image where the stamp pattern to be identified is located comprises:
determining a first color of the seal pattern to be identified and a second color of the image;
taking the region where the first color and the second color meet a first preset condition as a candidate region of the seal pattern to be identified;
and taking the candidate region with the shape and the size meeting the second preset condition as the region where the seal pattern to be identified is located.
6. The method according to claim 1, wherein the method further comprises:
and converting the pattern area of the seal to be identified into a gray image with preset brightness.
7. The method according to claim 1, wherein determining the matching degree of the to-be-identified seal pattern and the target seal image according to the number of the pixel points with the coincident positions includes:
respectively determining the total number of pixel points of the seal pattern area to be identified and the target seal image;
and determining the matching degree of the seal pattern to be identified and the target seal image according to the total number of the pixel points of the seal pattern area to be identified, the total number of the pixel points of the target seal image and the number of the pixel points with the coincident positions.
8. The method of claim 7, 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 coincident positions; p1 is the total number of pixel points of the target seal image; p2 is the total number of pixel points of the pattern area of the seal to be identified; max (P1, P2) is the maximum value of P1 and P2.
9. The method of claim 1, wherein the number of positionally coincident pixels comprises a number of positionally coincident black pixels.
10. A seal identification device, said device comprising:
the seal area determining module is used for acquiring an image containing the seal pattern to be identified and determining the area of the seal pattern to be identified on the image;
the pixel point quantity determining module is used for overlapping the central point of the seal pattern area to be identified with the central point of the target seal image and determining the quantity of the pixel points of the seal pattern area to be identified, which are overlapped with the position of the target seal image;
the matching degree determining module is used for determining the matching degree of the seal pattern to be identified and the target seal image according to the number of the pixel points with the coincident positions;
the identification module is used for identifying the seal pattern to be identified as the seal of the target seal image if the matching degree is not smaller than a preset threshold value;
the step of obtaining the image containing the seal pattern to be identified and determining the area of the seal pattern to be identified on the image comprises the following steps:
acquiring an image containing a seal image to be identified, and acquiring red and white edge points and black and red edge points in the image through constraint conditions;
performing binarization processing on the image based on the red and white edge points to obtain a red and white edge image, and performing binarization processing on the image based on the black and white edge points to obtain a black and red edge image;
determining the area where the seal pattern to be identified is located on the image based on the red-white edge image and the black-red edge image;
the device is also for:
if the matching degree is smaller than a preset threshold value, rotating the seal pattern area to be identified by a preset angle based on the center point;
and determining the matching degree of the rotated seal pattern to be identified and the target seal image.
11. A seal recognition apparatus, characterized by comprising: 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 any one of claims 1-9.
12. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-9.
CN201811561408.0A 2018-12-20 2018-12-20 Seal identification method, device, equipment and medium Active CN111353485B (en)

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 CN111353485A (en) 2020-06-30
CN111353485B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
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
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
CN116757886B (en) * 2023-08-16 2023-11-28 南京尘与土信息技术有限公司 Data analysis method and analysis device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0440137A2 (en) * 1990-01-30 1991-08-07 Yozan Inc. Position adjustment system
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AUPS282902A0 (en) * 2002-06-07 2002-06-27 Pak Technologies Group Pty Ltd Flexible pouch, filling and heat sealing line for flexible pouches, and containers for supporting and moving the flexible pouches

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0440137A2 (en) * 1990-01-30 1991-08-07 Yozan Inc. Position adjustment system
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 (1)

* Cited by examiner, † Cited by third party
Title
周毅 ; .荷花画图像模式与杭州城市形象传播.浙江传媒学院学报.2016,(第02期),第75-78页. *

Also Published As

Publication number Publication date
CN111353485A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN111353485B (en) Seal identification method, device, equipment and medium
US20120268606A1 (en) Device for registering and managing book based on computer vision and radio frequency identification technique
US9582728B2 (en) System for determining alignment of a user-marked document and method thereof
US20110085732A1 (en) Qr code processing method and apparatus thereof
CN111259891B (en) Method, device, equipment and medium for identifying identity card in natural scene
CN108932449B (en) Bar code binarization method and system based on clustering
DK2447884T3 (en) A method for the detection and recognition of an object in an image and an apparatus and a computer program therefor
CN108734849B (en) Automatic invoice true-checking method and system
CN111784675A (en) Method and device for processing article texture information, storage medium and electronic equipment
CN108182691B (en) Method and device for identifying speed limit sign and vehicle
CN114387591A (en) License plate recognition method, system, equipment and storage medium
CN111914845A (en) Character layering method and device in license plate and electronic equipment
CN113283439B (en) Intelligent counting method, device and system based on image recognition
CN111223078A (en) Method for determining defect grade and storage medium
Hossen et al. Vehicle license plate detection and tilt correction based on HSI color model and SUSAN corner detector
CN111178359A (en) License plate number recognition method, device and equipment and computer storage medium
KR101741758B1 (en) A Real-time Face Tracking Method Robust to Occlusion Based on Improved CamShift with Depth Information
CN114445499A (en) Checkerboard angular point automatic extraction method, system, equipment and medium
CN111460198B (en) Picture timestamp auditing method and device
CN115761270A (en) Color card detection method and device, electronic equipment and storage medium
CN111402185A (en) Image detection method and device
CN113689378B (en) Determination method and device for accurate positioning of test strip, storage medium and terminal
CN114219760A (en) Reading identification method and device of instrument and electronic equipment
CN113780492A (en) Two-dimensional code binarization method, device and equipment and readable storage medium
CN108665439B (en) Substrate detection method 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