Use machine learning to detect wolf in Werewolf game
- youtube-dl
youtube-dl -f mp4 <URL>
youtube-dl -f mp4 https://www.youtube.com/watch?v=HRpDjcmNHqE -o add_videos/0311.mp4
- ffmpeg
ffmpeg -i add_videos/0311.mp4 -ss 00:01:32 -to 00:31:05 -c copy ./add_videos/0311cut.mp4
- 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
- YOLO
- looking for images of only one person
- save in ./results/
./darknet detect cfg/yolov3.cfg yolov3.weights add_videos/0311_images/
scp -r results [email protected]:~/git/wolf_detection/
- facenet
- execute in facenet directory
- save in ./09face/
- delete not 09 by filezilla
python identify.py
python cropimg.py
python divide.py