Skip to content

Running in Google Colab to apply OpenCV's Haar Cascade for face detection in webcam image and video.

Notifications You must be signed in to change notification settings

yuhang2685/FaceDetection-Webcam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

FaceDetection-Webcam

license

Introduction

The work is originally created by https://github.com/theAIGuysCode/colab-webcam. Running in Google Colab, it applies OpenCV's Haar Cascade for face detection in webcam image and video.

The advantege for using Haar Cascade for object detection is handy, the disadvantege is not supporting for customization.

Working Mechanism

Once the image is ready, it is first converted into gray image for faster detection. Then Haar Cascade is applied on the image, and the bounding boxes are drawn on the image.

For videos, we obtain boxes from the previous frame and draw them on a blank image, then overlay the image on the next frame.

Since Colab is running in cloud VM, we have to use Javascript to connect Colab with local webcam.

Reference

About

Running in Google Colab to apply OpenCV's Haar Cascade for face detection in webcam image and video.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published