python - Calling scikit-learn functions from C++ -
is there way call scikit-learn's functions c++? have rest of code in c++ opencv. able use classifiers scikit-learn provides. far understand, there's no easy way - need use boost::python or swig. came across project (https://github.com/spillai/numpy-opencv-converter) shows interop between numpy arrays <==> cv::mat objects, know how use call c++ code python script, not other way around.
you can in pretty straightforward way, including python headers , calling python script and/or scikit methods via py* wrappers.
see https://docs.python.org/2/extending/embedding.html#pure-embedding thorough example.
Comments
Post a Comment