Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format #9

Merged
merged 3 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spatialyze/video_processor/utils/format_trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def format_trajectory(
video_name: "str",
obj_id: "str",
obj_id: "int",
track: "list[tuple[Tracking3DResult, CameraConfig, SegmentPoint | None]]",
base=None,
):
Expand Down
10 changes: 7 additions & 3 deletions spatialyze/video_processor/utils/insert_trajectory.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import datetime
import numpy as np
import numpy.typing as np

from ...database import Database
from ...utils import join
from ..types import Float3
Expand All @@ -9,9 +13,9 @@ def insert_trajectory(
item_id: str,
camera_id: str,
object_type: str,
postgres_timestamps: "list[str]",
pairs: "list[Float3]",
itemHeading_list: "list[int]",
postgres_timestamps: "list[datetime.datetime]",
pairs: "list[npt.NDArray[np.floating]]",
itemHeading_list: "list[float | None]",
translation_list: "list[Float3]",
# road_types: "list[str]",
# roadpolygon_list: "list[list[tuple[float, float]]]"
Expand Down
Loading