Skip to content

Commit

Permalink
Clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
heming-h committed Aug 23, 2024
1 parent e13444a commit ed1f5a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vision_ai_service/services/video_ai_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ async def detect_crossings_with_ultraltyics(
id = int(boxes.id[y].item())
# reset the list if counting is reset
if id == 1 and len(crossings["100"]) > 1:
crossings = VideoAIService().reset_line_crossings(
crossings
)
crossings = VideoAIService().reset_line_crossings(crossings)
if class_values[y] == 0: # identify person
xyxyn = boxes.xyxyn[y]
trigger_line = (
Expand Down

0 comments on commit ed1f5a6

Please sign in to comment.