frigate/frigate/track
nulledy bb6e889449 Allow API Events to be Detections or Alerts, depending on the Event Label (#21923)
* - API created events will be alerts OR detections, depending on the event label, defaulting to alerts
- Indefinite API events will extend the recording segment until those events are ended
- API event start time is the actual start time, instead of having a pre-buffer of record.event_pre_capture

* Instead of checking for indefinite events on a camera before deciding if we should end the segment, only update last_detection_time and last_alert_time if frame_time is greater, which should have the same effect

* Add the ability to set a pre_capture number of seconds when creating a manual event via the API. Default behavior unchanged

* Remove unnecessary _publish_segment_start() call

* Formatting

* handle last_alert_time or last_detection_time being None when checking them against the frame_time

* comment manual_info["label"].split(": ")[0] for clarity
2026-02-26 21:27:56 -07:00
..
__init__.py Enable mypy for track and fix typing errors (#19529) 2025-08-17 12:27:42 -05:00
centroid_tracker.py Enable mypy for track and fix typing errors (#19529) 2025-08-17 12:27:42 -05:00
norfair_tracker.py Improve stationary classification (#20303) 2025-10-01 07:39:11 -05:00
object_processing.py Allow API Events to be Detections or Alerts, depending on the Event Label (#21923) 2026-02-26 21:27:56 -07:00
stationary_classifier.py fix stationary runtime error (#20309) 2025-10-01 09:17:30 -06:00
tracked_object.py feat: add X-Frame-Time when returning snapshot (#21932) 2026-02-26 21:27:56 -07:00