Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

That is wrong argument in cv2.imread.

imagePath = sys.argv[1] classifier = cv2.CascadeClassifier ("haarcascade_frontalface_default.xml") image = cv2.imread(imagePath)

Change scaleFactor=1.1 to scaleFactor=1.2

That is wrong argument in cv2.imread.

imagePath = sys.argv[1]
classifier = cv2.CascadeClassifier ("haarcascade_frontalface_default.xml")
image = cv2.imread(imagePath)     

cv2.imread(imagePath)

Change scaleFactor=1.1 to scaleFactor=1.2