![](/img/trans.png)
[英]python 2.7 interpreter exits when calling opencv's SURF detect keypoints
[英]How to access SURF's KeyPoints' characteristic scales and dominant orientations in python?
我正在閱讀題為“圖像檢索的局部幾何一致性約束”的論文。 作者介紹了一種使用局部幾何一致性使匹配的SFIT點正確的方法。 該方法需要點的特征尺度和主導方向。
在python中,我使用opencv提取SURF關鍵點。 如何獲得點的特征尺度和主導方向?
使用以下工具創建SURF特征提取器
surf = cv2.xfeatures2d.SURF_create()
kpu, desu = surf.detectAndCompute(image, None)
關鍵點存儲在kpu中,現在您可以執行以下操作:
for i in range(len(kpu)):
point = kpu[i].pt
print("your point here", point)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.