MCPcopy Create free account
hub / github.com/InternRobotics/EmbodiedScan / __init__

Method __init__

embodiedscan/visualization/img_drawer.py:18–29  ·  view source on GitHub ↗
(self, image, verbose=False)

Source from the content-addressed store, hash-verified

16 """
17
18 def __init__(self, image, verbose=False):
19 self.verbose = verbose
20 if self.verbose:
21 print('Loading image', image)
22 img = cv2.imread(image)
23 if self.verbose:
24 print('Loading image Complete')
25 img = img[:, :, ::-1].astype(np.float32) # BGR to RGB
26 self.occupied = np.zeros((img.shape[0], img.shape[1]), dtype=bool)
27 self.img = img
28 self.EPS = 1e-4
29 self.ALPHA = 0.75
30
31 def draw_text(self,
32 text,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected