All Projects → nagadomi → Lbpcascade_animeface

nagadomi / Lbpcascade_animeface

A Face detector for anime/manga using OpenCV

Projects that are alternatives of or similar to Lbpcascade animeface

Opencv Ndarray Conversion
NumPy ndarray ⇋ OpenCV Mat conversion, that just works.
Stars: ✭ 107 (-93.63%)
Mutual labels:  opencv
Face Swap Android
Realtime Face Swap Android NDK app full source code. Developed with OpenCV (http://opencv.org) and Dlib C++ (http://dlib.net).
Stars: ✭ 111 (-93.39%)
Mutual labels:  opencv
Python Examples Cv
OpenCV Python Computer Vision Examples used for Teaching
Stars: ✭ 113 (-93.27%)
Mutual labels:  opencv
Nvidia Gpu Tensor Core Accelerator Pytorch Opencv
A complete machine vision container that includes Jupyter notebooks with built-in code hinting, Anaconda, CUDA-X, TensorRT inference accelerator for Tensor cores, CuPy (GPU drop in replacement for Numpy), PyTorch, TF2, Tensorboard, and OpenCV for accelerated workloads on NVIDIA Tensor cores and GPUs.
Stars: ✭ 110 (-93.45%)
Mutual labels:  opencv
Aruco Markers
Working examples/tutorial for detection and pose estimation of ArUco markers with C++
Stars: ✭ 112 (-93.33%)
Mutual labels:  opencv
Autoannotationtool
A label tool aim to reduce semantic segmentation label time, rectangle and polygon annotation is supported
Stars: ✭ 113 (-93.27%)
Mutual labels:  opencv
Androidfacedetection
Android 平台进行人脸检测的几种方案
Stars: ✭ 106 (-93.69%)
Mutual labels:  opencv
Gaspumpocr
Python and OpenCV scripts to detect digits on a Gas Pump
Stars: ✭ 116 (-93.09%)
Mutual labels:  opencv
Studybook
Study E-Book(ComputerVision DeepLearning MachineLearning Math NLP Python ReinforcementLearning)
Stars: ✭ 1,457 (-13.22%)
Mutual labels:  opencv
Real Time Video Mosaic
An implementation of automatic panorama using OpenCV in C++ and Python
Stars: ✭ 114 (-93.21%)
Mutual labels:  opencv
Aruco tracker
Aruco Markers for pose estimation
Stars: ✭ 111 (-93.39%)
Mutual labels:  opencv
Rvision
Basic computer vision library for R
Stars: ✭ 107 (-93.63%)
Mutual labels:  opencv
Sobfu
real-time 3D reconstruction of non-rigidly deforming scenes using depth data
Stars: ✭ 113 (-93.27%)
Mutual labels:  opencv
Opencvjs
Complete opencvjs (With the lastest OpenCV 4.0.0+)
Stars: ✭ 108 (-93.57%)
Mutual labels:  opencv
Arm Vo
Efficient monocular visual odometry for ground vehicles on ARM processors
Stars: ✭ 115 (-93.15%)
Mutual labels:  opencv
Jpdaf tracking
A tracker based on joint probabilistic data association filtering.
Stars: ✭ 107 (-93.63%)
Mutual labels:  opencv
Imagefeaturedetector
A C++ Qt GUI desktop program to calculate Harris, FAST, SIFT and SURF image features with OpenCV
Stars: ✭ 112 (-93.33%)
Mutual labels:  opencv
Opencv Detection Models
OpenCV trained detection models: Haar, HOG and other
Stars: ✭ 116 (-93.09%)
Mutual labels:  opencv
Edge detection
This is a flutter plugin to detect edges in a live camera, take the picture of detected edges object, crop it, and save.
Stars: ✭ 116 (-93.09%)
Mutual labels:  opencv
Scriptsdump
The biggest dump of scripts ever!
Stars: ✭ 114 (-93.21%)
Mutual labels:  opencv

lbpcascade_animeface

The face detector for anime/manga using OpenCV.

Original release since 2011 at OpenCVによるアニメ顔検出ならlbpcascade_animeface.xml (in Japanese)

Usage

Download and place the cascade file into your project directory.

wget https://raw.githubusercontent.com/nagadomi/lbpcascade_animeface/master/lbpcascade_animeface.xml

Python Example

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

result

Note

I am providing similar project at https://github.com/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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].