feat: Integrate pyrsistent for enhanced tracking state management

- Added `pyrsistent` as a dependency to manage historical detections in the `Tracking` class, improving data integrity and immutability.
- Updated the `GlobalTrackingState` to include historical detections using `PVector`, facilitating better tracking of past detections.
- Introduced a new `update_tracking` function to handle timestamp updates for tracking objects, enhancing the tracking logic.
- Refactored imports and type hints for improved organization and clarity across the codebase.
This commit is contained in:
2025-04-30 10:04:39 +08:00
parent cea21dc434
commit 072bf1c46f
4 changed files with 54 additions and 2 deletions

View File

@ -20,6 +20,7 @@ dependencies = [
"pandas>=2.2.3",
"plotly>=6.0.1",
"pyarrow>=19.0.1",
"pyrsistent>=0.20.0",
"pytest>=8.3.5",
"scipy>=1.15.2",
"torch>=2.6.0",