Rectangular seal positioning method and device aiming at certificate image
A positioning method and positioning device technology, applied in the field of image recognition, can solve the problems of easy destruction of rectangular shape features, non-linear misdetection, and small number of votes on short sides, etc., achieve simple edge extraction and reduce the probability of false detection , Improve the effect of detection accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example Embodiment
[0063] Example one
[0064] This embodiment provides a rectangle detection method for seal images, figure 1 The flowchart of the rectangle detection method for the seal image described in this embodiment is as follows: figure 1 As shown, the rectangle detection method for seal images provided in this implementation mainly includes the following steps:
[0065] S101, sequentially determining whether the color of each pixel in the original image is the color of the designated seal, and generating a binary image of the original image;
[0066] First, extract the specified seal color, such as red, define a ForegroundImage(i,j) equal in size to the original image, traverse the original image, take the RGB values r, g, b of the current pixel, and find the average:
[0067] avrval = ( r + g + b ) 3
[0068] Calculate the color variance value of this pixel:
[0069] varval = ( r - avrval ) 2 + ( g - avrval ) 2 + ( b ...
Example Embodiment
[0119] Example two
[0120] This embodiment provides a rectangle detection device for seal images, image 3 It is the structural block diagram of the rectangle detection device for seal images in this embodiment, see image 3 , The rectangular detection device for seal images provided in this implementation includes:
[0121] Binary image generation module 301, which sequentially determines whether the color of each pixel in the original image is the color of the designated seal, and generates a binary image of the original image;
[0122] The judging whether the color of each pixel in the original image is the color of the designated seal includes: taking the RGB value of the current pixel, calculating the color variance value, judging whether the variance value is less than a preset variance threshold, and if so, judging The pixel point is a background point, otherwise it is determined whether the chromaticity value of the pixel point is within a preset chromaticity range, if it is...
Example Embodiment
[0129] Example three
[0130] This embodiment provides a rectangular seal positioning method for voucher images, Figure 4 It is the flowchart of the rectangular seal positioning method for the voucher image in this embodiment, such 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 determining whether the color of each pixel in the original image is the color of the designated seal, and generating 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. Set a square window with a side length of M, the initial position of the window is the upper left corner of the edge im...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap