2014-01-21 110 views
-3

在我的項目中,我應該做人臉檢測。我成功了,但現在我想在其中進行特徵提取。那麼是否有任何算法來做到這一點?圖像和圖像處理中的特徵提取

+1

特徵提取可能意味着很多不同的東西。你必須更具體地說明你正在做什麼。 – Dima

+0

您是否在使用工具包?你究竟想達到什麼目的? – Mailerdaimon

回答

3

Here您有使用OpenCV進行功能檢測的教程。有很多特徵檢測算法(請參見Wikipedia)。 OpenCV教程向您展示了一個使用SURF功能的例子。例子中的主要部分是這樣的:

SurfFeatureDetector detector(400); 
std::vector<KeyPoint> keypoints_1; 
detector.detect(img_1, keypoints_1); 

keypoints_1你有更相關的點。那麼我相信你將需要描述一個補丁。 我建議按照this tutorial這樣做。代碼的主要部分是這樣的:

//vector of keypoints 
vector<cv::KeyPoint> keypointsS; //keypoints for scene 
//Descriptor matrices 
Mat descriptors_scene; 

SurfDescriptorExtractor extractor; 
extractor.compute(sceneMat, keypointsS, descriptors_scene); 
+0

我不明白你的意思。 – chopu

+0

@ user3218797我編輯了答案。希望它可以幫助 – phyrox

+0

k ..thanks.i會嘗試它 – chopu