#include #include #include using namespace dlib; using namespace std; using namespace boost::python; tuple get_training_data() { typedef matrix sample_type; std::vector samples; std::vector labels; sample_type samp(3); samp = 1,2,3; samples.push_back(samp); labels.push_back(+1); samp = -1,-2,-3; samples.push_back(samp); labels.push_back(-1); return make_tuple(samples, labels); } void bind_other() { def("get_training_data",get_training_data); }