1 | initial version |
keep haar cascade file and python file on the same folder. no need to give the entire path of haar cascade file, just give name of the xml file.
2 | No.2 Revision |
keep haar cascade file and python file on the same folder. no need to give the entire path of haar cascade file, just give name of the xml file.
in place of cap.release() you have to replace with camera.release()
3 | No.3 Revision |
keep haar cascade file and python file on the same folder. no need to give the entire path of haar cascade file, just give name of the xml file.
in place of cap.release() you have to replace with camera.release()
4 | No.4 Revision |
keep haar cascade file and python file on the same folder. no need to give the entire path of haar cascade file, just give name of the xml file.
in place of cap.release() you have to replace with camera.release()
i don't think cv2.VideoCapture(-1) will work replace it with cv2.VideoCapture(1) [1 for front camera and 0 for rear camera] if it is still not working use ip webcam.
5 | No.5 Revision |
keep haar cascade file and python file on the same folder. no need to give the entire path of haar cascade file, just give name of the xml file.
in place of cap.release() [cap is not defined] you have to replace with camera.release()
i don't think cv2.VideoCapture(-1) will work replace it with cv2.VideoCapture(1) [1 for front camera and 0 for rear camera] if it is still not working use ip webcam.