mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge branch 4.x
This commit is contained in:
@@ -488,6 +488,10 @@ class ArgInfo(object):
|
||||
return self.name + '_'
|
||||
return self.name
|
||||
|
||||
@property
|
||||
def nd_mat(self):
|
||||
return '/ND' in self._modifiers
|
||||
|
||||
@property
|
||||
def inputarg(self):
|
||||
return '/O' not in self._modifiers
|
||||
@@ -528,6 +532,7 @@ class ArgInfo(object):
|
||||
arg = 0x01 if self.outputarg else 0x0
|
||||
arg += 0x02 if self.arithm_op_src_arg else 0x0
|
||||
arg += 0x04 if self.pathlike else 0x0
|
||||
arg += 0x08 if self.nd_mat else 0x0
|
||||
return "ArgInfo(\"%s\", %d)" % (self.name, arg)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user