blakeblackshear.frigate/frigate/util.py
2019-02-25 20:27:02 -06:00

5 lines
152 B
Python

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)