How To Write On Video With Cv2 AND MTCNN? I'm Facing Problems With Fourcc
I'm trying to write a script that anonymized faces on videos. here is my code (python): import cv2 from mtcnn.mtcnn import MTCNN ksize = (101, 101) def decode_fourcc(cc): re
Solution 1:
I've changes this line:
video_out = cv2.VideoWriter(
"mtcnn.mp4", cv2.VideoWriter_fourcc(*"mp4v"), fps, (width, height))
to:
video_out = cv2.VideoWriter(
"mtcnn.avi", cv2.VideoWriter_fourcc(*'XVID'), fps, (width, height))
And now it works for me
Post a Comment for "How To Write On Video With Cv2 AND MTCNN? I'm Facing Problems With Fourcc"