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

Function array_to_blob

scripts/n3v2blender.py:87–91  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

85
86
87def array_to_blob(array):
88 if IS_PYTHON3:
89 return array.tostring()
90 else:
91 return np.getbuffer(array)
92
93def blob_to_array(blob, dtype, shape=(-1,)):
94 if IS_PYTHON3:

Callers 1

update_cameraMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected