royshil / foodcamclassifier Goto Github PK
View Code? Open in Web Editor NEWA Bag of Visual Words food classifier for Media Lab's FoodCam
A Bag of Visual Words food classifier for Media Lab's FoodCam
Thank you for such nice work!
In test_classifiers.cpp, when we calculate the confusion matrix, we set the row index to the predicted class "max_class[0]" and the column index to one of the true class "classes_[0]". Should it be the other way around?
if(j_==classes_.size()) //no hit was found, just use any class
confusion_matrix[max_class[0]][classes_[0]]++;
Hey,
The text files test.txt and training.txt seem to be different version compared to the dataset. A lot of images don't exist and a lot of images are not being used.
In predict_common.cpp in the function initSVMS it is trying to load a file 'SVM_classifier_with_color'. For the classification to work these files seem critical yet I cannot see them anywhere.
The dataset is not available anymore. I just checked the link:
http://web.media.mit.edu/~roys/shared/foodcamimages.zip
I am going to develop object detection project.I want to need classify my objects.How can i takthis code support.please advice me
Hello, Roy! In the training of SVM part, I'm getting an error saying CvSVM is private and train member cannot be accessed. I changed map<string,CvSVM> classes_classifiers to map<string,unique_ptr> classes_classifiers, then classes_classifiers[class_].train(samples_32f,labels) to classes_classifiers[class_]->train(samples_32f, labels), but I'm still getting an error.
I did this
classes_classifiers[class_]->train(samples_32f, labels);
cout << "adding2 " << classes_training_data[class_].rows << " positive" << endl;
to see where it stops working, and it seems that it doesn't reach to adding2.
This part of the code
cout << " Training class: " << class_ << ".." << endl;
also doesn't display class_.
What could be wrong? :( Thank you!
Hi , i've just downloaded the package and tried to compile ...
i get this error message:
/foodCamClassifier/build_vocabolary.cpp: In function ‘int main(int, char**)’:
/foodCamClassifier/build_vocabolary.cpp:23:2: error: ‘SurfFeatureDetector’ was not declared in this scope
SurfFeatureDetector detector(400);
Can't compile w/ 2.4 of OpenCV. Some of the issues are fixed with adding:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.