mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 17:14:26 +03:00
ensure motion only checks both halves of segment
This commit is contained in:
parent
550c3af2dd
commit
b2fee81123
@ -115,7 +115,14 @@ export function MotionReviewTimeline({
|
|||||||
(item.start_time <= motionStart &&
|
(item.start_time <= motionStart &&
|
||||||
(item.end_time ?? timelineStart) >= motionEnd),
|
(item.end_time ?? timelineStart) >= motionEnd),
|
||||||
);
|
);
|
||||||
if (getMotionSegmentValue(segmentTime) && !overlappingReviewItems) {
|
const firstHalfMotionValue = getMotionSegmentValue(motionStart);
|
||||||
|
const secondHalfMotionValue = getMotionSegmentValue(
|
||||||
|
motionStart + segmentDuration / 2,
|
||||||
|
);
|
||||||
|
|
||||||
|
const segmentMotion =
|
||||||
|
firstHalfMotionValue > 0 || secondHalfMotionValue > 0;
|
||||||
|
if (segmentMotion && !overlappingReviewItems) {
|
||||||
segments.push(segmentTime);
|
segments.push(segmentTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user