Skip to content

Commit

Permalink
Delete rectangle and text from pictures
Browse files Browse the repository at this point in the history
  • Loading branch information
r-dvl authored Aug 11, 2023
1 parent ce5b7a7 commit b626c5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/motion.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ def start():
continue

# Draw motion rectangle
cv2.rectangle(frame1, (x, y), (x+w, y+h), (0, 255, 0), 2)
# cv2.rectangle(frame1, (x, y), (x+w, y+h), (0, 255, 0), 2)

# Text in image when something is detected
cv2.putText(frame1, "Status: {}".format('Gati detectado!'), (10, 20), cv2.FONT_HERSHEY_COMPLEX_SMALL,
1, (255, 0, 0), 3)
# cv2.putText(frame1, "Status: {}".format('Gati detectado!'), (10, 20), cv2.FONT_HERSHEY_COMPLEX_SMALL,
# 1, (255, 0, 0), 3)

# To discard fake motion detection, it waits 100 iterations before taking a picture
if counter == 100:
Expand Down

0 comments on commit b626c5e

Please sign in to comment.