mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
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:
parent
2bc977a375
commit
4f9cf220d4
@ -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],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user