GithubHelp home page GithubHelp logo

videofacedetector's Introduction

VideoFaceDetector

  1. KeyFrameGetter.py: Extract key frames from input movies.

  2. FaceDetector.py: Detect the face in each key frame which extracts from the movie

What you Need...

You need:

  • Numpy
  • OpenCV

Demos are showed in Main-Function.

How to Begin...

KeyFrameGetter.py

  1. Put your video in ./video/,if you don't have the dir, please create yourself.

  2. (Option)You can set params in:

    1. kfg = KeyFrameGetter(source_path, dir_path, 100)  # 100 means extract 1 key-frame in each 100 frames
      
    2. kfg.load_diff_between_frm(alpha=0.07) # alpha means the difference parameter
      
  3. Then you can click run and get your result in ./img/

My Thoughts...

https://segmentfault.com/a/1190000022192846

videofacedetector's People

Contributors

skylerlinn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

videofacedetector's Issues

plot_diff_time Segmentation fault (core dumped)

hello, when I run KeyFrameGetter.py to plot the difference of time (plot_diff_time function), the fig cannot be displayed and print the bug: Segmentation fault (core dumped). I don't know why...
image

plot_diff_time bug

171 plt.plot(np.array(self.idx)-1, [self.diff[i-1] for i in self.idx], 'or')

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.