Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Openpose | 27,743 | a month ago | 269 | other | C++ | |||||
OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation | ||||||||||
Opencv4nodejs | 4,729 | 62 | 46 | 5 months ago | 120 | May 13, 2020 | 290 | mit | C++ | |
Nodejs bindings to OpenCV 3 and OpenCV 4 | ||||||||||
Node Opencv | 4,275 | 307 | 63 | 8 months ago | 31 | March 10, 2020 | 126 | mit | C++ | |
OpenCV Bindings for node.js | ||||||||||
Pigo | 4,089 | 23 | 4 months ago | 25 | October 04, 2022 | 2 | mit | Go | ||
Fast face detection, pupil/eyes localization and facial landmark points detection library in pure Go. | ||||||||||
Face Mask Detection | 1,355 | 10 months ago | 20 | mit | Jupyter Notebook | |||||
Face Mask Detection system based on computer vision and deep learning using OpenCV and Tensorflow/Keras | ||||||||||
Lbpcascade_animeface | 1,223 | 5 years ago | 4 | |||||||
A Face detector for anime/manga using OpenCV | ||||||||||
Head Pose Estimation | 1,024 | 4 months ago | 25 | mit | Python | |||||
Realtime human head pose estimation with ONNXRuntime and OpenCV. | ||||||||||
Facetracker | 931 | 3 years ago | 8 | mit | C++ | |||||
Real time deformable face tracking in C++ with OpenCV 3. | ||||||||||
Emotion Detection | 907 | 6 months ago | 12 | mit | Python | |||||
Real-time Facial Emotion Detection using deep learning | ||||||||||
Real_time_face_recognition | 881 | 7 years ago | 14 | Python | ||||||
(WARNING: This repository is NO LONGER maintained ) Real time face detection and recognition base on opencv/tensorflow/mtcnn/facenet |
The face detector for anime/manga using OpenCV.
Original release since 2011 at OpenCVによるアニメ顔検出ならlbpcascade_animeface.xml (in Japanese)
Download and place the cascade file into your project directory.
wget https://raw.githubusercontent.com/nagadomi/lbpcascade_animeface/master/lbpcascade_animeface.xml
import cv2
import sys
import os.path
def detect(filename, cascade_file = "../lbpcascade_animeface.xml"):
if not os.path.isfile(cascade_file):
raise RuntimeError("%s: not found" % cascade_file)
cascade = cv2.CascadeClassifier(cascade_file)
image = cv2.imread(filename, cv2.IMREAD_COLOR)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
gray = cv2.equalizeHist(gray)
faces = cascade.detectMultiScale(gray,
# detector options
scaleFactor = 1.1,
minNeighbors = 5,
minSize = (24, 24))
for (x, y, w, h) in faces:
cv2.rectangle(image, (x, y), (x + w, y + h), (0, 0, 255), 2)
cv2.imshow("AnimeFaceDetect", image)
cv2.waitKey(0)
cv2.imwrite("out.png", image)
if len(sys.argv) != 2:
sys.stderr.write("usage: detect.py <filename>\n")
sys.exit(-1)
detect(sys.argv[1])
Run
python detect.py imas.jpg
I am providing similar project at nagadomi/animeface-2009. animeface-2009 is my original work that was made before libcascade_animeface. The detection accuracy is higher than this project. However, installation of that is a bit complicated. Also I am providing a face cropping script using animeface-2009.