Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
c22dcb04
Commit
c22dcb04
authored
Aug 19, 2014
by
Alexander Mordvintsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing warnings
parent
e74cddfb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
cv2.cpp
modules/python/src2/cv2.cpp
+3
-3
gen2.py
modules/python/src2/gen2.py
+1
-1
hdr_parser.py
modules/python/src2/hdr_parser.py
+0
-1
No files found.
modules/python/src2/cv2.cpp
View file @
c22dcb04
...
...
@@ -1192,7 +1192,7 @@ static int convert_to_char(PyObject *o, char *dst, const char *name = "no_name")
#include "pyopencv_generated_types.h"
#include "pyopencv_generated_funcs.h"
static
PyMethodDef
methods
[]
=
{
static
PyMethodDef
special_
methods
[]
=
{
{
"createTrackbar"
,
pycvCreateTrackbar
,
METH_VARARGS
,
"createTrackbar(trackbarName, windowName, value, count, onChange) -> None"
},
{
"setMouseCallback"
,
(
PyCFunction
)
pycvSetMouseCallback
,
METH_VARARGS
|
METH_KEYWORDS
,
"setMouseCallback(windowName, onMouse [, param]) -> None"
},
{
NULL
,
NULL
},
...
...
@@ -1266,7 +1266,7 @@ static struct PyModuleDef cv2_moduledef =
"Python wrapper for OpenCV."
,
-
1
,
/* size of per-interpreter state of the module,
or -1 if the module keeps state in global variables. */
methods
special_
methods
};
PyObject
*
PyInit_cv2
()
...
...
@@ -1283,7 +1283,7 @@ void initcv2()
#if PY_MAJOR_VERSION >= 3
PyObject
*
m
=
PyModule_Create
(
&
cv2_moduledef
);
#else
PyObject
*
m
=
Py_InitModule
(
MODULESTR
,
methods
);
PyObject
*
m
=
Py_InitModule
(
MODULESTR
,
special_
methods
);
#endif
init_submodules
(
m
);
// from "pyopencv_generated_ns_reg.h"
...
...
modules/python/src2/gen2.py
View file @
c22dcb04
...
...
@@ -821,7 +821,7 @@ class PythonWrapperGenerator(object):
self
.
code_ns_reg
.
write
(
'static ConstDef consts_
%
s[] = {
\n
'
%
wname
)
for
name
,
cname
in
sorted
(
ns
.
consts
.
items
()):
self
.
code_ns_reg
.
write
(
' {"
%
s",
%
s
},
\n
'
%
(
name
,
cname
))
self
.
code_ns_reg
.
write
(
' {"
%
s",
(long)(
%
s)
},
\n
'
%
(
name
,
cname
))
self
.
code_ns_reg
.
write
(
' {NULL, NULL}
\n
};
\n\n
'
)
def
gen_namespaces_reg
(
self
):
...
...
modules/python/src2/hdr_parser.py
View file @
c22dcb04
...
...
@@ -883,4 +883,3 @@ if __name__ == '__main__':
parser
.
print_decls
(
decls
)
print
(
len
(
decls
))
print
(
"namespaces:"
,
" "
.
join
(
sorted
(
parser
.
namespaces
)))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment