Git Product home page Git Product logo

wolf_detection's Introduction

wolf_detection

Use machine learning to detect wolf in Werewolf game

Steps

Download Video

  • youtube-dl
youtube-dl -f mp4 <URL>
youtube-dl -f mp4 https://www.youtube.com/watch?v=HRpDjcmNHqE -o add_videos/0311.mp4

Cut up Video

  • ffmpeg
ffmpeg -i add_videos/0311.mp4 -ss 00:01:32 -to 00:31:05 -c copy ./add_videos/0311cut.mp4

Convert Video to Images

  • ffmpeg
    • make directory to store images
    • eight images in one second
mkdir add_videos/0311_images
ffmpeg -i input.mp4 -r 1 out%5d.png
ffmpeg -i add_videos/0311cut.mp4 -r 8 add_videos/0311_images/0311%5d.png

Detect Faces

  • YOLO
    • looking for images of only one person
    • save in ./results/
./darknet detect cfg/yolov3.cfg yolov3.weights add_videos/0311_images/

Copy Images to Another Server

scp -r results [email protected]:~/git/wolf_detection/

Detect 09chen

  • facenet
    • execute in facenet directory
    • save in ./09face/
    • delete not 09 by filezilla
python identify.py

Crop Images Top

python cropimg.py

Divide all Images into Train Test Validation

python divide.py

wolf_detection's People

Contributors

tiffany6022 avatar yichung279 avatar

Watchers

James Cloos avatar  avatar

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.