コード例 #1
0
ファイル: tests.py プロジェクト: dtbinh/opencv-fun
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()
コード例 #2
0
ファイル: tests.py プロジェクト: dtbinh/opencv-fun
def TestFeatures():
    img = cv2.imread("../img/s01.jpg")
    f = Frame(img, True)
    kp = f.detectKeyPoints()

    f.showDetectedKeyPoints()