exposed OpenCL-control functions to python

This commit is contained in:
Alexander Mordvintsev
2014-04-29 16:57:19 +04:00
parent cafcfc4d0f
commit 2756ae2051
4 changed files with 10 additions and 7 deletions

View File

@@ -776,7 +776,7 @@ class PythonWrapperGenerator(object):
classname = bareclassname = ""
name = decl[0]
dpos = name.rfind(".")
if dpos >= 0 and name[:dpos] != "cv":
if dpos >= 0 and name[:dpos] not in ["cv", "cv.ocl"]:
classname = bareclassname = re.sub(r"^cv\.", "", name[:dpos])
name = name[dpos+1:]
dpos = classname.rfind(".")
@@ -785,6 +785,7 @@ class PythonWrapperGenerator(object):
classname = classname.replace(".", "_")
cname = name
name = re.sub(r"^cv\.", "", name)
name = name.replace(".", "_")
isconstructor = cname == bareclassname
cname = cname.replace(".", "::")
isclassmethod = False

View File

@@ -6,6 +6,7 @@ import os, sys, re, string
# the list only for debugging. The real list, used in the real OpenCV build, is specified in CMakeLists.txt
opencv_hdr_list = [
"../../core/include/opencv2/core.hpp",
"../../core/include/opencv2/core/ocl.hpp",
"../../flann/include/opencv2/flann/miniflann.hpp",
"../../ml/include/opencv2/ml.hpp",
"../../imgproc/include/opencv2/imgproc.hpp",