From 1ef7536e763d2c796862d484778f0d9c19109fcb Mon Sep 17 00:00:00 2001 From: unexcellent <> Date: Wed, 30 Oct 2024 09:48:31 +0100 Subject: [PATCH] feat: add JSONFrameInterval --- raillabel/json_format/frame_interval.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 raillabel/json_format/frame_interval.py diff --git a/raillabel/json_format/frame_interval.py b/raillabel/json_format/frame_interval.py new file mode 100644 index 0000000..1c5e51c --- /dev/null +++ b/raillabel/json_format/frame_interval.py @@ -0,0 +1,16 @@ +# Copyright DB InfraGO AG and contributors +# SPDX-License-Identifier: Apache-2.0 + +from __future__ import annotations + +from pydantic import BaseModel + + +class JSONFrameInterval(BaseModel): + """A frame interval defines a starting and ending frame number as a closed interval. + + That means the interval includes the limit frame numbers. + """ + + start: int + end: int