blakeblackshear.frigate/frigate/util.py

5 lines
152 B
Python
Raw Normal View History

2019-02-26 03:27:02 +01:00
import numpy as np
# convert shared memory array into numpy array
def tonumpyarray(mp_arr):
return np.frombuffer(mp_arr.get_obj(), dtype=np.uint16)