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 put_text
10 from jsk_recognition_utils
import visualize
11 from jsk_recognition_utils
import geometry
16 _chainer_available =
True
18 _chainer_available =
False
22 _chainercv_available =
True
24 _chainercv_available =
False
30 _fcn_available =
False
32 if _chainer_available
and _chainercv_available
and _fcn_available:
33 from jsk_recognition_utils
import chainermodels
36 if not _chainer_available:
37 _depends.append(
'chainer\\<7.0.0')
38 if not _chainercv_available:
39 _depends.append(
'chainercv')
40 if not _fcn_available:
41 _depends.append(
'fcn')
44 to import jsk_recognition_utils.chainermodels.
47 '''.
format(
', '.join(_depends),
' '.join(_depends)), file=sys.stderr)
49 if _chainer_available
and _chainercv_available:
50 from jsk_recognition_utils
import datasets
53 if not _chainer_available:
54 _depends.append(
'chainer\\<7.0.0')
55 if not _chainercv_available:
56 _depends.append(
'chainercv')
59 to import jsk_recognition_utils.datasets.
62 '''.
format(
', '.join(_depends),
' '.join(_depends)), file=sys.stderr)
65 bounding_box_msg_to_aabb = conversations.bounding_box_msg_to_aabb
66 rects_msg_to_ndarray = conversations.rects_msg_to_ndarray
69 decompose_descriptors_with_label = feature.decompose_descriptors_with_label
71 bounding_rect_of_mask = mask.bounding_rect_of_mask
72 descent_closing = mask.descent_closing
74 centerize = visualize.centerize
75 colorize_cluster_indices = visualize.colorize_cluster_indices
76 get_tile_image = visualize.get_tile_image
78 get_overlap_of_aabb = geometry.get_overlap_of_aabb