d-kleine / face_recognition_webcam

Face detection via webcam with OpenCV

Repository from Github https://github.comd-kleine/face_recognition_webcamRepository from Github https://github.comd-kleine/face_recognition_webcam

Face recognition

This repository contains the relevant code for face detection via the pretrained Haar features based cascade classifier provided by OpenCV.

face_recog.ipynb contains the Python code for a live video, e.g. a webcam:

face-detec livecam

face_recog_video.ipynb contains the Python code for a video file. It writes a new mp4 video file that is using the original video frames and drawing a square indicating a detected face by the above mentioned cascade classifier:

face-detec videofile_orig

face-detec videofile_final

About

Face detection via webcam with OpenCV


Languages

Language:Jupyter Notebook 100.0%