• Patrick Snape's avatar
    Add an API for the correlation tracker · e3c3d39a
    Patrick Snape authored
    This aids an API for the correlation based tracker that Davis
    recently added to Dlib. I've made sure to allow overrides for
    passing normal rectangles rather than drectangles (which isn't
    currently supported in the Dlib C++ API). This is mostly
    because I imagine people might initialize the tracking using
    something like a bounding box from a detector (e.g.
    load_frontal_face_detector).
    e3c3d39a
dlib.cpp 1.24 KB
// Copyright (C) 2015 Davis E. King (davis@dlib.net)
// License: Boost Software License   See LICENSE.txt for the full license.

#include <boost/python.hpp>

void bind_matrix();
void bind_vector();
void bind_svm_c_trainer();
void bind_decision_functions();
void bind_basic_types();
void bind_other();
void bind_svm_rank_trainer();
void bind_cca();
void bind_sequence_segmenter();
void bind_svm_struct();
void bind_image_classes();
void bind_rectangles();
void bind_object_detection();
void bind_shape_predictors();
void bind_correlation_tracker();

#ifndef DLIB_NO_GUI_SUPPORT
void bind_gui();
#endif

BOOST_PYTHON_MODULE(dlib)
{
    // Disable printing of the C++ function signature in the python __doc__ string
    // since it is full of huge amounts of template clutter.
    boost::python::docstring_options options(true,true,false);

    bind_matrix();
    bind_vector();
    bind_svm_c_trainer();
    bind_decision_functions();
    bind_basic_types();
    bind_other();
    bind_svm_rank_trainer();
    bind_cca();
    bind_sequence_segmenter();
    bind_svm_struct();
    bind_image_classes();
    bind_rectangles();
    bind_object_detection();
    bind_shape_predictors();
    bind_correlation_tracker();
#ifndef DLIB_NO_GUI_SUPPORT
    bind_gui();
#endif
}