pande
[讀書學習] 《AIOT與OpenCV實戰應用:Python、樹莓派、物聯網與機器視覺》
第三篇 OpenCV
. 3-16 多邊形凹凸點計算
.   » cv2.convexHull( ) 取凸包
.   » cv2.convexityDefects( ) 凸性缺陷

[複習] cv2.drawContours( ) 繪製輪廓
[複習] cv2.approxPolyDP( ) 取多邊形(直線化)
[延伸] NumPy.shape 回傳tuple,矩陣各維長度

Raspberry_pi Python
pande
[數學/高階幾何] 凸包
Convex Hull - 演算法筆記
pande
cv2.convexHull(cnt, returnPoints=False) 取凸包
CV | 计算几何之凸包(cv2.convexHull)-CSDN博客
cnt: NumPy, 輪廓/多邊形
returnPoints: 回傳形式
-True: 回傳點座標
-False: 回傳座標資料組cnt的index
pande
cv2.convexityDefects(cnt, hull) 凸性缺陷
用opencv检测convexity defects_"namedwindow(\"hull demo\...
「每個convexity defect區域有四個特徵量:起始點(startPoint),結束點(endPoint),距離convexity hull最遠點(farPoint),最遠點到convexity hull的距離(depth)」

cnt: NumPy, 輪廓/多邊形
hull: NumPy, 凸包
pande
載入新的回覆