mercredi 20 juillet 2016

OpenCV: drawKeypoints() in Python vs. Julia

I'm rewriting this OpenCV program in Julia:

import numpy as np
import cv2
from matplotlib import pyplot as plt

img = cv2.imread('simple.jpg',0)

# Initiate STAR detector
orb = cv2.ORB()

# find the keypoints with ORB
kp = orb.detect(img,None)

# compute the descriptors with ORB
kp, des = orb.compute(img, kp)

# draw only keypoints location,not size and orientation
img2 = cv2.drawKeypoints(img,kp,color=(0,255,0), flags=0)
plt.imshow(img2),plt.show()

How do I convert this line in Python

img2 = cv2.drawKeypoints(img, kp, color=(0,255,0), flags=0)

to Julia format?

Aucun commentaire:

Enregistrer un commentaire