Closed dawoodwasif closed 10 months ago
We use two ways to obtain face from videos:
Both can detect the faces from images.
Thanks for the reply. However, I am talking about the images that are sampled from the video. Do you extract images from each video and then extract the faces?
yes. you can use cv2 to read the video, and extract the frames.
@dawoodwasif u can use this file to split videos into images https://github.com/ondyari/FaceForensicsDataProcessing/blob/master/src/faceforensics_internal/scripts/extract_compressed_videos.py
and then to create crops of the faces, use any facial recognition network preferably dlib, retinaface, OpenFace etc
The text file you mentioned has a list of image paths and labels. However, the FaceForensics++ dataset only has videos. How do you obtain these images?