divertingPan / STA-DRN

code for paper 'Spatial-Temporal Attention Network for Depression Recognition from Facial Videos'
23 stars 2 forks source link

about dataset preprocessing #1

Closed yyyloo closed 9 months ago

yyyloo commented 9 months ago

Hello, could you please provide me with the code of dataset preprocessing? I would like to refer to it, because my programming ability is not very strong, and I will be very happy if I can get your help

divertingPan commented 9 months ago

face_detect.py: Crop faces from a series of video frame images. The images should be frames already exported from the video. To run the program directly, the path format for storing images should be dataset_path/video_001/00001.jpg、dataset_path/video_001/00002.jpg, and another model file shape_predictor_68_face_landmarks.dat is also required.

yyyloo commented 9 months ago

Thank you very much!