face-detection

How to save resulted face landmark image in dlib?

喜夏-厌秋 提交于 2019-12-12 08:49:17
问题 I am using dlib's face_landmark_detection_ex.cpp which display the detected face image and all face landmarks on the original image. I want to save the original image with all 68 face face landmarks to my computer. I know it can be done by save_png and draw_rectangle function of dlib but draw_rectangle only give detected face rectangle position, along with it, I also want to draw the landmark points on the original image and save them like this : 回答1: The parameter pixel_type is used to

Detect skin tone from an image

ⅰ亾dé卋堺 提交于 2019-12-12 07:52:06
问题 I am trying to develop an application which will detect the color of the face once an image is provided. I was able to find out the face detection algorithm from OpenCV and integrate it. However I could not find any example or interface by which I can detect the color of the face. I have the logic which I am presenting. Please let me know if there is anything available for this or do I need to write the separate function for this? Logic : in the given image area, find the color detail which

Object detection with R-CNN?

早过忘川 提交于 2019-12-12 07:38:53
问题 What does R-CNN actually do? Is it like using features extracted by CNN to detect classes in a specified window area? Is there any tensorflow implementation for this? 回答1: R-CNN is using the following algorithm: Get region proposals for object detection (using selective search). For each region crop the area from the image and run it thorough a CNN which classify the object. There are more advanced algorithms that are built upon this like fast-R-CNN and faster R-CNN. fast-R-CNN: Run the

How can I crop Detected Face from the Video Streaming and store it in a folder using OpenCV Java?

放肆的年华 提交于 2019-12-11 05:55:53
问题 I am using OpenCV 2.4.9, Java language and eclipse. My Face Detection code is given below. The question is how can I crop out the detected face and store it in a folder? I've trying hard for it but couldn't get the required output. package code03; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.image.BufferedImage; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextField;

How to normalize an image using Octave?

允我心安 提交于 2019-12-11 05:02:09
问题 In their paper describing Viola-Jones object detection framework (Robust Real-Time Face Detection by Viola and Jones), it is said: All example sub-windows used for training were variance normalized to minimize the effect of different lighting conditions. My question is "How to implement image normalization in Octave?" I'm NOT looking for the specific implementation that Viola & Jones used but a similar one that produces almost the same output. I've been following a lot of haar-training

how to limit number of faces detected by haar cascades

放肆的年华 提交于 2019-12-11 02:48:02
问题 I am using Haar cascade in an emotion detection system. Every video input I am giving to the model has only one face in it (It is a requirement). When I run Haar cascade model to detect faces, it has some false positives. Since I have only one face in the video, I want to take the most positive area detected and ignore all other detection. Is there a way to do that? 回答1: when you are calling detectMultiScale function, set the minNeighbours value to a high value to avoid false positives. Also,

facial expression classification using k-means

不想你离开。 提交于 2019-12-11 01:48:10
问题 My method for classifying facial expressions using k-means is: Use opencv to detect the face in the image Use ASM and stasm to get the facial feature point Calculate the distance between facial features (as show in the picture). There'll be 5 distances. Calculate the centroid for each distance for each facial expression (exp: in the distance D1 there are 7 centroids for each expression 'happy, angry...'). Use 5 k-means each k-means for a distance and each k-means will have as a result the

Video Capturing Face Detection- Android

不羁的心 提交于 2019-12-10 19:42:39
问题 In order to track/detect face during a video capturing. I have reached been able to capture and stored a video. Now I am adding face detection in it. I am now on detecting face during video capture. How can I check that the facedetect is even working. What changes can i make : public class AndroidVideoCaptureExample extends Activity { private Camera mCamera; private int vWidth, vHeight; private CameraPreview mPreview; private MediaRecorder mediaRecorder; private Button capture, switchCamera;

OpenCV CascadeClassifier error

泄露秘密 提交于 2019-12-10 17:45:02
问题 i'm trying to do face detection through a webcam, but i got an error, cascadeclassifier error. After do some testing, i found this line of code generate the error CascadeClassifier face_cascade = new CascadeClassifier(); The error i got is Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.objdetect.CascadeClassifier.CascadeClassifier_0()J at org.opencv.objdetect.CascadeClassifier.CascadeClassifier_0(Native Method) at org.opencv.objdetect.CascadeClassifier.<init>

Can someone explain about detectMultiScale in openCV

非 Y 不嫁゛ 提交于 2019-12-10 11:52:43
问题 I've been trying objectDetection in openCV.. Followed a few steps.. Resizing it to 64x64 resolution Changing it to gray scale Fetching XML for object detection Drawing rectangle fringing the pattern Yet, I couldn't achieve it.. Here's my code : #include<iostream> #include "cv.h" #include "highgui.h" #include<vector> using namespace cv; using namespace std; int main() { IplImage* img; img = cvLoadImage( "hindi3.jpg" ); vector<cv::Rect> objects; // ***Resize image to 64x64 resolution***