mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Refactor copy_yuv_to_position function to use np.asarray for improved performance
This commit is contained in:
parent
9de8f3f380
commit
a2b30d0ee8
@ -440,7 +440,7 @@ def copy_yuv_to_position(
|
|||||||
resized_img = source_img.resize(
|
resized_img = source_img.resize(
|
||||||
(resize_dim[1], resize_dim[0]), resample=interpolation
|
(resize_dim[1], resize_dim[0]), resample=interpolation
|
||||||
)
|
)
|
||||||
destination_slice[:] = np.array(resized_img)
|
destination_slice[:] = np.asarray(resized_img)
|
||||||
|
|
||||||
def resize_copy(
|
def resize_copy(
|
||||||
frame,
|
frame,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user