Face detection with YOLO Face (Windows10, Python3.6)

Introduction

I tried YOLO Face, which is a face detection version of YOLO v3, which is a real-time object detection algorithm. It also works on the CPU.

System environment

Introduction

Clone yoloface.

Create a yoloface environment.

$ cd yoloface-master 
$ conda create -n yoloface python=3.6
$ conda activate yoloface
$ pip install -r requirements.txt

Download yolov3-wider_16000.weights and place it in the model-weights folder.

Execute the following command and check if the face can be detected. Put the file you want to detect face in the samples folder.

--In the case of images

$ python yoloface.py --image samples/outside_000001.jpg --output-dir outputs/

meeting_11_304_yoloface.jpg outside_000001_yoloface.jpg

It's pretty accurate!

--For video

$ python yoloface.py --video samples/hoshino.mp4 --output-dir outputs/

hoshino_yoloface_Trim.gif

--For webcams (you can switch camera devices by changing the numbers)

$ python yoloface.py --src 1 --output-dir outputs/

bandicam-2020-05-06-02-55-53-074.gif

I was able to detect the face in real time. Thank you for your hard work.

Recommended Posts

Face detection with YOLO Face (Windows10, Python3.6)
Face detection with Python + dlib
Face detection with Python + OpenCV
Face detection with Lambda (Python) + Rekognition
Face detection with Python + OpenCV (rotation invariant)
Python starting with Windows 7
Hello World and face detection with OpenCV 4.3 + Python
Python with VS Code (Windows 10)
Run python with PyCharm (Windows)
Face detection summary in Python
Blockchain tampering detection with Python
Try face recognition with Python
Face detection with Haar Cascades
Time synchronization (Windows) with Python
Anime face detection with OpenCV
[Python] Using OpenCV with Python (Edge Detection)
Build mlpy with python3.3 (64bit) (windows 64bit)
Try face recognition with python + OpenCV
I tried face detection with MTCNN
Cut out face with Python + OpenCV
Face recognition with camera with opencv3 + python2.7
Use Windows 10 speech synthesis with Python
Getting started with Python 3.8 on Windows
[Python] Creating multiple windows with Tkinter
[Python Windows] pip install with Python version
Hello World and face detection with opencv-python 4.2
[Python] Face detection by OpenCV (Haar Cascade)
Run servo with Python on ESP32 (Windows)
Python dlib face detection and blink counter
Building a Python 3.6 environment with Windows + PowerShell
Develop Windows apps with Python 3 + Tkinter (Preparation)
[python, openCV] base64 Face recognition with images
Serverless face recognition API made with Python
Cooking object detection with yolo + image classification
[Python] Real-time object detection with iPad camera
I tried object detection with YOLO v3 (TensorFlow 2.0) on a windows CPU!
Statistics with python
Python on Windows
Scraping with Python
Python with Go
python windows environment
Twilio with Python
Integrate with Python
Python installation (Windows)
Play with 2016-Python
AES256 with python
Tested with Python
python starts with ()
with syntax (Python)
Bingo with python
Zundokokiyoshi with python
Excel with Python
Microcomputer with Python
Cast with python
Project cannot be created with Python3.5 (Windows) + django1.7.1
Performance comparison of face detector with Python + OpenCV
Python (Windows 10) Virtual Environment / Package with VS Code
GUI automation with Python x Windows App Driver
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Convert Windows epoch values to date with python
Develop Windows apps with Python 3 + Tkinter (exe file)