def TestFeaturesMask(): img = cv2.imread("../img/s01.jpg") ff = Frame(img, True) #gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) mask = np.zeros(img.shape[:2], np.uint8) mask[200:500, 0:300] = 1 kp = ff.detectKeyPoints(mask=mask) ff.showDetectedKeyPoints()
def TestFeatures(): img = cv2.imread("../img/s01.jpg") f = Frame(img, True) kp = f.detectKeyPoints() f.showDetectedKeyPoints()