hello guys in this tutorial we will take a look at how to detect faces in python using opencv code : - ########################################### #robokishan #don't just copy and paste it will never work install opencv and also modules required for it #then just download opencv from git and copy this file "haarcascade_frontalface_default.xml" #if you have such a brain this code speaks lot more than i show just figure out what else you can do #uncomment some useful stuffs #!/usr/bin/python import cv2 import numpy as np face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml") # eye_cascade = cv2.CascadeClassifier("haarcascade_eye.xml") # smile = cv2.CascadeClassifier("haarcascade_smile.xml") cap = cv2.VideoCapture(0) while True: ret , frame = cap.read() gray = cv2.cvtColor(frame , cv2.COLOR_BGR2GRAY) faces = face_cascade.detectMultiScale(gray , 1.3 , 5) for (x,y,w,h) in faces: cv2.rectangle...