Command 1 along with the link:
!wget --no-check-certificate \
\
-O haarcascade_frontalface_default.xml
Command for Method 2:
haar_cascade = cv.CascadeClassifier(cv.samples.findFile
(cv.data.haarcascades+"haarcascade_frontalface_default.xml"))
Hope this helps.
Watch video How to use haarcascade files in Colab || Capture Images using Webcam in Colab online without registration, duration 10 minute 35 second in high hd quality. This video was added by user crazzylearners 17 June 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3 thousand once and liked it 3 people.