Python mini project face detection (2)
Python mini project face detection (2)
Python mini project face detection (2)
OBJECTIVE:
OpenCV is a computer vision library that supports programming languages like Python,
C++, and Java.
The package was initially created by Intel in 1999 and was later made open-source and
released to the public.
ABSTRACT:
INTRODUCTION:
Face detection involves identifying a person’s face in an image or video. This is done by
analyzing the visual input to determine whether a person’s facial features are present.
Since human faces are so diverse, face detection models typically need to be trained on
large amounts of input data for them to be accurate. The training dataset must contain a
sufficient representation of people who come from different backgrounds, genders, and
cultures.
HARDWARE/SOFTWARE REQUIREMENTS:
PROGRAM:
import cv2
face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades +
'haarcascade_frontalface_default.xml')
cap = cv2.VideoCapture(0)
1
while True:
if not ret:
break
break
2
# Release the webcam and close all OpenCV windows
cap.release()
cv2.destroyAllWindows()
CONCLUSION:
You can also test the efficacy of this model by holding up multiple pictures or by getting
different people to stand at various angles behind the camera. The model should be able to
identify all human faces in different backgrounds or lighting settings.
REFERENCES:
https://www.datacamp.com/tutorial/face-detection-python-opencv