Home > other >  How to judge whether the picture tilts?
How to judge whether the picture tilts?

Time:02-19

How to judge whether the picture tilts?

CodePudding user response:

Conventional method is mainly in the picture a few lines, the average Angle is greater than a certain value, tilt, the use of opencv, generally is the process of the threshold () after image binarization, the Canny operator for edge detection, through HoughLinesP will () to a linear polar coordinates, and then calculate the average line Angle.
  • Related