1 from __future__
import print_function
5 from jsk_recognition_utils
import color
6 from jsk_recognition_utils
import conversations
7 from jsk_recognition_utils
import feature
8 from jsk_recognition_utils
import mask
9 from jsk_recognition_utils
import visualize
10 from jsk_recognition_utils
import geometry
15 _chainer_available =
True 17 _chainer_available =
False 21 _chainercv_available =
True 23 _chainercv_available =
False 29 _fcn_available =
False 31 if _chainer_available
and _chainercv_available
and _fcn_available:
32 from jsk_recognition_utils
import chainermodels
35 if not _chainer_available:
36 _depends.append(
'chainer\\<7.0.0')
37 if not _chainercv_available:
38 _depends.append(
'chainercv')
39 if not _fcn_available:
40 _depends.append(
'fcn')
43 to import jsk_recognition_utils.chainermodels. 46 '''.
format(
', '.join(_depends),
' '.join(_depends)), file=sys.stderr)
48 if _chainer_available
and _chainercv_available:
49 from jsk_recognition_utils
import datasets
52 if not _chainer_available:
53 _depends.append(
'chainer\\<7.0.0')
54 if not _chainercv_available:
55 _depends.append(
'chainercv')
58 to import jsk_recognition_utils.datasets. 61 '''.
format(
', '.join(_depends),
' '.join(_depends)), file=sys.stderr)
64 bounding_box_msg_to_aabb = conversations.bounding_box_msg_to_aabb
65 rects_msg_to_ndarray = conversations.rects_msg_to_ndarray
68 decompose_descriptors_with_label = feature.decompose_descriptors_with_label
70 bounding_rect_of_mask = mask.bounding_rect_of_mask
71 descent_closing = mask.descent_closing
73 centerize = visualize.centerize
74 colorize_cluster_indices = visualize.colorize_cluster_indices
75 get_tile_image = visualize.get_tile_image
77 get_overlap_of_aabb = geometry.get_overlap_of_aabb