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): return "".join([chr((int(cc) >> 8 * i) & 0xFF) for i in range(4)]) def find_face_MTCNN(color, result_list): for result in result_list: x, y, w, h = result['box'] roi = color[y:y+h, x:x+w] cv2.rectangle(color, (x, y), (x+w, y+h), (0, 155, 255), 5) detectedFace = cv2.GaussianBlur(roi, ksize, 0) color[y:y+h, x:x+w] =