MCPcopy Create free account
hub / github.com/OpenImagingLab/4DSloMo / blob_to_array

Function blob_to_array

scripts/n3v2blender.py:93–97  ·  view source on GitHub ↗
(blob, dtype, shape=(-1,))

Source from the content-addressed store, hash-verified

91 return np.getbuffer(array)
92
93def blob_to_array(blob, dtype, shape=(-1,)):
94 if IS_PYTHON3:
95 return np.fromstring(blob, dtype=dtype).reshape(*shape)
96 else:
97 return np.frombuffer(blob, dtype=dtype).reshape(*shape)
98
99class COLMAPDatabase(sqlite3.Connection):
100

Callers 1

camTodatabaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected