Ask Your Question

asadabbas057's profile - activity

2016-12-12 03:26:24 -0500 asked a question How to access surf features in opencv ?
surf = cv2.xfeatures2d.SURF_create()

but could not find these then after some search came to know that they have moved to opencv_contrib. So can anyone tell me how to compile opencv that has these features in windows.

2016-12-12 03:15:12 -0500 received badge  Supporter (source)
2016-12-11 02:24:56 -0500 asked a question How to calculate Essential Matrix?

I have used used BRISK features for feature matching as shown in code below and now want to calculate Essential Matrix can you let me know how to do it.I would like the detailed answers.

import cv2
import matplotlib.pyplot as plt
img1 = cv2.imread('D:\IMG_0112.jpg', 0)
img2 = cv2.imread('D:\IMG_0113.jpg',0)
kp1, des1 = brisk.detectAndCompute(img1,None)
kp2, des2 = brisk.detectAndCompute(img2,None)
bf= cv2.BFMatcher()
matches = bf.knnMatch(des1,des2,k=2)