2017-02-26 67 views
0

this是我的教程following.I已成功地應用到我的問題陳述also.and其成功地檢測我want.But我想訓練的同一要使用系統用於檢測其他圖像also.While檢測其他圖像我不想系統得到培訓again.Is它possible.I是這麼認爲的。我可以看到有一個具有訓練steps.Any幫助數據請一個XML文件。 謝謝進階如何在新的圖像測試提供一個培訓是爲了系統

回答

1

你需要更好的解決您的問題。根據我的理解,你只是訓練了一個分類器來檢測一個對象。現在您想使用訓練的文件來檢測其他圖像中的對象。

det = vision.CascadeObjectDetector('nameOfYourTrainedFile.xml'); 
img = imread('image.jpg'); % load an instance of your object 
bbox = step(det,img); % search for the object 
obj = insertObjectAnnotation(img,'rectangle',bbox); % mark it 
figure; imshow(obj); % display it