Skip to content

Instantly share code, notes, and snippets.

@emnak
Last active July 12, 2019 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emnak/b1b4a8214a8a0a3098c97a99caf53859 to your computer and use it in GitHub Desktop.
Save emnak/b1b4a8214a8a0a3098c97a99caf53859 to your computer and use it in GitHub Desktop.
import numpy as np
import cv2 as cv
img = cv.imread('image.jpg')
gray= cv.cvtColor(img, cv.COLOR_BGR2GRAY)
akaze = cv.AKAZE_create()
kp, descriptor = akaze.detectAndCompute(gray, None)
img=cv.drawKeypoints(gray, kp, img)
cv.imwrite('keypoints.jpg', img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment