Automatic Vehicle Classification using Center Strengthened ...
Vehicle Classification
-
Upload
syed-owais-ali-chishti -
Category
Education
-
view
62 -
download
1
Transcript of Vehicle Classification
![Page 1: Vehicle Classification](https://reader036.fdocuments.us/reader036/viewer/2022062401/5899944d1a28ab30328b6395/html5/thumbnails/1.jpg)
VEHICLE CLASSIFICATION
Owais ChishtiZerk ShabanShaleem JohnFaisal UsmanFarman Ali
![Page 2: Vehicle Classification](https://reader036.fdocuments.us/reader036/viewer/2022062401/5899944d1a28ab30328b6395/html5/thumbnails/2.jpg)
USING EDGE DETECTION img = imfilter(img, fspecial('laplacian')); Black and white image with edges
img = imfilter(img, fspecial('sobel')); High horizontal edges
img = threshold(img, 200, 0); Apply threshold at 200
img = bwareaopen(img, 30); Remove noise in 30x30 grid
We get a image with shadow highlighted.
![Page 3: Vehicle Classification](https://reader036.fdocuments.us/reader036/viewer/2022062401/5899944d1a28ab30328b6395/html5/thumbnails/3.jpg)
USING BAG OF FEATURES What is bag of words/features? Image features as words Occurrence
Processing Steps Feature detection Feature description - SURF Codebook/Dictionary
bagOfFeatures.m Extract image features
Types Find Texture – Similar chunk of images Point of Interest
![Page 4: Vehicle Classification](https://reader036.fdocuments.us/reader036/viewer/2022062401/5899944d1a28ab30328b6395/html5/thumbnails/4.jpg)
FREQUENCY IN ARTICLE
![Page 5: Vehicle Classification](https://reader036.fdocuments.us/reader036/viewer/2022062401/5899944d1a28ab30328b6395/html5/thumbnails/5.jpg)
GENERATING IMAGE CLASSIFIER SVM – Support Vector Machine Supervised learning Bag of features Plot features to graph Separate features through a line
![Page 6: Vehicle Classification](https://reader036.fdocuments.us/reader036/viewer/2022062401/5899944d1a28ab30328b6395/html5/thumbnails/6.jpg)
SOURCE CODE imgSets = imageSet('c:/data-set', 'recursive'); [trainingSets, testSets] = partition(imgSets, 0.3, 'randomize'); bag = bagOfFeatures(trainingSets); categoryClassifier = trainImageCategoryClassifier(trainingSets, bag); confMatrix = evaluate(categoryClassifier, testSets)
Taken from: https://www.mathworks.com/help/vision/ref/trainimagecategoryclassifier.html
![Page 7: Vehicle Classification](https://reader036.fdocuments.us/reader036/viewer/2022062401/5899944d1a28ab30328b6395/html5/thumbnails/7.jpg)
![Page 8: Vehicle Classification](https://reader036.fdocuments.us/reader036/viewer/2022062401/5899944d1a28ab30328b6395/html5/thumbnails/8.jpg)
REFERENCES https://en.wikipedia.org/wiki/Support_vector_machine https://en.wikipedia.org/wiki/Speeded_up_robust_features https://en.wikipedia.org/wiki/Bag-of-words_model_in_computer_vision
http://www.cs.unc.edu/~lazebnik/spring09/lec18_bag_of_features.pdf