opencv 之 cv2.minAreaRect angle角度問題

經過經驗總結和反覆的trials and errors, 終於搞清楚了opencv中的 rotation angle角度問題。具體來講,rotation angle 範圍爲[-90, 0), 具體角度測算方法可以分爲兩個步驟(如下圖): 1. x軸逆時針旋轉到最近鄰近邊,該旋轉角即爲angle 2. 鄰近x軸的邊即爲矩形的寬,另一邊爲height 原理圖如下圖:
相關文章
相關標籤/搜索