0
我在茱莉亚重写这个OpenCV的程序:的OpenCV:drawKeypoints()在Python与朱莉娅
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()
如何转换这条线在Python
img2 = cv2.drawKeypoints(img, kp, color=(0,255,0), flags=0)
朱莉娅格式?
请包括MWE。 这可以复制并直接粘贴到python解释器并运行。 包括导入语句。没有那件事,我们只能猜测你在说什么。 例如,cv2是一个opencv绑定?谁知道。 –
是的,cv2是Python中的一个类(需要成为Julia中的一个类型)或现有的库导入等。没有足够的信息来帮助这里。 – Dan
对不起,希望我的编辑能帮到您 – haxtar