Skip to content

Commit

Permalink
Update demo.py
Browse files Browse the repository at this point in the history
Fixed bugs
  • Loading branch information
SAM-DEV007 committed May 12, 2024
1 parent 6a3faef commit ce3662d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Suicide_Detection/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
for box in b:
if box.any():
_x, _y, _w, _h = box
x1 = round(_x)
y1 = round(_y)
wo = round(_w)
ho = round(_h)
x1 = round(_x * w)
y1 = round(_y * h)
wo = round(_w * w)
ho = round(_h * h)

cv2.rectangle(frame, (x1, y1), (x1 + wo, y1 + ho), (255, 0, 0), 2)

Expand Down

0 comments on commit ce3662d

Please sign in to comment.