face-detection

rotated face detection

孤街浪徒 提交于 2019-11-30 11:52:34
问题 Is there a library for detecting faces that have been rotated in the image plane? Or is there some way in which I could use a cascade for upright face detection with opencv to do it? 回答1: Here's a simple one I wrote with Python cv2 It's not the most efficient thing, and it uses the naive way suggested by etarion, but it works fairly well for just normal head tilting (It detect anything from -40 to 40 head tilt, which is roughly as much as you can tilt your head staying upright. import cv2

C# - Detect face and crop image

梦想与她 提交于 2019-11-30 10:02:35
I'm writing a HttpHandler in C# which serves resized images and blah blah blah... No troubles, we have millions of handlers to use as reference. The problem is that I have pictures of my users taken with "traditional" sizes, as 4:3 and 16:9. But this handler will need to serve the picture in a Photo ID size (4cm by 3cm) and obviously has need of cropping around the user face . The faces positions vary a lot (aren't always at the picture center). So, what kind of algorithm I could use to detect the face center and then crop the image around this point? Muhammad Hasan Khan You can use

UIImagePickerController disable iPhone 4S face detection (iOS 5.1)

这一生的挚爱 提交于 2019-11-30 09:27:32
问题 I am currently developing an iPhone app that makes use of a UIImagePickerController with a custom overlay to take photos. Unfortunately I do not have direct access to an iPhone 4S but several testers have reported that the camera picker is drawing a green border around faces exactly like this: http://cdn.iphonehacks.com/wp-content/uploads/2012/03/camera_faces.jpg Due to the nature of this app this is not desirable. A thorough search of the UIImagePickerController docs didn't turn up anything

Face detection & draw circle using Android Camera2 API

放肆的年华 提交于 2019-11-30 08:49:57
Currently I am trying to convert Camera2.Face to actual view's rect in order to draw circle over the face detected by the Camera2 API. I am able to get number of faces and its data into Callback by below code: private CameraCaptureSession.CaptureCallback mCaptureCallback = new CameraCaptureSession.CaptureCallback() { private void process(CaptureResult result) { Integer mode = result.get(CaptureResult.STATISTICS_FACE_DETECT_MODE); Face [] faces = result.get(CaptureResult.STATISTICS_FACES); if(faces != null && mode != null) Log.e("tag", "faces : " + faces.length + " , mode : " + mode ); }

Understanding OpenCV LBP implementation

半城伤御伤魂 提交于 2019-11-30 05:21:05
I need some help on LBP based face detection and that is why I am writing this. I have the following questions related to face detection implemented on OpenCV: In lbpCascade_frontal_face.xml (this is from opencv): what is internalNodes, leafValues, tree,features etc? I know they are used in the algorithm . But I do not understand the meaning of each one of them. For example, why we take a particular feature and not the other for a particular stage? how we are deciding which feature/ node to choose? What is feature values in the LBP_frontal_face_classifier.xml? I know they are a vector of 4

Face Detection Algorithms with minimal training time [closed]

对着背影说爱祢 提交于 2019-11-30 04:08:24
Wanted to ask if there was any kind of face detection scheme suitable for video that would require minimal training time ideally about a few days rather than weeks like the Viola-Jones. I have read about LBP but it requires a huge set of training samples too but not sure how long it takes. Does training an LBP consume as much time as the Viola - Jones method with a similar number of training set ?. I will be implementing this on a microprocessor like raspberry pi running on a linux OS. Will want to implement it on C for speed as I want it to be able to detect images in a 10fps - 20fps video

rotated face detection

与世无争的帅哥 提交于 2019-11-30 01:34:45
Is there a library for detecting faces that have been rotated in the image plane? Or is there some way in which I could use a cascade for upright face detection with opencv to do it? Here's a simple one I wrote with Python cv2 It's not the most efficient thing, and it uses the naive way suggested by etarion, but it works fairly well for just normal head tilting (It detect anything from -40 to 40 head tilt, which is roughly as much as you can tilt your head staying upright. import cv2 from math import sin, cos, radians camera = cv2.VideoCapture(0) face = cv2.CascadeClassifier("haarcascade

Classifiers confidence in opencv face detector

霸气de小男生 提交于 2019-11-30 01:08:46
问题 I'm using opencv's har cascade face detector (cv.HaarDetectObjects) in python. for example: faces = cv.HaarDetectObjects(grayscale, cascade, storage, 1.2, 2, cv.CV_HAAR_DO_CANNY_PRUNING, (50,50)) for f in faces: print(f) This will print a list of detections in this form: ((174, 54, 114, 114), 53) ((22, 51, 121, 121), 36) ((321, 56, 114, 114), 21) ((173, 263, 125, 125), 51) ((323, 272, 114, 114), 20) ((26, 271, 121, 121), 36) Where each line represent a detection. The first 4 numbers are the x

Face detection in PHP

♀尐吖头ヾ 提交于 2019-11-30 00:32:55
Does anybody know of a good way to do face detection in PHP? I came across some code here that claims to do this, but I can't seem to get it to work properly. I'd like to make this work (even though it will be slow) and any help you can give me would be really appreciated. Here's the code from the link: <?php // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS

Face Detection with Camera

社会主义新天地 提交于 2019-11-29 19:26:40
How can I do face detection in realtime just as "Camera" does? I noticed that AVCaptureStillImageOutput is deprecated after 10.0, so I use AVCapturePhotoOutput instead. However, I found that the image I saved for facial detection is not so satisfied? Any ideas? UPDATE After giving a try of @Shravya Boggarapu mentioned. Currently, I use AVCaptureMetadataOutput to detect the face without CIFaceDetector . It works as expected. However, when I'm trying to draw bounds of the face, it seems mislocated. Any idea? let metaDataOutput = AVCaptureMetadataOutput() captureSession.sessionPreset =