forked from Github/frigate
initial refactoring
This commit is contained in:
5
frigate/util.py
Normal file
5
frigate/util.py
Normal file
@@ -0,0 +1,5 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user