Python wrapper is adapted for cv::String

This commit is contained in:
Andrey Kamaev
2013-03-20 20:42:07 +04:00
parent 2ad7b97f1c
commit 707d3e0a62
4 changed files with 24 additions and 11 deletions

View File

@@ -335,7 +335,7 @@ class CppHeaderParser(object):
if pos >= 0:
aname = arg[pos+1:].strip()
atype = arg[:pos+1].strip()
if aname.endswith("&") or aname.endswith("*") or (aname in ["int", "string", "Mat"]):
if aname.endswith("&") or aname.endswith("*") or (aname in ["int", "String", "Mat"]):
atype = (atype + " " + aname).strip()
aname = ""
else: