[英]How do I get a curve point on a line?
您也可以使用OpenCV
檢測角點
import cv2
image = cv2.imread('./test.jpg')
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# Detect corners in the image
corners = cv2.goodFeaturesToTrack(gray, 500, qualityLevel=0.01, minDistance=20)
for c in corners:
x, y = c.reshape(2)
print(x, y)
# draw a circle around the detected corner
cv2.circle(image, (x, y), radius=4, color=(0, 255, 120), thickness=2)
cv2.imshow("Result", image)
cv2.waitKey(0)
結果:
有關更多詳細信息,請查看這些文檔:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.