Skip to content

Instantly share code, notes, and snippets.

View tshanmukh's full-sized avatar
🎯
Focusing

Shanmukh Thummala tshanmukh

🎯
Focusing
  • Ciena India
  • Bengaluru
View GitHub Profile
@tshanmukh
tshanmukh / ORB-visualize.py
Last active October 19, 2021 20:34
Implements a function to detect the keypoints using the ORB algorithm in opencv
# importing copy as we have to copy the same image to different instances to visualize
import copy
plt.rcParams['figure.figsize'] = [14.0, 7.0]
# Set the parameters of the ORB algorithm by specifying the maximum number of keypoints to locate and
# the pyramid decimation ratio
orb = cv2.ORB_create(200, 2.0) # refer the opencv page for available arguments and usages
# computing the keypoints using the detectandcompute method, this accepts a grey scale image and None parameter
# is to let the ORB know we are not using any mask