face-detection

OpenCv assertion failed

跟風遠走 提交于 2019-11-28 06:48:07
问题 I am working on application for finding face in 2D image and later inside same image I want to find mouth, but I have some problem right now. This is my code so far: for (int i = 0; i < faces.size(); i++) { Point pt1(faces[i].x, faces[i].y); Point pt2((faces[i].x + faces[i].height), (faces[i].y + faces[i].width)); rectangle(frame, pt1, pt2, Scalar(255,0 , 0), 2, 8, 0); //I WANT ROI(FOR MOUTH DETECTION) TO BE ONLY HALF OF THE RECTANGLE WITH FACE Rect mouthROI; mouthROI.x = (faces[i].x);

Face gender detection library [closed]

假装没事ソ 提交于 2019-11-28 03:16:40
I'm looking for an SDK or library that can detect faces in a webcam stream, and detect gender. Free or paid, C++ or C# under Windows. Any suggestions? I did an experiment on gender classification with the Fisherfaces method in my blog at: http://bytefish.de/blog/gender_classification and got a 98% recognition rate for geometrically normalized images. I am providing an implementation of the Fisherfaces method for GNU Octave/MATLAB, Python and C++. libfacerec , a modern face recognition library for the OpenCV C++ API (BSD license), includes an implementation of the Fisherfaces method. The latest

Viola-Jones' face detection claims 180k features

我们两清 提交于 2019-11-28 02:39:46
I've been implementing an adaptation of Viola-Jones' face detection algorithm . The technique relies upon placing a subframe of 24x24 pixels within an image, and subsequently placing rectangular features inside it in every position with every size possible. These features can consist of two, three or four rectangles. The following example is presented. They claim the exhaustive set is more than 180k (section 2): Given that the base resolution of the detector is 24x24, the exhaustive set of rectangle features is quite large, over 180,000 . Note that unlike the Haar basis, the set of rectangle

Face Detection issue using CIDetector

自古美人都是妖i 提交于 2019-11-27 22:25:21
问题 I'm working on an app in which i have to detect left eye, right eye, and mouth position. I have an imageView on my self.view and imageView contains a face image, now I want to get both eyes and mouth coordinates. I have seen 2-3 sample codes for this but all are approximately same in all codes we have to invert my view for matching the coordinates which I don't want because my view have some other controls. And one more thing they all are using UIImageView *imageView = [[UIImageView alloc

CIDetector and UIImagePickerController

有些话、适合烂在心里 提交于 2019-11-27 21:54:39
问题 I'm trying to implement the built-in iOS 5 face detection API. I'm using an instance of UIImagePickerController to allow the user to take a photo and then I'm trying to use CIDetector to detect facial features. Unfortunately, featuresInImage always returns an array of size 0. Here's the code: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage* picture = [info objectForKey:UIImagePickerControllerOriginalImage]; NSNumber

How to detect the skin color of face from the source image in ios 5?

流过昼夜 提交于 2019-11-27 17:04:17
问题 I need to color the skin of the face... How do i find the skin color? now i get the skin color by RGB pixel value ... Still i am facing the problem i was matching the color coordinates to match the skin by certain color range... but still some area of the face not fall in my range of colors then it is not color that area.. other than the face area may fall that region, that area also colored... Any idea about my issue... Thanks in advance.... MY code: -(void)colorImageBySliderValue:(float

How to detect eye pupils and measure distance between pupils in iPhone

∥☆過路亽.° 提交于 2019-11-27 16:57:01
问题 I have studied a lot of example about face detection and also I have detected the eye in iPhone using CIDetector and HaarCascade_eye.xml . But I want to detect the pupils of eye and want to measure the distance between pupils. Please guide me something so that I could do that. 回答1: To calculate distance between two points using the following formula: This will get center points of the two eyes (as detected by CIDetector) and compare their locations to output the measurements you're looking

Android camera2 face recognition

半城伤御伤魂 提交于 2019-11-27 15:45:40
问题 There is not enough info about camera2 face recognition mechanism. I used Camera2 sample from Google: android-Camera2Basic I set face recognition mode to FULL. mPreviewRequestBuilder.set(CaptureRequest.STATISTICS_FACE_DETECT_MODE, CameraMetadata.STATISTICS_FACE_DETECT_MODE_FULL); Also I checked STATISTICS_INFO_MAX_FACE_COUNT and STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES : int max_count = characteristics.get( CameraCharacteristics.STATISTICS_INFO_MAX_FACE_COUNT); int modes [] =

Android Face Detection [duplicate]

自作多情 提交于 2019-11-27 15:20:08
问题 This question already has an answer here: Face Detection in Android? 3 answers I am trying to do face detection on android, and I am following the guide http://www.richardnichols.net/2011/01/java-facial-recognition-haar-cascade-with-jjil-guide/ but on android instead. When i do Gray8DetectHaarMultiScale detectHaar = new Gray8DetectHaarMultiScale(is, minScale, maxScale); RgbAvgGray toGray = new RgbAvgGray(); toGray.push(RgbImage); detectHaar.pushAndReturn(toGray.getFront()); It seems that

How can I update the Android Gallery after a photo?

跟風遠走 提交于 2019-11-27 14:52:35
For the university i've to develop an application on android with the face detections. For this i've to save various photo on my gallery. The problem is that after saving the photo, the gallery do not update. More precisely, if I delete the directory where I'm going to save the image, I open the application and shoot the photo, then going into the gallery and after an "update" I see the photo. But once I have the directory, if I take a new picture, this did not overwrite the old one. Online i've found this: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED,Uri.parse("file://" + Environment