face-detection

Real time face detection is not working

限于喜欢 提交于 2019-12-19 10:35:56
问题 This code does not show the detection of face in camera, even there is no error. I want the face should be detected in realtime in camera with red squire surrounded, but I think I have not placed the code properly or where I should place something in Viewdidload or something else? import UIKit import CoreImage class ViewController: UIViewController ,UIAlertViewDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate { @IBOutlet var imageView: UIImageView! @IBAction func

Is there a way to get a measurement of confidence level when using haar face detection using OpenCV?

不打扰是莪最后的温柔 提交于 2019-12-19 06:20:32
问题 I developed an application for face detection using OpenCVs HAAR cascade face detection. The algorithm works fine, however every once in a while It finds patterns on the wall or ather things that are not faces. I want to run additional checks on object suspected as faces but I want to do it only on objects that I am not confidant that they are faces. Is there a way to get a "confidence" level for a face detected by the HAAR cascade face detection? 回答1: OpenCV provides the confidence via the

C# - Detect face and crop image

好久不见. 提交于 2019-12-18 12:36:44
问题 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

Face detection in PHP

核能气质少年 提交于 2019-12-18 10:55:30
问题 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

Face detection in PHP

南楼画角 提交于 2019-12-18 10:55:21
问题 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

Facial recognition/detection PHP or software for photo and video galleries

孤者浪人 提交于 2019-12-18 09:54:09
问题 I have a very large photo gallery with thousands of similar people, objects, locations, things. The majority of the people in the photos have their own user accounts and avatar photos to match. There are also logical short lists of people potentially in the photo based on additional data available for each photo. I allow users to tag photos with their friends and people they know but an automated process would be better. I've used photo tagger/finder from face.com integrating with Facebook

OpenCV to JNI how to make it work?

怎甘沉沦 提交于 2019-12-18 09:53:30
问题 I am tring to use opencv and java for face detection, and in that pursit i found this "JNI2OPENCV" file....but i am confused on how to make it work, can anyone help me? http://img519.imageshack.us/img519/4803/askaj.jpg and the following is the FaceDetection.java class JNIOpenCV { static { System.loadLibrary("JNI2OpenCV"); } public native int[] detectFace(int minFaceWidth, int minFaceHeight, String cascade, String filename); } public class FaceDetection { private JNIOpenCV myJNIOpenCV; private

OpenCV (CvHaarClassifierCascade*) cvLoad doesn't load , unable to load xml file

馋奶兔 提交于 2019-12-18 05:26:09
问题 I'm trying face detection using OpenCv 2.3 . My trying to load "haarcascade_frontalface_alt_tree.xml" on my project , I'm constantly unable to load the xml file. CvHaarClassifierCascade * pCascade = 0; // the face detector const char* file ="C:\OpenCV2.3\opencv\data\haarcascades\haarcascade_frontalface_alt_tree.xml" ; pCascade = (CvHaarClassifierCascade*) cvLoad(file , NULL, NULL, NULL); if (!pCascade) { exit(-1); // unable to load xml } I believe that I'm expeiancing the same problem as this

Crop Image with face detection in android

爱⌒轻易说出口 提交于 2019-12-17 10:37:26
问题 I needed a demo where any image can be cropped with the face detection function. FIXED But after few surfing hours I didn't come to a single demo, so I prepared a single demo with conjunction of few demos that I found online. I have prepared a demo to crop the image. My demo crops the image rectangle, and circular as well. Also it detects the face and crops the image according to the face detection. I am using the following image to crop it. And the screenshot of the crop result is : The xml

Android FaceDetector.Face Euler angles are 0 all the time

拈花ヽ惹草 提交于 2019-12-13 17:06:16
问题 I'm trying to get a the Euler angle of a Face that is detected by FaceDetector. Here is what I use to output to Logcat: Log.v("debug", " X: " + face.pose(Face.EULER_X) + " Y: " + face.pose(Face.EULER_Y) + " Z: " + face.pose(Face.EULER_Z) ); But it always returns 0.0 for all three, no matter what angle the face is at. Any ideas why? 回答1: Yeah the FaceDetector from API 1 never returns a pose angle. You can look at the source code to verify. The newer FaceDetectionListener from API 14 will