Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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
Comment

PREVIOUS NEXT
Code Example
Python :: python create dictionary 
Python :: python message 
Python :: python index for all matches 
Python :: matplotlib use marker along variable 
Python :: padnas check if string is in list of strings 
Python :: Smart Weather Information App Using Python 
Python :: python post request multi argument 
Python :: gtk label set label 
Python :: how to close opened file in python 
Python :: python regex (d)(?=d1) 
Python :: python foreach 2d array 
Python :: django reverse vs reverse_lazy 
Python :: python escape forward slash 
Python :: sort list in python 
Python :: time a function python 
Python :: how to create a new dataframe in python 
Python :: Exception in thread 
Python :: os module in python 
Python :: flask form options 
Python :: Python NumPy delete Function Example Deletion from 1D array 
Python :: python built in libraries 
Python :: string to ascii with python 
Python :: replace nan from another column 
Python :: if list element contains string python 
Python :: create dictionary without removing duplicates from dataframe 
Python :: length of list in python 
Python :: merge sorting algorithm 
Python :: all string methods in python 
Python :: what is self 
Python :: python string after character 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =