cv2 assertion failed

Solutions on MaxInterview for cv2 assertion failed by the best coders in the world

showing results for - "cv2 assertion failed"
Floyd
26 Jul 2016
1import cv
2cv2.CascadeClassifier('haarcascade_frontalface_default.xml') # try downloading the xml file again and make sure to put it in the same directory
3cap = cv2.Videocapture(0) # change this value to 1 or -1 or 0 based on your os
4cv2.imread('image')# check the spelling and make sure that the image is in the same directory