mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Enabled VAS OT in G-API Python interface
This commit is contained in:
@@ -56,6 +56,14 @@ class GOpaque():
|
||||
def __new__(self):
|
||||
return cv.GOpaqueT(cv.gapi.CV_INT)
|
||||
|
||||
class Int64():
|
||||
def __new__(self):
|
||||
return cv.GOpaqueT(cv.gapi.CV_INT64)
|
||||
|
||||
class UInt64():
|
||||
def __new__(self):
|
||||
return cv.GOpaqueT(cv.gapi.CV_UINT64)
|
||||
|
||||
class Double():
|
||||
def __new__(self):
|
||||
return cv.GOpaqueT(cv.gapi.CV_DOUBLE)
|
||||
@@ -111,6 +119,14 @@ class GArray():
|
||||
def __new__(self):
|
||||
return cv.GArrayT(cv.gapi.CV_INT)
|
||||
|
||||
class Int64():
|
||||
def __new__(self):
|
||||
return cv.GArrayT(cv.gapi.CV_INT64)
|
||||
|
||||
class UInt64():
|
||||
def __new__(self):
|
||||
return cv.GArrayT(cv.gapi.CV_UINT64)
|
||||
|
||||
class Double():
|
||||
def __new__(self):
|
||||
return cv.GArrayT(cv.gapi.CV_DOUBLE)
|
||||
@@ -170,6 +186,8 @@ def op(op_id, in_types, out_types):
|
||||
garray_types= {
|
||||
cv.GArray.Bool: cv.gapi.CV_BOOL,
|
||||
cv.GArray.Int: cv.gapi.CV_INT,
|
||||
cv.GArray.Int64: cv.gapi.CV_INT64,
|
||||
cv.GArray.UInt64: cv.gapi.CV_UINT64,
|
||||
cv.GArray.Double: cv.gapi.CV_DOUBLE,
|
||||
cv.GArray.Float: cv.gapi.CV_FLOAT,
|
||||
cv.GArray.String: cv.gapi.CV_STRING,
|
||||
@@ -190,6 +208,8 @@ def op(op_id, in_types, out_types):
|
||||
cv.GOpaque.Rect: cv.gapi.CV_RECT,
|
||||
cv.GOpaque.Bool: cv.gapi.CV_BOOL,
|
||||
cv.GOpaque.Int: cv.gapi.CV_INT,
|
||||
cv.GOpaque.Int64: cv.gapi.CV_INT64,
|
||||
cv.GOpaque.UInt64: cv.gapi.CV_UINT64,
|
||||
cv.GOpaque.Double: cv.gapi.CV_DOUBLE,
|
||||
cv.GOpaque.Float: cv.gapi.CV_FLOAT,
|
||||
cv.GOpaque.String: cv.gapi.CV_STRING,
|
||||
@@ -205,6 +225,8 @@ def op(op_id, in_types, out_types):
|
||||
type2str = {
|
||||
cv.gapi.CV_BOOL: 'cv.gapi.CV_BOOL' ,
|
||||
cv.gapi.CV_INT: 'cv.gapi.CV_INT' ,
|
||||
cv.gapi.CV_INT64: 'cv.gapi.CV_INT64' ,
|
||||
cv.gapi.CV_UINT64: 'cv.gapi.CV_UINT64' ,
|
||||
cv.gapi.CV_DOUBLE: 'cv.gapi.CV_DOUBLE' ,
|
||||
cv.gapi.CV_FLOAT: 'cv.gapi.CV_FLOAT' ,
|
||||
cv.gapi.CV_STRING: 'cv.gapi.CV_STRING' ,
|
||||
|
||||
Reference in New Issue
Block a user