face-detection

How to choose the cascade file for face detection?

雨燕双飞 提交于 2020-01-11 15:48:10
问题 I am a freshman for face detection. These days I try to compile the OpenCV2.1 code for face detection. I found that there are about 4 cascade files for front face detection, which are "haarcascade_frontalface_alt.xml","haarcascade_frontalface_alt_tree.xml","haarcascade_frontalface_alt2.xml" and "haarcascade_frontalface_default.xml" I did not find any documents to describe the difference among them, which is prefer for face detection task? 回答1: To get an idea how successful each one is, how

Displaying detected faces on a JPanel

瘦欲@ 提交于 2020-01-07 08:55:49
问题 I am working on a project for detecting faces from an input image. I am using opencv with Java. The problem which I'm facing is as below The faces that are detected are to be placed on a JLabel s setIcon method. First time it places the faces, but for the next image, the previous faces are not cleared. Following code that I tried to add and remove faces 1) Adding faces: jFaceLabel is JLabel array initialized to size 100 jpDetectedImage is a JPanel which contains the JLabels (faces) jFaceLabel

Use Zhu Ramanan code in a web application

扶醉桌前 提交于 2020-01-06 07:03:52
问题 I have to use Face-eye detection algorithm by Zhu Ramanan in a web application. They have provided the code in Matlab and main computation is done in C++. Since I am new to image processing and matlab, i am not able to understand how to proceed on making it run with my web app. I found that Matlab code can be ported to c++ by using coder function. So I tried using coder function in matlab which opened a Build menu wherein I selected C/C++ executable. But the build gets stuck when the code is

Use Zhu Ramanan code in a web application

∥☆過路亽.° 提交于 2020-01-06 07:03:46
问题 I have to use Face-eye detection algorithm by Zhu Ramanan in a web application. They have provided the code in Matlab and main computation is done in C++. Since I am new to image processing and matlab, i am not able to understand how to proceed on making it run with my web app. I found that Matlab code can be ported to c++ by using coder function. So I tried using coder function in matlab which opened a Build menu wherein I selected C/C++ executable. But the build gets stuck when the code is

pupil Detection and cvHoughCircles?

牧云@^-^@ 提交于 2020-01-05 13:43:34
问题 I'm trying to improve my pupil detection (I'm using Javacv). At the moment, I have this method below where I draw rectangle around the found pupil. I want to try to have something like a circle across the iris and a dot on the pupil to make it more accurate. Maybe by finding the iris using (hough circle) -> then find the largest blob within the iris. How do I go about that? private void drawPupilRect(Graphics2D g2, CvRect eye) // draw outline rectangle around the pupil+iris { CvRect pupil =

C++ face detection/recognition implementations

烂漫一生 提交于 2020-01-04 06:24:10
问题 I'd have thought that google could answer this question, but I've not had much luck. Does anyone know of any open source C++ implementations of any face detection algorithms other than the Viola-Jones (boosted cascades of Haar-like features) method? Also, does there exist an open source C++ implementation of Fisherfaces anywhere? Thanks. 回答1: This post gets some attention, so I'd like to update it. I've contributed the face recognition library I wrote to OpenCV, which includes Eigenfaces,

Threshold values for viola jones object detection

北战南征 提交于 2020-01-03 05:01:08
问题 I am trying to perform Adaboost training stated by Viola and Jones in their paper on rapid object detection. However, I do not understand how to get the threshold values that will classify the faces from non faces for each of the 160k features. Is this a threshold you set manually? or is this based on some kind of maths ? Can someone please explain the maths to me thanks a lot. 回答1: IMO, the best way to describe what happens during threshold assignment of the weak classifiers in every

python face detection raspberry pi with picamera

守給你的承諾、 提交于 2020-01-03 03:19:10
问题 I am a newbie with python and opencv i am trying to build a face detection project with raspberry pi. i am getting this error and here is my code Traceback (most recent call last): File "/home/pi/Desktop/picamera-code/FaceDetection1.0", line 19, in <module> for frame in camera.capture_continuous(rawCapture, format="bgr", use_video_port=True): Code: import numpy as np import cv2 from picamera.array import PiRGBArray from picamera import PiCamera import time camera = PiCamera() camera

Putting a 3D face filter by using the Vision API

感情迁移 提交于 2020-01-02 06:15:31
问题 The similar question has been asked here: Add 2D or 3D Face Filters like MSQRD/SnapChat Using Google Vision API for iOS. However, it has not been answered yet. Essentially, my work assignment is to put a 3D face filter on a person's face while the phone's front-facing camera is being used. Given that the Mobile Vision API/the GitHub Android Vision project provide a way to detect a human face and stick some drawable images on it, but what my users want is a 3D object (cat or dog face) like

cvPyrDown vs cvResize for face detection optimization

假如想象 提交于 2020-01-02 05:45:10
问题 I want to optimize my face detection algorithm by scaling down the image. What is the best way? should I use cvPyrDown (as I saw in one example and yielded poor results so far), cvResize or another function? 回答1: If you only want to scale the image, use cvResize as Adrian Popovici suggested. cvPyrDown will apply a Gaussian blur to smooth the image, then by default it will down-sample the image by a factor of two by rejecting even columns and rows. This smoothing may be degrading your