Closed ciwei123 closed 3 years ago
@ciwei123
as_grey=False
. See skvideo.io.vread for more details.skvideo
and opencv
. There may be a little difference between the implementations of the two packages. You should make sure that you always use the same package to read videos in the same project.Image.fromarray
to satisfy them. The reason for no effect found when removing the code is because the first transform in my code is ToTensor()
, and it supports both PIL Image
and numpy.ndarray
. See ToTensor for more details.
@lidq92 Thanks for your sharing.
frame = Image.fromarray(frame)
, because when I remove this code ,I still get the same result.Thank you very much!!