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

Angle Detection Algorithm Based on Triangle Similarity Theorem

An angle detection and triangle technology, applied in computing, computer parts, instruments, etc., can solve the problems of large amount of calculation and high memory occupation, and achieve the effect of simplifying the processing process, improving efficiency and saving system space.

Active Publication Date: 2019-06-14
杭州朔天科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Although the above two methods have high detection accuracy, they have a large amount of calculation and high memory usage, and have certain requirements for the configuration of the operating platform. For some operating platforms with low configuration, the above methods cannot be fully applied

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
  • Angle Detection Algorithm Based on Triangle Similarity Theorem
  • Angle Detection Algorithm Based on Triangle Similarity Theorem
  • Angle Detection Algorithm Based on Triangle Similarity Theorem

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be further described below in conjunction with accompanying drawing.

[0027] The present invention takes the scanned image of a business card as an example. First, binarize the input image, obtain the upper and lower edge curves of the image by projection method, select a corresponding curve in the upper and lower edge curves, and judge whether the selected two curves are located on the edge curve of the rectangular image, and then Then select a curve to calculate the slope angle of the business card.

[0028] Such as figure 1 As shown, the system receives a scanned business card image, and only needs the single-channel data of its grayscale image or color image to detect the sine and cosine values ​​of its inclination angle θ.

[0029] Such as figure 2 As shown, the entire image is divided into several blocks (patch), each block (patch) contains n*n pixels, and the patch on the right and bottom of the image is less than n*n pixels, do no...

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 an angle detection algorithm based on similar triangles, comprising the following steps: Step 1, image binarization; Step 2, performing expansion operation on the generated binarized image to highlight edge curves; Step 3, binarizing the binary image Project the image from top to bottom and from bottom to top to obtain the upper and lower edge curves of the image respectively, and obtain the effective point start address and end address of the first effective line of the upper and lower edge curves respectively; step 4, combine the upper and lower edge curves Form a complete rectangular edge curve for processing, respectively select a line segment with the same abscissa coordinates on the left side of the starting address of the upper and lower edge curves of the image; determine whether the angle between the two curves is a right angle, and whether the selected two curves are located at the edge of the image An effective curve on the curve; step five, select a line segment that meets the requirements, use the fast reciprocal square root algorithm and the Pythagorean theorem to calculate the reciprocal of the hypotenuse, and then obtain the sine and cosine values ​​of the inclination angle.

Description

technical field [0001] The invention belongs to the field of angle detection, in particular to an angle detection algorithm based on the triangle similarity theorem. Background technique [0002] In today's life, ID cards, business cards and other documents are often used for copying and faxing. Due to human operation, many scanned images will appear tilted, and these tilts will affect the layout analysis of business cards, etc. , character recognition and copying will cause adverse effects, so it is necessary to detect the tilt angle of the tilted image, and then perform image correction according to the tilt angle. [0003] In practical applications, most of the existing image tilt angle detection technologies first filter and binarize the input image to obtain a binarized image, clearly reflect the edge of the image, and then pass Hough Algorithms such as operator, Sobel operator, and least square method analyze the edge curve of the image, and finally obtain the image t...

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
CPCG06V10/243
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