Rectangle detecting method and device for stamp images

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

Active Publication Date: 2015-06-24
山东京北方金融科技有限公司
View PDF5 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
  • Rectangle detecting method and device for stamp images
  • Rectangle detecting method and device for stamp images
  • Rectangle detecting method and device for stamp images

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 rectangle detecting method and device for stamp images. The method comprises the following steps of: judging whether the color of each pixel point in an original image is consistent with the color of an appointed stamp in sequence, thus generating a binary image of the original image, and further, generating a boundary binary image according to the binary image; carrying out Hough vote on the boundary binary image, and extracting two peak straight lines which are judged as the two long edges of a stamp; and further, carrying out Hough vote in the vertical direction of the two long edges between the two long edges, and further judging extracted two peak straight lines as the two short edges of the stamp. According to the rectangle detecting method and device, some characteristics of the stamp images are considered, the conventional method that four peak values are selected from one Hough vote is improved to that peak values are selected in different steps by the divided Hough vote, and thus the accuracy on detection of rectangular stamps is improved in practical application.

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): G06T7/00
Inventor 代克非高昊江
Owner 山东京北方金融科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products