2016-05-08 82 views
1

我試圖偵測的利益點(關鍵點)在作爲指紋識別munitiaes:opencv的cornerHarris錯誤

import cv2 as cv 
import numpy as np 
input = cv.imread("C:\Users\ADNAN\Desktop\FingClass.png"); 
input2 = cv.threshold(input,127,255,cv.THRESH_BINARY)[1]; 
dst = cv.cornerHarris(input2,2,3,0.04); 

但cornerHarris拋出一個錯誤,我不明白

cv2.error: C:\builds\master_PackSlaveAddon-win32-vc12èstativ\opencv\modules\imgproc\src\corner.cpp:287: rror: (-215) src.type() == cv_8uc1 || src.type() == cv_32FC1 in function cv::cornerEigenValsVecs 

回答