可以将cv2.polylines框添加到ORB中吗?

时间:2016-04-20 19:59:00

标签: python opencv orb

如何在trainimage周围添加透视跟踪框?

我正在使用ORB:

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

img1 = cv2.imread('box.png',0)          # queryImage
img2 = cv2.imread('box_in_scene.png',0) # trainImage

# Initiate SIFT detector
orb = cv2.ORB()

# find the keypoints and descriptors with SIFT
kp1, des1 = orb.detectAndCompute(img1,None)
kp2, des2 = orb.detectAndCompute(img2,None)

我可以在ORB中绘制这样的框:enter image description here

0 个答案:

没有答案