in Education by
using python 3.8 and the spyder IDE the code is given here which I us to detect the faces from the recorded video... and one more issue it not only detect the faces it alos detect hands and other objects as well.. All the files codes are saved at the same place.... plz help me as soon as possible.... import cv2 face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml') cap = cv2.VideoCapture('tom_jerry.mp4') while True: # Read the frame _, img = cap.read() # Convert to grayscale gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # Detect the faces faces = face_cascade.detectMultiScale(gray, 1.1, 4) # Draw the rectangle around each face for (x, y, w, h) in faces: cv2.rectangle(img, (x, y), (x+w, y+h), (255, 0, 0), 2) # Display cv2.imshow('img', img) # Stop if escape key is pressed k = cv2.waitKey(30) & 0xff if k==27: break # Release the VideoCapture object cap.release() Select the correct answer from above options

Related questions

0 votes
0 votes
    I have the following data frame empid...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    I need to move all my work from my branch to another branch, but I'm not sure what is the best solution ... changes on the new branch? Select the correct answer from above options...
asked Jan 19, 2022 in Education by JackTerrance
0 votes
    I am new to Apache Spark, and I just learned that Spark supports three types of cluster: Standalone - meaning Spark ... should I go to? Select the correct answer from above options...
asked Jan 26, 2022 in Education by JackTerrance
0 votes
    The mean of the numbers obtained on throwing a die having written 1 on three faces, 2 on two faces and 5 on one face ... (C) 5 (D) 1 Select the correct answer from above options...
asked Nov 25, 2021 in Education by JackTerrance
0 votes
    Six dice are thrown simultaneously. The probability that exactly three of them show the same face and ramining three show ... ( 6 6 ) Select the correct answer from above options...
asked Nov 16, 2021 in Education by JackTerrance
0 votes
    How to sort a data.table using vector of multiple columns in R? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I am using exit(), quit(), os._exit(), sys.exit() to stop script execution, and I am confused which ... use to stop script execution? Select the correct answer from above options...
asked Jan 23, 2022 in Education by JackTerrance
0 votes
    How can I reverse a str object in Python? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    What should I do after 12th to become a software engineer? Select the correct answer from above options...
asked Jan 11, 2022 in Education by JackTerrance
0 votes
    By examining the chest X ray, the probability that TB is detected when a person is actually suffering is 0.99. ... he actually has TB? Select the correct answer from above options...
asked Nov 20, 2021 in Education by JackTerrance
0 votes
    Six dice are thrown simultaneously. The probability that all of them show the same face, is A. 1 66 B. 1 65 C. 1 6 D. none of these Select the correct answer from above options...
asked Nov 16, 2021 in Education by JackTerrance
...