def detect_keypoints(self, frame):
"""Detect
Parameters
----------
frame : np.array
Image frame
debug : bool
Debug mode (Default value = False)
Returns
-------
results : list of KeyPoint
List of KeyPoints
"""
# Detect
keypoints = self.detector.detect(frame)
results = [KeyPoint(kp.pt, kp.size) for kp in keypoints]
return results
评论列表
文章目录