Finds the "magic" and the most happy moments of a given movie and makes a trailer out of it.
External modules installed. Instructions below :
To install the external modules, open CMD/Terminal and navigate inside the MagikMoments directory. Then run :
On windows :
pip install -r requirements.txt
On Linux :
pip3 install -r requirements.txt
Navigate to this Google Colaboratory Link, copy the jupyter notebook to your drive and run it.
Pre-requisites:
create_frames
method which is a generator function yielding frames.create_frames
will be passed to detect_face
method which will check for faces and display if any found.detect_face
will be passed to check_emotion
method which will check if the face is happy and store timestamp.cut_moments
will be called, which will cut 5-sec clips will be cut for each moment (2.5 before, 2.5 after) and store clips objects into a array.combine_clips
, which will combine all those clips into a final video.Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.