Straight line detection method and system, image processing equipment and storage medium
The embodiment of the invention discloses a straight line detection method and system, image processing equipment and a storage medium. The straight line detection method comprises the steps of obtaining a to-be-processed image including a target object and a rectangular detection frame set by a use...
Saved in:
Main Authors | , , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
15.04.2022
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The embodiment of the invention discloses a straight line detection method and system, image processing equipment and a storage medium. The straight line detection method comprises the steps of obtaining a to-be-processed image including a target object and a rectangular detection frame set by a user for the to-be-processed image, cutting the to-be-processed image according to the rectangular detection frame to obtain a target image, and obtaining an edge contour of the target object according to the target image; generating a group of parallel straight lines according to the two wide edges of the rectangular detection frame, wherein the group of parallel straight lines are parallel to the two wide edges and are equal in length; performing intersection operation on the group of parallel straight lines and the edge contour to obtain an intersection point set, and selecting target intersection points meeting preset requirements in the intersection point set; and obtaining a target straight line corresponding to |
---|---|
Bibliography: | Application Number: CN202111546725 |