MCPcopy Create free account
hub / github.com/TheMariday/marimapper / blob_to_array

Function blob_to_array

marimapper/pycolmap_tools/database.py:138–142  ·  view source on GitHub ↗
(blob, dtype, shape=(-1,))

Source from the content-addressed store, hash-verified

136
137
138def blob_to_array(blob, dtype, shape=(-1,)):
139 if IS_PYTHON3:
140 return np.fromstring(blob, dtype=dtype).reshape(*shape)
141 else:
142 return np.frombuffer(blob, dtype=dtype).reshape(*shape)
143
144
145class COLMAPDatabase(sqlite3.Connection):

Callers 1

example_usageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected