mirror of
https://github.com/opencv/opencv.git
synced 2026-07-27 22:33:03 +04:00
Merge pull request #7854 from alalek:backports_2016
(2.4) Backports from master branch (#7854)
This commit is contained in:
committed by
GitHub
parent
49e6bb2993
commit
cc09f5a7de
@@ -290,7 +290,7 @@ static int pyopencv_to(const PyObject* o, Mat& m, const ArgInfo info, bool allow
|
||||
|
||||
if( type < 0 )
|
||||
{
|
||||
if( typenum == NPY_INT64 || typenum == NPY_UINT64 || type == NPY_LONG )
|
||||
if( typenum == NPY_INT64 || typenum == NPY_UINT64 || typenum == NPY_LONG )
|
||||
{
|
||||
needcopy = needcast = true;
|
||||
new_typenum = NPY_INT;
|
||||
|
||||
@@ -241,7 +241,7 @@ class CppHeaderParser(object):
|
||||
l = l[:npos] + l[npos3+1:]
|
||||
|
||||
l = self.batch_replace(l, [("CV_EXPORTS_W", ""), ("CV_EXPORTS", ""), ("public virtual ", " "), ("public ", " "), ("::", ".")]).strip()
|
||||
ll = re.split(r'\s*[,:]?\s*', l)
|
||||
ll = re.split(r'\s+|\s*[,:]\s*', l)
|
||||
ll = [le for le in ll if le]
|
||||
classname = ll[1]
|
||||
bases = ll[2:]
|
||||
|
||||
Reference in New Issue
Block a user