face-detection

Dog face detection with dlib - need advice on improving recal

被刻印的时光 ゝ 提交于 2019-12-31 00:59:45
问题 I'm trying to train a dog face detector with dlib's hog pyramid detector. I used Columbia dogs dataset: ftp://ftp.umiacs.umd.edu/pub/kanazawa/CU_Dogs.zip At first I would get a recall of 0%, but by increasing C value I managed to increase it to 62% on training set and 53% on testing set. After certain point increasing C value stopped helping (1000+) and would only slow down training. Precision is really high though, if it actually manages to find dog's face it's always correct, haven't seen

Face Detection on iPhone using OpenCV and LBP

感情迁移 提交于 2019-12-30 02:29:14
问题 I have been successfully working with the Haar algorithm in OpenCV-2.1.0 (cvHaarDetectObjects) to detect faces in pictures and video frames from within an Objective-C project for iOS 4.2. However, the processing time for the video frames still takes about 1-2 seconds on the iPhone 4 under most conditions. An example of the code I am using is given below: NSString *path = [[NSBundle mainBundle] pathForResource:@"haarcascade_frontalface_alt" ofType:@"xml"]; CvHaarClassifierCascade* cascade =

Access denied due to invalid subscription key (Face API)

ε祈祈猫儿з 提交于 2019-12-29 06:44:09
问题 I am having trouble using Microsoft Face API. Below is my sample request: curl -v -X POST "https://westus.api.cognitive.microsoft.com/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false&returnFaceAttributes=age,gender" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: 1xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxd" --data-ascii "{\"url\":\"http://www.mrbeantvseries.co.uk/bean3.jpg\"}" I use the subscription id from my cognitive services account and I got below response: {

Unable to detect face and eye with OpenCV in Python

浪尽此生 提交于 2019-12-25 09:16:00
问题 This code is to detect face and eyes using webcam but getting this error Traceback (most recent call last): File "D:/Acads/7.1 Sem/BTP/FaceDetect-master/6.py", line 28, in <module> eyes = eyeCascade.detectMultiScale(roi) NameError: name 'roi' is not defined but when i use this code do detect faces and eyes in a image its working properly without any error import matplotlib import matplotlib.pyplot as plt import cv2 import sys import numpy as np import os faceCascade = cv2.CascadeClassifier(

FaceDetect OpenCV2.1 sample, Access violation writing location 0x00000000

孤街浪徒 提交于 2019-12-25 01:07:14
问题 I try to run facedetect opencv sample with vs2010. debug result "Unhandled exception at 0x53fa42bf in facedetect.exe: 0xC0000005: Access violation writing location 0x00000000." Here is the code txt file: http://ebooks-libs.com/backup/facedetect-opencv2.1.txt cpp file: http://ebooks-libs.com/backup/facedetect.cpp #include "stdafx.h" #include <iostream> #include <cstdio> #define CV_NO_BACKWARD_COMPATIBILITY #include "cv.h" #include "highgui.h" #ifdef _EiC #define WIN32 #endif using namespace

Amazon Rekognition detect celebrity from stream video

十年热恋 提交于 2019-12-24 23:01:38
问题 Amazon Rekognition Celebrity Detection Ios: Done for face detection with a provided image via camera and photo library. Tried to manage with video (Either from bundle or live URL), to detect celebrity image over the video. sendVideoToRekognition(celebVideoData: video) func sendVideoToRekognition(celebVideoData: URL){ //Delete older labels or buttons DispatchQueue.main.async { [weak self] in for subView in (self?.CelebImageView.subviews)! { subView.removeFromSuperview() } } rekognitionObject =

Google Face Detection crashing when converting to image and trying to detect face

杀马特。学长 韩版系。学妹 提交于 2019-12-24 09:48:01
问题 I am creating a custom camera with filters. When I add the following line it crashes without showing any exception. //Setting video output func setupBuffer() { videoBuffer = AVCaptureVideoDataOutput() videoBuffer?.alwaysDiscardsLateVideoFrames = true videoBuffer?.videoSettings = [(kCVPixelBufferPixelFormatTypeKey as NSString): NSNumber(value: kCVPixelFormatType_32RGBA)] videoBuffer?.setSampleBufferDelegate(self, queue: DispatchQueue.main) captureSession?.addOutput(videoBuffer) } public func

Fatal signal 11 (SIGSEGV) when use RxJava and play services vision

时光毁灭记忆、已成空白 提交于 2019-12-24 00:39:42
问题 In my application I use the definition of the person position in the picture. After that, using RxJava I process the resulting image and output the result. After complete re-run that process. All working perfectly on devices such as samsung, huawei, meizu and other (with android version 5.0 and higher). But on xiaomi (no matter what version of android) I getting this error: A/libc: invalid address or address of corrupt block 0xabc932a8 passed to dlfree A/libc: Fatal signal 11 (SIGSEGV), code

OpenCV identify person with face detection

不问归期 提交于 2019-12-23 12:15:54
问题 I would like to identify people through face detection. I found that OpenCV implements a method to detect faces but nothing on how to recognize a specific person! Do I have to make a learning system like SVM to be able to identify people or is there an out-of-box function for that? Thanks, 来源: https://stackoverflow.com/questions/30467909/opencv-identify-person-with-face-detection

How to determine the distance between upper lip and lower lip by using webcam in Processing?

你说的曾经没有我的故事 提交于 2019-12-23 02:18:25
问题 Where should I start? I can see plenty of face recognition and analysis using Python, Java script but how about Processing ? I want to determine the distance by using 2 points between upper and lower lip at their highest and lowest point via webcam to use it in further project. any help would be appreciated 回答1: If you want to do it in Processing alone you can use Greg Borenstein's OpenCV for Processing library: You can start with the Face Detection example Once you detect a face, you can