diff --git a/src/opendr/engine/target.py b/src/opendr/engine/target.py index 9bc9dbacf1..860a1328d6 100644 --- a/src/opendr/engine/target.py +++ b/src/opendr/engine/target.py @@ -1068,6 +1068,14 @@ def numpy(self): # Since this class stores the data as NumPy arrays, we can directly return the data. return self.data + def opencv(self): + """ + Required to support the ros bridge for images. + :return: a NumPy-compatible representation of data + :rtype: numpy.ndarray + """ + return self.numpy() + def shape(self) -> Tuple[int, ...]: """ Returns the shape of the underlying NumPy array.