豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

mrehanmajeed/yunet-face-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

yunet-face-detection

YuNet Face Detection 🧑‍💻👀

A simple face detection demo using [OpenCV YuNet].
This project loads the YuNet ONNX model and detects faces in an image with bounding boxes.


📌 Features

  • Uses OpenCV's FaceDetectorYN (YuNet model).
  • Detects faces in static images.
  • Draws bounding boxes around detected faces.
  • Easy to extend for real-time webcam detection.

Project Structure

yunet-face-detection/ │── face_detection_yunet.py # Main script │── face_detection_yunet.onnx # Model file (downloaded) │── test_pics/ # Test images │── README.md # Project documentation

🛠️ Installation

Install required dependencies: pip install opencv-contrib-python

Download the YuNet ONNX model:

curl -L -o face_detection_yunet.onnx https://github.com/opencv/opencv_zoo/raw/main/models/face_detection_yunet/face_detection_yunet_2023mar.onnx

Usage

Place your test image inside the project folder (e.g., test_pics/selfie640.png). Run the script: python face_detection_yunet.py A window will pop up showing the detected faces.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages