mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Use argument value for 'mat' in call to format for vector_mat and vector_mat_template
The hard-coded string value "Mat" was used in the two format strings for vector_mat and vector_mat_template, preventing UMat arguments to functions that have these types from working correctly. as noted in #12231.
This commit is contained in:
parent
57cf120118
commit
0aa5391c4b
@ -571,8 +571,8 @@ class CppHeaderParser(object):
|
||||
arg_type, arg_name, modlist, argno = self.parse_arg(a, argno)
|
||||
if self.wrap_mode:
|
||||
# TODO: Vectors should contain UMat, but this is not very easy to support and not very needed
|
||||
vector_mat = "vector_{}".format("Mat")
|
||||
vector_mat_template = "vector<{}>".format("Mat")
|
||||
vector_mat = "vector_{}".format(mat)
|
||||
vector_mat_template = "vector<{}>".format(mat)
|
||||
|
||||
if arg_type == "InputArray":
|
||||
arg_type = mat
|
||||
|
Loading…
Reference in New Issue
Block a user