Skip to content

Commit 9fe2c38

Browse files
committed
attendence automator [linting]
1 parent 33cbc0b commit 9fe2c38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

attendance-automator/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ def attendance(name):
7171

7272
y1, x2, y2, x1 = faceLoc
7373

74-
y1, x2, y2, x1 = y1*4, x2*4, y2*4, x1*4
74+
y1, x2, y2, x1 = y1 * 4, x2 * 4, y2 * 4, x1 * 4
7575
cv2.rectangle(frame, (x1, y1), (x2, y2), (0, 255, 0), 2)
76-
cv2.rectangle(frame, (x1, y2-35), (x2, y2), (0, 255, 0), cv2.FILLED)
77-
cv2.putText(frame, name, (x1+6, y2-6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 0, 0), 1)
76+
cv2.rectangle(frame, (x1, y2 - 35), (x2, y2), (0, 255, 0), cv2.FILLED)
77+
cv2.putText(frame, name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 0, 0), 1)
7878
attendance(name)
7979
cv2.imshow("Camera", frame)
8080

0 commit comments

Comments
 (0)