Skip to content

Commit 248be26

Browse files
Merge pull request #1661 from sakshid2706/sakshid2706-patch-1
Updated README.md
2 parents 914f7a8 + d0ffefd commit 248be26

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

face_detection/README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,23 @@
22

33
[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)
44

5-
This project is to create using python , openCv through which we can check weather we are able to detect face or not.
5+
This project is based on face detection using OpenCV with a webcam. It continuously captures frames, detects faces, and displays the frames with rectangles around the detected faces. Pressing the 'n' key terminates the program.
6+
7+
## Explanation of Code
8+
1) import cv2: Necessary libraries imported.
9+
2) cap = cv2.VideoCapture(0): Creates a video capture object to capture frames from webcam
10+
3) Haar Cascade Classifier is used for face detection.
11+
4) The detectMultiScale function detects objects (faces in this case) in the grayscale frame. The second and third arguments are the scale factor and minimum number of neighbors, respectively. Adjusting these parameters can affect the performance and accuracy of the face detection.
12+
5) The infinite loop breaks when 'n' key is pressed
613

7-
## Usage
8-
* we can check weather we are able to detect face or not
914

1015

1116
## Output :smiley:
1217
<img width="528" alt="figure" src="https://github.com/naazkakria/face_recognition_/blob/main/image_detected.jpeg">
1318

1419
## Authors
15-
Written by [Naaz](https://github.com/naazkakria)
20+
1) Written by Sakshi
21+
2) Written by [Naaz](https://github.com/naazkakria)
22+
1623

1724

0 commit comments

Comments
 (0)