Skip to content

Commit c887eb3

Browse files
committed
get condition from ENV
1 parent 479f5f5 commit c887eb3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

queue_filter.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,12 @@ def init():
127127
# Check if the frame_number corresponds to a frame that should be classified.
128128
if frame_number > 0 and frame_skip_factor > 0 and frame_number % frame_skip_factor == 0:
129129

130-
condition = "4 persons detected"
130+
# condition = "4 persons detected"
131+
condition = os.getenv("CONDITION", "")
132+
if condition == "":
133+
print("No condition set, exiting")
134+
break
135+
131136
frame, total_time_class_prediction, conditionMet = processFrame(
132137
MODEL, frame, video_out, condition)
133138

0 commit comments

Comments
 (0)