face-detection

Clarifai - FACE DETECT - Model does not exist [closed]

巧了我就是萌 提交于 2021-02-11 15:14:12
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . Improve this question I'll be thankful if you can assist me on an issue with Clarifai API. I made a simple application of Face Detection using the API. I've followed the documentation and from my client I ran the following code snippet: app.models .predict(Clarifai.FACE_DETECT_MODEL, this.state.input

OpenCV cv2.VideoCapture() stopping to read RTSP IP camera

青春壹個敷衍的年華 提交于 2021-02-10 04:45:09
问题 Hello im learning opencv and im reading a ip camera through rtsp:// videoStream = "rtsp://admin:123456@10.0.0.1:554/Streaming/Channels/1" capture = cv2.VideoCapture(videoStream) im reading this stream and im making a facial detection in opencv but after 1 or 2 minutes my script crashes whit a h264 message and my opencv code gives me a error: [h264 @ 0x27e49570] error while decoding MB 55 12, bytestream -12 no video and if i use a webcan it not happening some one can help me whit how is the

Detect facial landmarks inside a detected face image using opencv dnn face detector

丶灬走出姿态 提交于 2021-01-29 11:12:42
问题 I trying to detect the 68 facial landmarks of human face. I detected the face using OpenCV dnn face detector as in https://www.pyimagesearch.com/2018/02/26/face-detection-with-opencv-and-deep-learning/ The face detection process done successfully, this is my code: # import the necessary packages import numpy as np import argparse import cv2 import dlib ap = argparse.ArgumentParser() ap.add_argument("-c", "--confidence", type=float, default=0.5, help="minimum probability to filter weak

How to detect coordinates of left and right eye using android face detection

泪湿孤枕 提交于 2021-01-28 04:33:57
问题 Hello I am new to android. I want to detect the coordinates of left and right eye along with hairs in an image. In this link it shows that what are the methods to detect eyes that but I am not able to implement these methods. Also I want to detect the hairs in the image so how can I do that. 回答1: With the mobile vision API, left and right eyes can be detected as facial landmarks. See the tutorial for detecting landmarks here: https://developers.google.com/vision/detect-faces-tutorial and the

How to write on video with cv2 AND MTCNN? I'm facing problems with fourcc

安稳与你 提交于 2020-12-12 04:48:08
问题 I'm trying to write a script that anonymized faces on videos. here is my code (python): import cv2 from mtcnn.mtcnn import MTCNN ksize = (101, 101) def decode_fourcc(cc): return "".join([chr((int(cc) >> 8 * i) & 0xFF) for i in range(4)]) def find_face_MTCNN(color, result_list): for result in result_list: x, y, w, h = result['box'] roi = color[y:y+h, x:x+w] cv2.rectangle(color, (x, y), (x+w, y+h), (0, 155, 255), 5) detectedFace = cv2.GaussianBlur(roi, ksize, 0) color[y:y+h, x:x+w] =

How to write on video with cv2 AND MTCNN? I'm facing problems with fourcc

*爱你&永不变心* 提交于 2020-12-12 04:47:21
问题 I'm trying to write a script that anonymized faces on videos. here is my code (python): import cv2 from mtcnn.mtcnn import MTCNN ksize = (101, 101) def decode_fourcc(cc): return "".join([chr((int(cc) >> 8 * i) & 0xFF) for i in range(4)]) def find_face_MTCNN(color, result_list): for result in result_list: x, y, w, h = result['box'] roi = color[y:y+h, x:x+w] cv2.rectangle(color, (x, y), (x+w, y+h), (0, 155, 255), 5) detectedFace = cv2.GaussianBlur(roi, ksize, 0) color[y:y+h, x:x+w] =

How to find out detected face is real or fake

时光怂恿深爱的人放手 提交于 2020-06-24 07:25:08
问题 I am developing one security related project, there is need to check any face is detected or not, if face is detected then do some action, if face is not detected then close app. Everything is perfect working, i am using SurfaceView which is implemented SurfaceHolder.Callback and in that open camera and camera have one method name is startFaceDetection using this method i detect face. code for reference public class SurfaceViewPreview extends SurfaceView implements SurfaceHolder.Callback {

opencv resize window for a live cam

三世轮回 提交于 2020-05-28 04:13:10
问题 I've followed this tutorial and managed to make a face detection,age+gender like in this video Now the problem I'm facing is that the window size of the application is very small and I don't know and can't find a way to resize it (in this image bottom right you can see the window). The code of the applciation can be found here 回答1: Solution whatever you set the size,,,opencv resize window for a live cam import cv2 def main(): windowName = "Main" cv2.namedWindow(windowName) cap = cv2

what should be the target in this deep learning image classification problem

十年热恋 提交于 2020-05-17 07:07:19
问题 I am doing a image classification project using CNN in keras. I have a dataset of about 900 photos of about 70 people .Each person has multiple photos of his different age. My goal is to predict the correct ID of the person if any one of his photo is in the input. Here is the glimpse of the data. My questions are: What should be my target column ?Is Target 'AGE' or 'ID'? 2-Do I need to do hot-encoding of the target column? For example if I used ID as my target,then do I have to do one-hot

what should be the target in this deep learning image classification problem

断了今生、忘了曾经 提交于 2020-05-17 07:07:02
问题 I am doing a image classification project using CNN in keras. I have a dataset of about 900 photos of about 70 people .Each person has multiple photos of his different age. My goal is to predict the correct ID of the person if any one of his photo is in the input. Here is the glimpse of the data. My questions are: What should be my target column ?Is Target 'AGE' or 'ID'? 2-Do I need to do hot-encoding of the target column? For example if I used ID as my target,then do I have to do one-hot