dlib.cpp 1.17 KB
Newer Older
1
// Copyright (C) 2015 Davis E. King (davis@dlib.net)
2
// License: Boost Software License   See LICENSE.txt for the full license.
3

Davis King's avatar
Davis King committed
4
#include <boost/python.hpp>
5
6
7
8

void bind_matrix();
void bind_vector();
void bind_svm_c_trainer();
9
void bind_decision_functions();
Davis King's avatar
Davis King committed
10
11
void bind_basic_types();
void bind_other();
12
void bind_svm_rank_trainer();
Davis King's avatar
Davis King committed
13
void bind_cca();
14
void bind_sequence_segmenter();
15
void bind_svm_struct();
16
void bind_image_classes();
17
void bind_rectangles();
18
void bind_object_detection();
19
void bind_shape_predictors();
20
21

#ifndef DLIB_NO_GUI_SUPPORT
Patrick Snape's avatar
Patrick Snape committed
22
void bind_gui();
23
#endif
24
25
26

BOOST_PYTHON_MODULE(dlib)
{
Davis King's avatar
Davis King committed
27
28
29
30
    // 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);

31
32
33
    bind_matrix();
    bind_vector();
    bind_svm_c_trainer();
34
    bind_decision_functions();
Davis King's avatar
Davis King committed
35
36
    bind_basic_types();
    bind_other();
37
    bind_svm_rank_trainer();
Davis King's avatar
Davis King committed
38
    bind_cca();
39
    bind_sequence_segmenter();
40
    bind_svm_struct();
41
    bind_image_classes();
42
    bind_rectangles();
43
    bind_object_detection();
44
    bind_shape_predictors();
45
#ifndef DLIB_NO_GUI_SUPPORT
Patrick Snape's avatar
Patrick Snape committed
46
    bind_gui();
47
#endif
48
}
Davis King's avatar
Davis King committed
49