Skip to content

Commit

Permalink
removed useless fs save
Browse files Browse the repository at this point in the history
  • Loading branch information
Glydric committed Feb 1, 2024
1 parent 721180d commit 065c018
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ImageRecognition/src/ObjectDetectionYOLO.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ def detection(camera_id: int, _: int):

prev_time = 0

id = 0

# TODO handle status
status = "offline"

Expand Down Expand Up @@ -118,9 +116,6 @@ def detection(camera_id: int, _: int):

if foundPerson:
_, image = cv2.imencode(".jpg", img)
# cv2.imwrite(f"img/test.{camera_id}_frame_{id}.jpeg", img)
cv2.imwrite(f"img/test.{camera_id}_frame.jpeg", img)
id += 1

post_request(camera_id, image)

Expand Down

0 comments on commit 065c018

Please sign in to comment.