face-detection

how to draw rectangle around face in Image while capturing photo [duplicate]

徘徊边缘 提交于 2019-12-13 11:29:45
问题 This question already has answers here : Face Detection in Android? (3 answers) Closed 4 years ago . in my current application I want to draw rectangle around face while capturing using Android device camera, and also want to save only face area inside rectangle on SD card. I gone through lot of links like link1 link2 link3 but unable to find proper solution. Can anyone has worked on this. Any help would be appreciated. 回答1: For Face Detection and eye detection there are many tutorial

Where can I find facial fiducial points haarcascade for use with opencv

风格不统一 提交于 2019-12-13 07:46:18
问题 I am looking for already trained haarcascades of facial fiducial points (left corner of left eye, right corner of left eye, left corner of right eye, right corner of right eye, left corner of mouth, right corner of mouth, left, center and right side of nose). Does anyone know where can I download an already trained haarcascades to use with OpenCV's VJ function? 回答1: If I m not so badly mistaken, HaarCascade works with objects not with specific points. There are already classifiers for nose

Unable to detect different images for face detection Mobile Vision API

为君一笑 提交于 2019-12-13 04:39:21
问题 I am using Mobile Vision API in my app for face detection so far I have been successful in doing so. It works fine for a particular image which I have set when I was running the app for the first time but after that.. I have tried to replace different images for face detection it gives the error java.lang.OutOfMemoryError Following is my code Bitmap myBitmap; FaceDetector detector; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Firebase ML Kit how to run Face Detection in Background as service?

回眸只為那壹抹淺笑 提交于 2019-12-13 04:17:07
问题 In my app before i have used google gms vision for face detection . I have used the https://developers.google.com/android/reference/com/google/android/gms/vision/CameraSource.Builder to create the camerasource in my background service class. But in Firebase ML Kit no common package is added for camerasource builder and preview. Is there any possibilities to use CameraSourcePreview and CameraSource Builder in Background service class. I have tired by adding the CameraSourcePreview layout at

MTCNN_face_detection_alignment lagging in IP camera, Convention behind opencv cv2 videocapture frame matrix

倖福魔咒の 提交于 2019-12-13 03:11:59
问题 I am just trying to detect and recognize faces from the frame read through CV2 VideoCapture. For detection, using Tensorflow implementation of the face detection / alignment algorithm found at https://github.com/kpzhang93/MTCNN_face_detection_alignment. MTCNN Face detection process has no lag with builtin webcam and external camera connected with USB. However when it comes from IP camera there is a considerable lagging from detection algorithm. The algorithm takes more time to process single

CIDetector trackingID never present

夙愿已清 提交于 2019-12-12 15:08:59
问题 I'm working on some face detection code on OSX Mavericks and I'm trying to take advantage of the newish (as of 10.8) face tracking across multiple stills functionality that CIDetector offers. I have basic face detection working fine, like so: - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection { CVImageBufferRef imageBuffer = CMSampleBufferGetImageBuffer(sampleBuffer); CIImage *image =

Android API face detection vs. OpenCV/JavaCV face detection

一笑奈何 提交于 2019-12-12 14:31:08
问题 I've used local Android face detection on an Android device, but it seems quite slow and I'm not so sure on the reliability. I've also used OpenCV's face detection but only on PC, as opposed to an Android device. For Android, I'm guessing I'll have to use JavaCV (or OpenCV4Android?). Do you know what the speed differences are between Android API's facial detection and OpenCV's facial detection? I'm sure OpenCV/JavaCV is both more efficient/faster and more accurate, but cannot confirm. Thanks!

Low accuracy of shape predictor with default dataset and training

自作多情 提交于 2019-12-12 13:58:36
问题 I'm trying to use dlib to train shape predictor with default dataset( /dlib-19.0/examples/faces/training_with_face_landmarks.xml ) and default train sample( train_shape_predictor_ex.cpp ). So I want to train shape predictor which will be exactly like default shape predictor( shape_predictor_68_face_landmarks.dat ) because I used same dataset and same training code. But I get some issues. After training I get my .dat file with 16.6mb (but default dlib predictor shape_predictor_68_face

How to do realtime face detection?

大城市里の小女人 提交于 2019-12-12 09:15:23
问题 how can I realize realtime face detection, when I use iPhone camera to take picture? just like the example: http://www.morethantechnical.com/2009/08/09/near-realtime-face-detection-on-the-iphone-w-opencv-port-wcodevideo/ (this example don't provide the .xcodeproj, so I can't compile .cpp file) another example: http://blog.beetlebugsoftware.com/post/104154581/face-detection-iphone-source (can't be compiled) do you have any solution? please give a hand! 回答1: Wait for iOS 5: Create amazing

camera2 face detection call back

爱⌒轻易说出口 提交于 2019-12-12 09:09:11
问题 I'm trying to use the face detector in the camera2 api. I set the preview builder to use the face detector: previewBuilder.set(CaptureRequest.STATISTICS_FACE_DETECT_MODE, CameraMetadata.STATISTICS_FACE_DETECT_MODE_FULL); CR = previewBuilder.build(); CS = session; CS.setRepeatingRequest(CR, CScallback, null); But I don't understand where the code hits when it detects a face? Does it return a face in the CameraCaptureSession.CaptureCallback? Where does it send back the info about the detected