mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-09 15:05:26 +03:00
Compare commits
No commits in common. "231edb8811713bbbed100d0658064516805aa5c5" and "d8038d02e4be9e9e567ac0c08f5b220e0954698f" have entirely different histories.
231edb8811
...
d8038d02e4
7
docs/static/frigate-api.yaml
vendored
7
docs/static/frigate-api.yaml
vendored
@ -3133,7 +3133,6 @@ paths:
|
|||||||
duration: 30
|
duration: 30
|
||||||
include_recording: true
|
include_recording: true
|
||||||
draw: {}
|
draw: {}
|
||||||
pre_capture: null
|
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Successful Response
|
description: Successful Response
|
||||||
@ -4936,12 +4935,6 @@ components:
|
|||||||
- type: "null"
|
- type: "null"
|
||||||
title: Draw
|
title: Draw
|
||||||
default: {}
|
default: {}
|
||||||
pre_capture:
|
|
||||||
anyOf:
|
|
||||||
- type: integer
|
|
||||||
- type: "null"
|
|
||||||
title: Pre Capture Seconds
|
|
||||||
default: null
|
|
||||||
type: object
|
type: object
|
||||||
title: EventsCreateBody
|
title: EventsCreateBody
|
||||||
EventsDeleteBody:
|
EventsDeleteBody:
|
||||||
|
|||||||
@ -34,7 +34,6 @@ class EventsCreateBody(BaseModel):
|
|||||||
duration: Optional[int] = 30
|
duration: Optional[int] = 30
|
||||||
include_recording: Optional[bool] = True
|
include_recording: Optional[bool] = True
|
||||||
draw: Optional[dict] = {}
|
draw: Optional[dict] = {}
|
||||||
pre_capture: Optional[int] = None
|
|
||||||
|
|
||||||
|
|
||||||
class EventsEndBody(BaseModel):
|
class EventsEndBody(BaseModel):
|
||||||
|
|||||||
@ -1622,7 +1622,6 @@ def create_event(
|
|||||||
body.duration,
|
body.duration,
|
||||||
"api",
|
"api",
|
||||||
body.draw,
|
body.draw,
|
||||||
body.pre_capture,
|
|
||||||
),
|
),
|
||||||
EventMetadataTypeEnum.manual_event_create.value,
|
EventMetadataTypeEnum.manual_event_create.value,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -841,6 +841,9 @@ class ReviewSegmentMaintainer(threading.Thread):
|
|||||||
self.active_review_segments[
|
self.active_review_segments[
|
||||||
camera
|
camera
|
||||||
].last_detection_time = sys.maxsize
|
].last_detection_time = sys.maxsize
|
||||||
|
self._publish_segment_start(
|
||||||
|
self.active_review_segments[camera]
|
||||||
|
)
|
||||||
elif manual_info["state"] == ManualEventState.complete:
|
elif manual_info["state"] == ManualEventState.complete:
|
||||||
self.active_review_segments[
|
self.active_review_segments[
|
||||||
camera
|
camera
|
||||||
|
|||||||
@ -515,7 +515,6 @@ class TrackedObjectProcessor(threading.Thread):
|
|||||||
duration,
|
duration,
|
||||||
source_type,
|
source_type,
|
||||||
draw,
|
draw,
|
||||||
pre_capture,
|
|
||||||
) = payload
|
) = payload
|
||||||
|
|
||||||
# save the snapshot image
|
# save the snapshot image
|
||||||
@ -523,11 +522,6 @@ class TrackedObjectProcessor(threading.Thread):
|
|||||||
None, event_id, label, draw
|
None, event_id, label, draw
|
||||||
)
|
)
|
||||||
end_time = frame_time + duration if duration is not None else None
|
end_time = frame_time + duration if duration is not None else None
|
||||||
start_time = (
|
|
||||||
frame_time - self.config.cameras[camera_name].record.event_pre_capture
|
|
||||||
if pre_capture is None
|
|
||||||
else frame_time - pre_capture
|
|
||||||
)
|
|
||||||
|
|
||||||
# send event to event maintainer
|
# send event to event maintainer
|
||||||
self.event_sender.publish(
|
self.event_sender.publish(
|
||||||
@ -542,7 +536,7 @@ class TrackedObjectProcessor(threading.Thread):
|
|||||||
"sub_label": sub_label,
|
"sub_label": sub_label,
|
||||||
"score": score,
|
"score": score,
|
||||||
"camera": camera_name,
|
"camera": camera_name,
|
||||||
"start_time": start_time,
|
"start_time": frame_time,
|
||||||
"end_time": end_time,
|
"end_time": end_time,
|
||||||
"has_clip": self.config.cameras[camera_name].record.enabled
|
"has_clip": self.config.cameras[camera_name].record.enabled
|
||||||
and include_recording,
|
and include_recording,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user