1.Hand Tracking import cv2 import mediapipe as mp import time cap = cv2.VideoCapture(0) mpHands = mp.solutions.hands hands = mpHands.Hands() mpDraw = mp.solutions.drawing_util…
1.Basic import cv2 import numpy as np import face_recognition imgElon = face_recognition.load_image_file('PICTURE/Elon Mask.jpg') imgElon = cv2.cvtColor(imgElon, cv2.COLOR_BGR…
import cv2 import mediapipe as mp import time cap = cv2.VideoCapture('VIDEO/1.mp4') pTime = 0 mpDraw = mp.solutions.drawing_utils mpFaceMesh = mp.solutions.face_mesh faMesh = …
import cv2 img = cv2.imread('jack.jpg') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faceCascade = cv2.CascadeClassifier('face_detect.html') faceRect = faceCascade.detectMulti…
import cv2 import mediapipe as mp import time mpDraw = mp.solutions.drawing_utils mpPose = mp.solutions.pose pose = mpPose.Pose() cap = cv2.VideoCapture('VIDEO/4.mp4') pTime =…