Skip to content

Commit

Permalink
get condition from ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Aug 10, 2024
1 parent 479f5f5 commit c887eb3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion queue_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ def init():
# Check if the frame_number corresponds to a frame that should be classified.
if frame_number > 0 and frame_skip_factor > 0 and frame_number % frame_skip_factor == 0:

condition = "4 persons detected"
# condition = "4 persons detected"
condition = os.getenv("CONDITION", "")
if condition == "":
print("No condition set, exiting")
break

frame, total_time_class_prediction, conditionMet = processFrame(
MODEL, frame, video_out, condition)

Expand Down

0 comments on commit c887eb3

Please sign in to comment.