how to use the CascadeObjectDetector of Matlab?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
lu
am 26 Mär. 2015
Beantwortet: Dima Lisin
am 26 Mär. 2015
Hello,every friend. I have come accross a problem when useing the CascadeObjectDetector function of Matlab. Could anyone help me?
My qustion can be described as follows: I want to detect craters by the CascadeObjectDetector. I have two sets of images:the positive images (57 craters images with different size), and the negative images (85 non-craers images with different size). Then how can I use this CascadeObjectDetector to obtain a classifier? My code is like this

and this is the data.mat However, it could work.

It confuced me a lot. I really need your help.Please help me!Thank you very much!
0 Kommentare
Akzeptierte Antwort
Dima Lisin
am 26 Mär. 2015
Hi Lu,
The trainCascadeObjectDetector function creates an XML file containing the classifier parameters. In the code you've shown, the file will be named 'stopSignDetector.xml', so you should probably name it something else, like 'craterDetector.xml'. You can then create a vision.CascadeObjectDetector object using this XML file, as follows:
detector = vision.CascadeObjectDetector('craterDetector.xml');
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing and Computer Vision finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!