Refactor copy_yuv_to_position function to use np.asarray for improved performance

This commit is contained in:
Sergey Krashevich 2023-07-02 10:03:29 +03:00
parent 9de8f3f380
commit a2b30d0ee8
No known key found for this signature in database
GPG Key ID: 625171324E7D3856

View File

@ -440,7 +440,7 @@ def copy_yuv_to_position(
resized_img = source_img.resize(
(resize_dim[1], resize_dim[0]), resample=interpolation
)
destination_slice[:] = np.array(resized_img)
destination_slice[:] = np.asarray(resized_img)
def resize_copy(
frame,