face-detection

Skin Color Detection using opencv

别等时光非礼了梦想. 提交于 2019-12-03 15:15:11
问题 How to detect the colour of the skin using OpenCV? What about using OpenCV Haar face detector to find a face region and then getting the average or most common color in that face region, since it should be the skin color? Update: Environment: My frames will have the facial features. (only From hair to shoulders, as attached) 回答1: you really don't need HAAR detection. the following will definitely work... my answer for this and similar issues involving color based detection: https:/

face alignment algorithm on images

江枫思渺然 提交于 2019-12-03 14:24:03
How can I do a basic face alignment on a 2-dimensional image with the assumption that I have the position/coordinates of the mouth and eyes. Is there any algorithm that I could implement to correct the face alignment on images? Face (or image) alignment refers to aligning one image (or face in your case) with respect to another (or a reference image/face). It is also referred to as image registration. You can do that using either appearance ( intensity-based registration ) or key-point locations ( feature-based registration ). The second category stems from image motion models where one image

How can I detect faces using Ruby?

亡梦爱人 提交于 2019-12-03 09:45:01
问题 Can anyone tell me how to detect faces in a static picture using Ruby or Javascript? 回答1: If you are going to try and write something from scratch, there is a great explanation of the process on the Carnegie Mellon Website - neat graphics too. However, your best bet is probably trying to hook into the Opensource Computer Vision project. Here is a good tutorial on using OpenCV for facial recognition. 回答2: Since the other answers to that interesting question are mostly outdated now, here the

Capture camera preview for using in OpenCV. Converting to RGB and Gray Mat's. Java. Android

坚强是说给别人听的谎言 提交于 2019-12-03 09:22:15
I want to detect faces on camera previews. I saw this example in OpenCV samples: @Override protected Bitmap processFrame(VideoCapture capture) { capture.retrieve(mRgba, Highgui.CV_CAP_ANDROID_COLOR_FRAME_RGBA); capture.retrieve(mGray, Highgui.CV_CAP_ANDROID_GREY_FRAME); if (mCascade != null) { int height = mGray.rows(); int faceSize = Math.round(height * FdActivity.minFaceSize); List<Rect> faces = new LinkedList<Rect>(); mCascade.detectMultiScale(mGray, faces, 1.1, 2, 2 // TODO: objdetect.CV_HAAR_SCALE_IMAGE , new Size(faceSize, faceSize)); for (Rect r : faces) Core.rectangle(mRgba, r.tl(), r

Real time face detection with Camera on swift 3

一世执手 提交于 2019-12-03 09:11:27
How can I do face detection in realtime just as "Camera" does? like white round shape around and over the face. I use AVCapturSession . I found that the image I saved for facial detection. Below I have attached my current code. it only captures image when I press the button and save it into the photo gallery. some please help me to create real-time round shape over according to the person's face! code class CameraFaceRecongnitionVC: UIViewController { @IBOutlet weak var imgOverlay: UIImageView! @IBOutlet weak var btnCapture: UIButton! let captureSession = AVCaptureSession() let

iOS face detector orientation and setting of CIImage orientation

六眼飞鱼酱① 提交于 2019-12-03 08:54:16
EDIT found this code that helped with front camera images http://blog.logichigh.com/2008/06/05/uiimage-fix/ Hope others have had a similar issue and can help me out. Haven't found a solution yet. (It may seem a bit long but just a bunch of helper code) I'm using the ios face detector on images aquired from the camera (front and back) as well as images from the gallery (I'm using the UIImagePicker - for both image capture by camera and image selection from the gallery - not using avfoundation for taking pictures like in the squarecam demo) I am getting really messed up coordinates for the

OpenCV Lip Segmentation

痴心易碎 提交于 2019-12-03 08:04:49
How do people usually extract the shape of the lips once the mouth region is found (in my case using haar cascade)? I tried color segmentation and edge/corner detection but they're very inaccurate for me. I need to find the two corners and the very upper and lower lip at the center. I've heard things about active appearance models but I'm having trouble understanding how to use this with python and I don't have enough context to figure out if this is even the conventional method for detecting different parts of the lips. Is that my best choice or do I have other options? If I should use it,

Delphi Components for Face Identification and Tagging

主宰稳场 提交于 2019-12-03 08:02:16
Are there any good components, free or commercial, available for Delphi (I use Delphi 2009) that will allow me to easily implement face detection and tagging of the faces in photos (i.e. graphics/images)? I need to do something similar to what Google Picasa's Web Albums can do, but from within my application. Here is what you wanted http://delphimagic.blogspot.com/2011/08/reconocimiento-de-caras-con-delphi.html gjutras Did you see the SDK's that come in the answer Face recognition Library . The one from nuerotechnology has an activex component that you could use. 来源: https://stackoverflow.com

Using OpenCV detectMultiScale to find my face

空扰寡人 提交于 2019-12-03 07:39:46
I'm pretty sure I have the general theme correct, but I'm not finding any faces. My code reads from c=cv2.VideoCapture(0) , i.e. the computer's videocamera. I then have the following set up to yield where the faces are. As you can see, I'm looping through different scaleFactors and minNeighbors but rects always comes back empty. I've also tried each of the four different haarcascade xml files included in the opencv/data/haarcascades package. Any tips? while(1): ret, frame = c.read() rects = find_face_from_img(frame) def detect(img, cascade): for scale in [float(i)/10 for i in range(11, 15)]:

iOS Face Detection Issue

被刻印的时光 ゝ 提交于 2019-12-03 06:23:06
I am trying to use CoreImage's face detection in iOS 5 but it is not detecting anything. I am trying to detect faces in an image that was just captured by the camera using this code: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"]; NSDictionary *detectorOptions = [[NSDictionary alloc] initWithObjectsAndKeys:CIDetectorAccuracyHigh, CIDetectorAccuracy, nil]; CIDetector *faceDetector = [CIDetector detectorOfType:CIDetectorTypeFace context:nil options