Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import cv2
cam = cv2.VideoCapture(0)
detector=cv2.CascadeClassifier('C:/Users/preri/AppData/Local/Programs/Python/Python37/Lib/site-packages/cv2/data/haarcascade_frontalface_default.xml')
Id=input('enter picture label:')
sampleNum=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.