def detect(self, image):
harrisResponse = cv2.cornerHarris(image,
self._block_size,
self._aperture_size,
self._alpha)
points = np.argwhere(harrisResponse > harrisResponse.max() * self._quality_level)
return [cv2.KeyPoint(point[0], point[1], self._feature_size) for point in points]
评论列表
文章目录