__init__.py
Go to the documentation of this file.
1 from __future__ import print_function
2 
3 import sys
4 
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
11 
12 
13 try:
14  import chainer # NOQA
15  _chainer_available = True
16 except ImportError:
17  _chainer_available = False
18 
19 try:
20  import chainercv # NOQA
21  _chainercv_available = True
22 except ImportError:
23  _chainercv_available = False
24 
25 try:
26  import fcn # NOQA
27  _fcn_available = True
28 except ImportError:
29  _fcn_available = False
30 
31 if _chainer_available and _chainercv_available and _fcn_available:
32  from jsk_recognition_utils import chainermodels # NOQA
33 else:
34  _depends = []
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')
41  print('''
42 Please install {0}
43 to import jsk_recognition_utils.chainermodels.
44 
45  sudo pip install {1}
46 '''.format(', '.join(_depends), ' '.join(_depends)), file=sys.stderr)
47 
48 if _chainer_available and _chainercv_available:
49  from jsk_recognition_utils import datasets # NOQA
50 else:
51  _depends = []
52  if not _chainer_available:
53  _depends.append('chainer\\<7.0.0')
54  if not _chainercv_available:
55  _depends.append('chainercv')
56  print('''
57 Please install {0}
58 to import jsk_recognition_utils.datasets.
59 
60  sudo pip install {1}
61 '''.format(', '.join(_depends), ' '.join(_depends)), file=sys.stderr)
62 
63 
64 bounding_box_msg_to_aabb = conversations.bounding_box_msg_to_aabb
65 rects_msg_to_ndarray = conversations.rects_msg_to_ndarray
66 
67 BagOfFeatures = feature.BagOfFeatures
68 decompose_descriptors_with_label = feature.decompose_descriptors_with_label
69 
70 bounding_rect_of_mask = mask.bounding_rect_of_mask
71 descent_closing = mask.descent_closing
72 
73 centerize = visualize.centerize
74 colorize_cluster_indices = visualize.colorize_cluster_indices
75 get_tile_image = visualize.get_tile_image
76 
77 get_overlap_of_aabb = geometry.get_overlap_of_aabb


jsk_recognition_utils
Author(s):
autogenerated on Mon May 3 2021 03:03:03