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.