Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Can HOG to work with BoW'2 with SVM or OSVM #365

Closed
gkomix88 opened this issue Dec 29, 2016 · 6 comments
Closed

Can HOG to work with BoW'2 with SVM or OSVM #365

gkomix88 opened this issue Dec 29, 2016 · 6 comments

Comments

@gkomix88
Copy link

Hi Ceasar and All,

Thanks for the great work in Accord.NET! It make everything sound possible :)

I m currently trying to apply object recognition using HOG with Bag of Visual Words and classifier by SVM or OSVM. However, it seem the HOG could not work with the BoW'2 class. For instance,

var kmodes = new KModes(numberOfWords, new Hamming());
var detector = new HistogramsOfOrientedGradients(9, 3, 6);
var hogBow = new BagOfVisualWords<FeatureDescriptor, double[]>(detector, kmodes);
hogBow.Compute(TrainImages.Values.ToArray());

Could anyone assist on this case? Thanks in advance.

@cesarsouza
Copy link
Member

Hi there,

I will soon commit some changes that will facilitate the use of HOG and other feature extractors in the BoW framework. Sorry for the delay in answering though.

Regards,
Cesar

@cesarsouza
Copy link
Member

cesarsouza commented Jan 4, 2017

Changes committed in e185da9

A new pre-release package will be available on NuGet soon.

@gkomix88
Copy link
Author

gkomix88 commented Jan 4, 2017

Thanks! Cesar. Will try it now.

@hzawary
Copy link
Contributor

hzawary commented Jan 13, 2017

Hi everybody :)

Is also there a way to use another descriptors such Haralick textural feature extractor or LBP and clustering algorithms such as SOM in BoW?!

Best,
H.Zavvari

@cesarsouza
Copy link
Member

Hi Zawari,

Yes, it should have been possible to use any descriptor or clustering algorithms in BoW. However, some algorithms like SOM still haven't been updated to use the more recent clustering/classifier interfaces, and as such will not work yet.

Haralick should work though, but I am not sure if I have written a test to confirm yet.

Regards,
Cesar

cesarsouza added a commit that referenced this issue Feb 19, 2017
GH-365: Updating LBP to work with BoW;
@cesarsouza
Copy link
Member

Fixed in 3.5.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants