Train a Stop Sign Detector Using an ACF Object Detector
训练ACF检测器检测停止交通标志
Use the trainACFObjectDetector
with training images to create an ACF object detector that can detect stop signs. Test the detector with a separate image.
用trainACFObjectDetector和训练图像,做一个检测停止标志的ACF检测器,然后用另外的图像进行测试;
Load the training data.
load('stopSignsAndCars.mat')
Select the ground truth for stop signs. These ground truth is the set of known locations of stop signs in the images.
选择停止标志的真实数据,这些真实数据是图像中已知的停止标志的坐标位置;
stopSigns = stopSignsAndCars(:,1:2);
Add the full path to the image files.
添加训练图像的路径;
stopSigns.imageFilename = fullfile(toolboxdir('vision'),...
'visiondata',stopSigns.imageFilename);
Train the ACF detector. You can turn off the training progress output by specifying ‘Verbose’,f