Skip to content
This repository was archived by the owner on Apr 30, 2023. It is now read-only.

Commit aed20d9

Browse files
committed
Added more comments
1 parent 5c2d17f commit aed20d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deal_with_it.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def deal_with_it(eyes_cascade, face_cascade, glasses_img):
5858
mask = cv2.resize(glasses_mask, (u2 - u1, v2 - v1))
5959
mask_inv = cv2.resize(glasses_mask_inv, (u2 - u1, v2 - v1))
6060

61-
# selects mask's area from within the face region
61+
# selects area to mask from within the face region
6262
roi = face_region[v1:v2, u1:u2]
6363

6464
# applies masks
@@ -73,7 +73,7 @@ def deal_with_it(eyes_cascade, face_cascade, glasses_img):
7373
# displays video in a new window
7474
cv2.imshow("Sunglass-o-matic", video)
7575

76-
# The Escape key has to be pressed to exit the window
76+
# The Escape key must be pressed to close the window
7777
if cv2.waitKey(1) == 27:
7878
break
7979

0 commit comments

Comments
 (0)