python: 'sub-module' for binding sources and documentation meta information

This commit is contained in:
Alexander Alekhin
2017-12-09 18:54:52 +00:00
parent b15bc194ef
commit 768f4cb7bc
7 changed files with 118 additions and 105 deletions
+6
View File
@@ -9,6 +9,12 @@
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/ndarrayobject.h>
#if PY_MAJOR_VERSION >= 3
# define CV_PYTHON_TYPE_HEAD_INIT() PyVarObject_HEAD_INIT(&PyType_Type, 0)
#else
# define CV_PYTHON_TYPE_HEAD_INIT() PyObject_HEAD_INIT(&PyType_Type) 0,
#endif
#include "pyopencv_generated_include.h"
#include "opencv2/core/types_c.h"