Code Monkey home page Code Monkey logo

foodcamclassifier's People

Contributors

royshil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

foodcamclassifier's Issues

The rows of a confusion matrix are true classes and the columns are predicted classes.

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]]++;

Where are 'SVM_classifier_with_color' files?

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.

Classification

I am going to develop object detection project.I want to need classify my objects.How can i takthis code support.please advice me

CvSVM is private

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!

image

not compiling under ubuntu 14.04 and opencv 2.4

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);

Incompatible with 2.4.x of OpenCV

Can't compile w/ 2.4 of OpenCV. Some of the issues are fixed with adding:

include <opencv2/nonfree/features2d.hpp> to the header files; but others I'm not familure enough with OpenCV to understand what the error is...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.