Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
87
def
array_to_blob(array):
88
if
IS_PYTHON3:
89
return
array.tostring()
90
else
:
91
return
np.getbuffer(array)
92
93
def
blob_to_array(blob, dtype, shape=(-1,)):
94
if
IS_PYTHON3:
Callers
1
update_camera
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected