├── requirement.txt
├── .idea
├── .gitignore
├── vcs.xml
├── inspectionProfiles
│ ├── profiles_settings.xml
│ └── Project_Default.xml
├── misc.xml
├── modules.xml
└── Real Time Face Blur OpenCV(Python) by APPARKY.iml
├── README.md
└── main.py
/requirement.txt:
--------------------------------------------------------------------------------
1 | opencv_python
2 |
--------------------------------------------------------------------------------
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/Real Time Face Blur OpenCV(Python) by APPARKY.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Real-Time-Face-Blur-using-OpenCV-Python-APPARKY
2 |
3 | > In this Project we'll make a blur Faces on Live Camera by using OpenCV Python
4 | >
5 | >
6 |
7 |
8 |
9 |
10 | -------------------
11 | >
12 | > To get more interesting projects follow our GitHub page at [Here](https://github.com/Apparky)
13 | >
14 | > To get more interesting projects follow our Bitbucket page at [Here](https://bitbucket.org/apparky-web/workspace/overview)
15 | >
16 | > To know more about [__APPARKY__](https://apparky.vercel.app/) Click [Here](https://apparky-soumenmtec-gmailcom.vercel.app/)
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/main.py:
--------------------------------------------------------------------------------
1 | import cv2
2 |
3 | capture = cv2.VideoCapture(0)
4 | face = cv2.CascadeClassifier('default_frontal_face.xml')
5 |
6 | while True:
7 | success, img = capture.read()
8 | faces = face.detectMultiScale(img, 1.2, 4)
9 | for (x, y, w, h) in faces:
10 | image1 = img[y:y + h, x:x + w]
11 | gaussian_blurr = cv2.GaussianBlur(image1, (91, 91), 0)
12 |
13 | img[y:y + h, x:x + w] = gaussian_blurr
14 |
15 | if faces == ():
16 | cv2.putText(img, 'No Face Found!', (20, 50), cv2.FONT_HERSHEY_COMPLEX, 1, (0, 0, 255))
17 | cv2.imshow('Face Blur', img)
18 | if cv2.waitKey(1) & 0xff == ord('q'):
19 | break
20 |
21 | capture.release()
22 |
23 | cv2.destroyAllWindows()
24 |
--------------------------------------------------------------------------------
/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
20 |
21 |
30 |
31 |
32 |
39 |
40 |
41 |
--------------------------------------------------------------------------------