MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / decompress

Function decompress

recognition/scripts/recognition_utils.py:14–20  ·  view source on GitHub ↗
(msg, flags=1)

Source from the content-addressed store, hash-verified

12
13
14def decompress(msg, flags=1):
15 data = numpy.fromstring(msg.data, dtype=numpy.uint8)
16 if msg.format.count('compressedDepth'):
17 # skip depth format(enum) and params(float x 2)
18 data = data[12:]
19 img = cv2.imdecode(data, flags)
20 return img
21
22
23def lookupTransform(tf_listener, source, target, timeout, now):

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected