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


jsk_recognition_utils
Author(s):
autogenerated on Tue Jan 7 2025 04:04:52