Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Rectangular seal positioning method and device aiming at certificate image

A technology of rectangle detection and seal, applied in the field of image recognition, can solve the problems of easy destruction of rectangular shape features, non-linear false detection, and small number of votes on short sides, etc., achieve simple edge extraction and reduce the probability of false detection, The effect of improving the detection accuracy

Active Publication Date: 2015-06-24
京北方信息技术股份有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the application of seal detection, the length of the rectangular edge segment itself has certain limitations. The method of voting separately and connecting straight lines in multiple sub-images will cause the rectangular edge to be missed, and the rectangle cannot be detected.
[0012] In addition, in the seal image, the rectangular shape feature is easily destroyed
For example, due to the smearing of the stamp, the abrasion of the stamp itself, etc., the rectangle in the image will have rounded corners and incomplete sides, especially the short side of the rectangle is prone to incompleteness
For these pictures, when Hough votes, there will be too few votes on the short side, resulting in missed detection of straight lines. If the threshold setting is changed, non-linear lines will be falsely detected as straight lines.
Then the method of extracting four peaks after Hough transform will cause inaccurate detection because the two peaks corresponding to the short side do not appear.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Rectangular seal positioning method and device aiming at certificate image
  • Rectangular seal positioning method and device aiming at certificate image
  • Rectangular seal positioning method and device aiming at certificate image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] This embodiment provides a rectangle detection method for stamp images, figure 1 The flow chart of the rectangular detection method for the seal image described in this embodiment, as figure 1 As shown, the rectangle detection method for seal images provided in this implementation mainly includes the following steps:

[0065] S101, sequentially determine whether the color of each pixel in the original image is the color of the designated seal, and generate a binary image of the original image;

[0066] First, extract the specified stamp color, such as red, define a ForegroundImage(i,j) with the same size as the original image, traverse the original image, take the RGB values ​​r, g, and b of the current pixel, and calculate the average:

[0067] avrval = ( r + g + b ) 3

[0068] Calculate the col...

Embodiment 2

[0120] This embodiment provides a rectangular detection device for stamp images, image 3 It is a structural block diagram of the rectangular detection device for stamp images described in this embodiment, see image 3 , the rectangular detection device for the seal image provided in this implementation includes:

[0121] Binary image generating module 301, judges whether the color of each pixel point in the original image is the color of the designated seal in turn, generates the binary image of the original image;

[0122] Whether the color of each pixel point in the described judgment original image is the color of designated seal comprises: get the RGB value of current pixel point, calculate color variance value, judge whether described variance value is less than preset variance threshold value, if then judge The pixel is a background point, otherwise it is determined whether the chromaticity value of the pixel is within a preset chromaticity range, if so, it is determin...

Embodiment 3

[0130] This embodiment provides a method for locating a rectangular seal aimed at a voucher image, Figure 4 It is the flow chart of the rectangular seal positioning method for the voucher image described in this embodiment, as Figure 4 As shown, the positioning method of the rectangular seal for the voucher image provided by this implementation is as follows:

[0131] S401, sequentially determine whether the color of each pixel in the original image is the color of the designated seal, and generate a binary image of the original image;

[0132] This step is the same as step S101 described in the first embodiment, and will not be repeated here.

[0133] S402. Generate an edge binary image EdgeImage(i,j) according to the binary image;

[0134] This step is the same as step S102 described in the first embodiment, and will not be repeated here.

[0135] S403, setting a square window with a side length of M, the initial position of the window is the upper left corner of the ed...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a rectangular seal positioning method and a device aiming at a certificate image. The method comprises the following steps of: S1, sequentially judging whether a color of each pixel in an original image is the color of a specified seal, and generating a binary image of original image; S2, generating an edge binary image based on the binary image; S3, setting a window, judging whether a total amount of a foreground ponit in the window in the edge binary image is less than a preset noise threshold, if so, moving the window to rejudge in the edge binary image, if not, calculating a center of gravity of the foreground ponit, and determining whether the centre of gravity is within a preset area, if so, determining that positioning is carried out successfully, and recording the edge binary image in the window, if not, moving the window in the edge binary image and rejudgeing. According to the method and device, some characteristics of a seal image are considered, a foreground image with a specified color is extracted, and the window is set to slid to intercept a rectangle to initially judge a position of the rectangle in the whole image, so that rectangle detection aiming at the seal image in a later period can be carried out within a small scope, and probability of false detection and a calculated amount are reduced.

Description

technical field [0001] The invention relates to the technical field of image recognition, in particular to a method and device for detecting a rectangle of a stamp image. Background technique [0002] There will be stamps of various shapes and sizes in the voucher image. In the processing of the voucher image, it is necessary to use various shape detection methods to detect whether there is a stamp of a specified shape in the voucher image. In addition, while detecting, it needs to be distinguished from seals of other shapes. Among them, the rectangular seal is difficult to detect because of the uncertain rotation angle when stamping. [0003] Since a rectangle cannot be expressed by a single analytical formula like a circle, in the current general shape detection method, the detection of a rectangle must first be detected by a straight line. Generally, rectangle detection can be summarized as the following steps: [0004] First, extract the edge map. Edge detection oper...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06K9/32
Inventor 代克非高昊江刘冠强
Owner 京北方信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products