Answers for "cv2 assertion failed"

0

cv2 assertion failed

import cv
cv2.CascadeClassifier('haarcascade_frontalface_default.xml') # try downloading the xml file again and make sure to put it in the same directory
cap = cv2.Videocapture(0) # change this value to 1 or -1 or 0 based on your os
cv2.imread('image')# check the spelling and make sure that the image is in the same directory
Posted by: Guest on June-22-2020

Code answers related to "cv2 assertion failed"

Python Answers by Framework

Browse Popular Code Answers by Language