Ask Your Question

revathi's profile - activity

2021-03-19 07:24:10 -0600 received badge  Famous Question (source)
2021-03-19 07:24:10 -0600 received badge  Notable Question (source)
2021-03-19 07:24:10 -0600 received badge  Popular Question (source)
2020-12-11 07:56:27 -0600 asked a question how to restrict 2d image (photo) face detection in real time face recognition using opencv python

how to restrict 2d image (photo) face detection in real time face recognition using opencv python import cv2 import nump

2020-12-11 07:56:15 -0600 asked a question how to restrict 2d image (photo) face detection in real time face recognition using opencv python

how to restrict 2d image (photo) face detection in real time face recognition using opencv python import cv2 import nump

2020-12-08 03:32:56 -0600 asked a question how to read value from input form in python flask dynamically and to store the value as image name inside directory when capturing image. Here i am attaching my code for further reference. how to implement this in flask python?

how to read value from input form in python flask dynamically and to store the value as image name inside directory when

2020-12-08 03:23:09 -0600 asked a question I am creating web application for face recognition using python flask app. I am already create static dataset. I need the text box to enter the name of the person after that capture image and it will store in to the dataset.

I am creating web application for face recognition using python flask app. I am already create static dataset. I need th

2020-12-08 03:17:39 -0600 edited question I'm creating a web application for face recognition using the python flask app. I already created a static dataset. I need the text box to enter the name of the person after that capture image and it will store in the dataset.

I'm creating a web application for face recognition using the python flask app. I already create a static dataset. I nee

2020-12-08 03:14:10 -0600 edited question I'm creating a web application for face recognition using the python flask app. I already created a static dataset. I need the text box to enter the name of the person after that capture image and it will store in the dataset.

I am creating web application for face recognition using python flask app. I am already create static dataset. I need th

2020-12-08 02:09:44 -0600 edited question I'm creating a web application for face recognition using the python flask app. I already created a static dataset. I need the text box to enter the name of the person after that capture image and it will store in the dataset.

I am creating web application for face recognition using python flask app. I am already create static dataset. I need th

2020-12-08 02:09:31 -0600 edited question I'm creating a web application for face recognition using the python flask app. I already created a static dataset. I need the text box to enter the name of the person after that capture image and it will store in the dataset.

I am creating web application for face recognition using python flask app. I am already create static dataset. I need th

2020-12-08 02:08:33 -0600 asked a question I'm creating a web application for face recognition using the python flask app. I already created a static dataset. I need the text box to enter the name of the person after that capture image and it will store in the dataset.

I am creating web application for face recognition using python flask app. I am already create static dataset. I need th

2020-12-08 00:30:24 -0600 received badge  Enthusiast
2020-12-05 00:09:54 -0600 commented question i am creating a dataset for real time face recognition using python. i want it should intimate if the image already available in dataset. how to implement in opencv?

I am creating a dataset for face recognition using python. Then i want to validate if the face is already available in t

2020-12-04 06:49:45 -0600 asked a question i am creating a dataset for real time face recognition using python. i want it should intimate if the image already available in dataset. how to implement in opencv?

i am creating a dataset for real time face recognition using python. i want it should intimate if the image already avai

2020-12-04 03:55:44 -0600 received badge  Supporter (source)
2020-12-04 03:55:32 -0600 received badge  Critic (source)
2020-12-03 08:08:15 -0600 received badge  Student (source)
2020-12-03 06:58:18 -0600 edited question I am create a rectangle box in video stream using python. how to apply face detection in rectangular box inside only and don't need out of the rectangular box detect face

I am create a rectangle box in video stream using python. how to apply face detection in rectangular box inside only and

2020-12-03 06:55:52 -0600 commented answer I am create a rectangle box in video stream using python. how to apply face detection in rectangular box inside only and don't need out of the rectangular box detect face

your solution is worked

2020-12-03 06:55:21 -0600 marked best answer I am create a rectangle box in video stream using python. how to apply face detection in rectangular box inside only and don't need out of the rectangular box detect face

Code:

import cv2

face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
ds_factor = 0.6
font = cv2.FONT_HERSHEY_SIMPLEX

class VideoCamera(object):
    def __init__(self):
        self.video = cv2.VideoCapture(0)

    def __del__(self):
        self.video.release()

    def get_frame(self):
        success, image = self.video.read()
        cv2.rectangle(image, (400, 300), (800, 600), (255, 255, 255), -1)
        cv2.resize(output, None, fx=ds_factor, fy=ds_factor, interpolation=cv2.INTER_AREA)
        gray = cv2.cvtColor(output, cv2.COLOR_BGR2GRAY)
        faces = face_cascade.detectMultiScale(
            gray, scaleFactor=1.1,
            minNeighbors=5,
            minSize=(200, 200),
            flags=cv2.CASCADE_SCALE_IMAGE)

        for (x, y, w, h) in faces:
            cv2.rectangle(output, (x, y), (x + w, y + h), (255, 0, 0), 3)
            cv2.putText(output, 'Number of Faces : ' + str(len(faces)), (40, 40), font, 1, (255, 0, 0), 2)
            break
        ret, jpeg = cv2.imencode('.jpg', output)
        return jpeg.tobytes()
2020-12-03 06:55:21 -0600 received badge  Scholar (source)
2020-12-03 06:55:06 -0600 commented answer I am create a rectangle box in video stream using python. how to apply face detection in rectangular box inside only and don't need out of the rectangular box detect face

thank you so much