knsiczarnamagia / face-expression-recognizer

Face Expression Recognizer is a human face detector and face expression classificator. Created by members of the KNSI Czarna Magia AI Student Club.
GNU General Public License v3.0
4 stars 0 forks source link

Create video_frames functions #11

Closed KubaHryna closed 6 months ago

KubaHryna commented 6 months ago

I created 2 functions. One is transforming video into frames and second converts frames to video. I've got issue there, beacuse the library can't read path files. Functions should work, but we need to check it. Also there is a problem that library can't find attribute shape for frame in function 'frames_to_video'

Kiwinicki commented 6 months ago

I created an empty __init__.py file inside dir with your functions and test.py outside with content:

from video_split_frames_merge.frames_to_video import frames_to_video
from video_split_frames_merge.video_to_frames import video_to_frames

video_to_frames("./vid.mp4")
frames_to_video("./data/", "test.avi")

and everything worked.

KubaHryna commented 6 months ago

I uploaded frames to video function.