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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com