Fix import error in Python 2

This commit is contained in:
nsubiron 2018-02-27 14:48:42 +01:00
parent c74c72932a
commit 82d156cda4
1 changed files with 2 additions and 2 deletions

View File

@ -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':