Change interpolation method from OpenCV's INTER_NEAREST to Pillow's Image.Resampling.NEAREST in copy_yuv_to_position function

This commit is contained in:
Sergey Krashevich 2023-06-26 05:58:25 +03:00
parent 2bc977a375
commit 4f9cf220d4
No known key found for this signature in database
GPG Key ID: 625171324E7D3856

View File

@ -449,7 +449,7 @@ def copy_yuv_to_position(
position, position,
resize_dim, resize_dim,
offset, offset,
interpolation=cv2.INTER_NEAREST, interpolation=Image.Resampling.NEAREST,
): ):
dest_slice = frame[ dest_slice = frame[
position[1] + offset[0] : position[1] + offset[0] + resize_dim[0], position[1] + offset[0] : position[1] + offset[0] + resize_dim[0],