Description
A person repeatedly entering and leaving a restricted area is often a strong
suspicious behavior signal.
The current ActionClassifier does not detect repeated zone approaches.
Implement:
ActionHint.REPEATED_APPROACH
inside the action classification pipeline.
Expected Behavior
Trigger REPEATED_APPROACH when:
- a person enters a restricted zone
- exits it
- re-enters again
- repeated entry count >= 2
Suggested Logic
zone_entry_count = memory_store.get_zone_entry_count(
obj.track_id,
zone
)
if zone_entry_count >= 2:
return ActionHint.REPEATED_APPROACH
Challenge
classify_action() currently has no direct access to MemoryStore.
Possible approaches:
- inject optional store dependency
- precompute counts in
pipeline.py
- pass counters as parameters
Files to Touch
services/memory/action_classifier.py
services/memory/pipeline.py
tests/test_memory.py
Acceptance Criteria
Helpful Context
Relevant modules:
services/memory/action_classifier.py
services/memory/pipeline.py
libs/schemas/memory.py
Description
A person repeatedly entering and leaving a restricted area is often a strong
suspicious behavior signal.
The current
ActionClassifierdoes not detect repeated zone approaches.Implement:
inside the action classification pipeline.
Expected Behavior
Trigger
REPEATED_APPROACHwhen:Suggested Logic
Challenge
classify_action()currently has no direct access toMemoryStore.Possible approaches:
pipeline.pyFiles to Touch
Acceptance Criteria
Helpful Context
Relevant modules: