Fix import error in Python 2
This commit is contained in:
parent
c74c72932a
commit
82d156cda4
|
@ -16,8 +16,6 @@ try:
|
|||
except ImportError:
|
||||
raise RuntimeError('cannot import numpy, make sure numpy package is installed.')
|
||||
|
||||
from . import image_converter
|
||||
|
||||
from .transform import Transform, Translation, Rotation, Scale
|
||||
|
||||
|
||||
|
@ -156,6 +154,8 @@ class Image(SensorData):
|
|||
default format.
|
||||
"""
|
||||
if self._converted_data is None:
|
||||
from . import image_converter
|
||||
|
||||
if self.type == 'Depth':
|
||||
self._converted_data = image_converter.depth_to_array(self)
|
||||
elif self.type == 'SemanticSegmentation':
|
||||
|
|
Loading…
Reference in New Issue