Introduction - If you have any usage issues, please Google them yourself
The boundaries of each object in increments of about 3 to rotate within the 90 range. Each rotation time recording the maximum and minimum x, y values of a circumscribed rectangle boundary point coordinates its direction. Rotate to a certain angle, the external area of a rectangle to a minimum. Take the smallest rectangle circumscribed parameters for the length and width of the spindle sense.