Giter Site home page Giter Site logo

aayush1205 / magikmoments Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iostream-openend/magikmoments

0.0 1.0 1.0 118.28 MB

Finds the "magic" and the most happy moments of a given movie and makes a trailer out of it

License: GNU General Public License v3.0

Python 100.00%

magikmoments's Introduction

MagikMoments

Finds the "magic" and the most happy moments of a given movie and makes a trailer out of it.

Requirements :

To run locally :

  1. A CPU which supports AVX instruction set. Starting with TensorFlow 1.6, binaries use AVX instructions which may not run on older CPUs.The processors with AVX instructions are listed in this Wikipedia link.

  2. A working Python 3.6 environment along with pip installed.

  3. 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 
  4. The learned weights when the classifier was run can be found here. The entire model (architecture, layers, and weights) can be found here.

  5. To execute it, open CMD/Terminal, navigate inside MagikMoments/src/ directory and run :

    • On Windows :
      python classifier.py
    • On Linux :
      python3 classifier.py

Running on Google Colaboratory :

Navigate to this Google Colaboratory Link, copy the jupyter notebook to your drive and run it.

Running The Test

Pre-requisites:

  • An image with visible human(s).
  • A sample video to test.

Working (Internal):

  1. Specify the video file to be used.
  2. The video file will be sent to create_frames method which is a generator function yielding frames.
  3. The frame from create_frames will be passed to detect_face method which will check for faces and display if any found.
  4. The faces from detect_face will be passed to check_emotion method which will check if the face is happy and store timestamp.
  5. The method 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.
  6. That array will be passed to combine_clips, which will combine all those clips into a final video.

Contribution

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Author

List of Contributors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.