Skip to content

Commit

Permalink
fix: 이상상황을 탐지하지않아도 알림 전송하는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sukkyun2 committed Aug 3, 2024
1 parent 3508b94 commit 5bfe37d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ async def websocket_publisher(websocket: WebSocket):
img = cv2.imdecode(np.frombuffer(data, np.uint8), cv2.IMREAD_COLOR) # byte to nparr

result = track(img)
await async_save_history(result)

# TODO 별도 이상상황으로 교체
cell_phone_detected = any(det.class_name == 'cell phone' for det in result.detections)
Expand Down

0 comments on commit 5bfe37d

Please sign in to comment.