feat: Enhance camera module with new data structures and utility functions

- Introduced dataclass structures for CameraParams and Camera to improve type safety and clarity.
- Added Detection dataclass to encapsulate detection data, including keypoints and timestamps.
- Implemented classify_by_camera function to organize detections by camera.
- Added utility functions for converting points to homogeneous coordinates and calculating distances to lines.
- Updated dependencies in pyproject.toml to include new libraries for enhanced functionality.
This commit is contained in:
2025-04-15 10:20:49 +08:00
parent 3ce5b564bf
commit 92477b18d2
7 changed files with 815 additions and 6 deletions

View File

@ -11,8 +11,11 @@ dependencies = [
"cvxopt>=1.3.2",
"jax[cuda12]>=0.5.1",
"jaxtyping>=0.2.38",
"matplotlib>=3.10.1",
"opencv-contrib-python-headless>=4.11.0.86",
"orjson>=3.10.15",
"pandas>=2.2.3",
"pyarrow>=19.0.1",
"torch>=2.6.0",
"torchvision>=0.21.0",
"typeguard>=4.4.2",