ZWilsonSS / Peppa_Pig_Face_Landmark

A simple face detect and alignment method, which is easy and stable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Peppa_Pig_Face_Engine

introduction

It is a simple demo including face detection and face aligment, and some optimizations were made to make the result better.

click the gif to see the video: demo

and with face mask: face mask

requirment

  • PyTorch
  • MNN
  • opencv
  • python 3.7
  • easydict

model

useage

  1. pretrained models are in ./pretrained, for easy to use ,we convert them to mnn
  2. run python demo.py --cam_id 0 use a camera
    or python demo.py --video test.mp4 detect for a video
    or python demo.py --img_dir ./test detect for images dir no track
    or python demo.py --video test.mp4 --mask True if u want a face mask
# by code:
from lib.core.api.facer import FaceAna
facer = FaceAna()
boxes, landmarks, _ = facer.run(image)
  

About

A simple face detect and alignment method, which is easy and stable.

License:Apache License 2.0


Languages

Language:Python 100.0%Language:Shell 0.0%