face-detection

issues in working with android portrait mode with opencv

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 15:07:54
问题 I know this is one of the most repeated questions, however, no working solution found anywhere, after putting so much of efforts. This is really a killing issue though it might be a simple one for the experts. I am working on opencv Haar Cascade classifiers.(Eg: Face Detection, Eye Pair Detection) I have just taken the face-detection sample code from the "OpenCV-2.4.9-android-sdk" - samples. This sample code is set in Landscape mode and everything is working fine . However, i want to make

New Android Face API limitations

╄→尐↘猪︶ㄣ 提交于 2019-12-06 10:57:56
问题 I have been testing the new Face API realesed for android, and noticed even with "ACCURATE_MODE" enabled, it doesn't detect faces that old FaceDetector API used to detect, Also i would like to know the effect of Bitmap coding "RGB_565" vs "ARGB_888" in producing the results. 回答1: Update: The issue was that the face detector is set to only detect faces that are at least 10% by default (as a performance optimization). The new Google Play Services 8.4 release supports setting this minimum face

PCA in OpenCV using the new C++ interface

时光总嘲笑我的痴心妄想 提交于 2019-12-06 09:45:13
问题 As an aside: Apologies if I'm flooding SO with OpenCV questions :p I'm currently trying to port over my old C code to use the new C++ interface and I've got to the point where I'm rebuilidng my Eigenfaces face recogniser class. Mat img = imread("1.jpg"); Mat img2 = imread("2.jpg"); FaceDetector* detect = new HaarDetector("haarcascade_frontalface_alt2.xml"); // convert to grey scale Mat g_img, g_img2; cvtColor(img, g_img, CV_BGR2GRAY); cvtColor(img2, g_img2, CV_BGR2GRAY); // find the faces in

open eye and closed eye in android by Android eye detection and tracking with OpenCV

人盡茶涼 提交于 2019-12-06 09:12:24
问题 i made application eye detecting by following this link link and it work how can i detect the eye is opened or closed ? is there library in android to detect closed or opened 回答1: I've no idea whether there is any library for that, but using technique descirbed in article Eye-blink detection system for human–computer interaction by Aleksandra Królak and Paweł Strumiłło (you can download it here and here and here is some simplified version) in my opinion is a good option. Generally this

Google Vision api :How to detect face detected is either an image face or real live face?

怎甘沉沦 提交于 2019-12-06 08:38:59
I am using google vision api for face detection in my app. its working fine but in my case i need to deal with only real human faces. but my app is considering there faces in photo as a face. but i want to detect which is photo and which is live image. below is the class of face graphics private class GraphicFaceTracker extends Tracker<Face> { private GraphicOverlay mOverlay; private FaceGraphic mFaceGraphic; GraphicFaceTracker(GraphicOverlay overlay) { mOverlay = overlay; mFaceGraphic = new FaceGraphic(overlay); } /** * Start tracking the detected face instance within the face overlay. */

How to understand face detection xml

隐身守侯 提交于 2019-12-06 07:58:34
问题 I have trained faces using opencv_trainedcascade.exe. I have a series of xml files for different stages. For each xml file has internal nodes and leafVlaues and one of them is shown below. <?xml version="1.0"?> <opencv_storage> <stage0> <maxWeakCount>3</maxWeakCount> <stageThreshold>-1.3019366264343262e+000</stageThreshold> <weakClassifiers> <_> <internalNodes> 0 -1 2711 -2099201 -2623493 -774797061 -2162625 -827343685 -5535541 -1163949377 -21761</internalNodes> <leafValues> -9

Auto-capture an image from a video in OpenCV using python

落爺英雄遲暮 提交于 2019-12-06 07:51:18
问题 I am trying developing a code which functions as the self-timer camera. The video would be seen in the window and the person's face and eyes would be continuously detected and once the user selects a specific time, the frame at that point of time is captured. I am able to capture the frame after a certain time using sleep function in time module but the video frame seems to freeze. Is there any solution such that I can continue to see the video and the video capture takes place after some

OpenCV / Python : multi-threading for live facial recognition

不打扰是莪最后的温柔 提交于 2019-12-06 07:16:37
问题 I'm using OpenCv and Dlib to execute facial recognition w/ landmarks, live from the webcam stream . The language is Python . It works fine on my macbook laptop, but I need it to run from a desktop computer 24/7. The computer is a PC Intel® Core™2 Quad CPU Q6600 @ 2.40GHz 32bit running Debian Jessie. The drop in performance is drastic : there is a 10 seconds delay due to processing ! I therefore looked into multi-threading to gain performance : I first tried the sample code by OpenCv, and the

Objective-C : No Matter what I do CIDetector is always nil

旧巷老猫 提交于 2019-12-06 05:16:20
Trying to get a simple Proof of concept going with Apple's face detection API. I've looked at a couple of other examples including Apple's SquareCam, and this one https://github.com/jeroentrappers/FaceDetectionPOC based on these, it seems like I am following the correct pattern to get the APIs going, but I am stuck. No matter what I do, the CIDetector for my face detector is always nil!!! I would seriously appreciate any help, clues - hints - suggestions! -(void)initCamera{ session = [[AVCaptureSession alloc]init]; AVCaptureDevice *device; /* if([self frontCameraAvailable]){ device = [self

Android: How to draw on a Surfaceview which already is displaying a Camara Preview

本秂侑毒 提交于 2019-12-06 05:07:39
I am trying to program an application which has to display on the mobile phone's screen what is being filmed by the front camera [The application is not recording/saving anything in the memory of the phone]. Also in case a face is filmed (and detected), it has to appear sourrended by a rectangle. To do so I'm using: A Surfaceview to display what is being filmed by the front camera. A FaceDetectionListener to detect faces in the camera input. So far the application displays properly what is being filmed by the front camera. It also detects correctly faces. But I'm not able to draw the boundary