Detail Stream tweaks (#20533)
CI / ARM Extra Build (push) Blocked by required conditions
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions

This commit is contained in:
Josh Hawkins
2025-10-16 14:15:23 -06:00
committed by GitHub
parent 9599450cff
commit 60789f7096
6 changed files with 76 additions and 57 deletions
@@ -15,17 +15,19 @@ import { useTranslation } from "react-i18next";
type ObjectTrackOverlayProps = {
camera: string;
selectedObjectId: string;
showBoundingBoxes?: boolean;
currentTime: number;
videoWidth: number;
videoHeight: number;
className?: string;
onSeekToTime?: (timestamp: number) => void;
onSeekToTime?: (timestamp: number, play?: boolean) => void;
objectTimeline?: ObjectLifecycleSequence[];
};
export default function ObjectTrackOverlay({
camera,
selectedObjectId,
showBoundingBoxes = false,
currentTime,
videoWidth,
videoHeight,
@@ -227,7 +229,7 @@ export default function ObjectTrackOverlay({
const handlePointClick = useCallback(
(timestamp: number) => {
onSeekToTime?.(timestamp);
onSeekToTime?.(timestamp, false);
},
[onSeekToTime],
);
@@ -366,7 +368,7 @@ export default function ObjectTrackOverlay({
</Tooltip>
))}
{currentBoundingBox && (
{currentBoundingBox && showBoundingBoxes && (
<g>
<rect
x={currentBoundingBox.left * videoWidth}