diff --git a/Cargo.toml b/Cargo.toml index 6428810..52c9ef4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,9 +7,9 @@ repository = "https://github.com/insight-platform/Similari" readme = "README.md" keywords = ["machine-learning", "similarity", "tracking", "SORT", "DeepSORT"] categories = ["algorithms", "data-structures", "computer-vision", "science"] -version = "0.26.10" +version = "0.26.11" edition = "2021" -license="Apache-2.0" +license = "Apache-2.0" rust-version = "1.66" [lib] @@ -18,7 +18,7 @@ name = "similari" [features] default = ["python"] -python = ["dep:pyo3", "dep:pyo3-build-config","dep:pyo3-log"] +python = ["dep:pyo3", "dep:pyo3-build-config", "dep:pyo3-log"] [dependencies] itertools = "0.12" diff --git a/src/track/store.rs b/src/track/store.rs index db7701c..60cf9eb 100644 --- a/src/track/store.rs +++ b/src/track/store.rs @@ -55,7 +55,7 @@ pub type StoreMutexGuard<'a, TA, M, FA, N> = MutexGuard<'a, HashMap = Result>>; #[derive(Debug)] -pub(crate) enum Results +pub enum Results where OA: ObservationAttributes, { diff --git a/src/track/store/track_distance.rs b/src/track/store/track_distance.rs index 9888707..21226c1 100644 --- a/src/track/store/track_distance.rs +++ b/src/track/store/track_distance.rs @@ -3,6 +3,7 @@ use crate::track::{ObservationAttributes, ObservationMetricOk}; use crossbeam::channel::Receiver; use std::vec::IntoIter; +/// Represents the response from the track distance computation. /// trait TrackDistanceResponse: IntoIterator where @@ -24,6 +25,7 @@ where fn channel(&self) -> &Receiver>; } +/// Represents the ok response from the track distance computation. /// pub struct TrackDistanceOk where @@ -64,6 +66,7 @@ where } } +/// Represents the error response from the track distance computation. /// pub struct TrackDistanceErr where diff --git a/src/trackers/sort.rs b/src/trackers/sort.rs index a4bea4c..729bc51 100644 --- a/src/trackers/sort.rs +++ b/src/trackers/sort.rs @@ -543,7 +543,7 @@ pub mod python { #[pyclass] #[pyo3(name = "VotingType")] #[derive(Default, Debug, Clone, Copy)] - pub struct PyVotingType(pub(crate) VotingType); + pub struct PyVotingType(pub VotingType); #[pymethods] impl PyVotingType { diff --git a/src/utils/point.rs b/src/utils/point.rs index 6aa6908..578a392 100644 --- a/src/utils/point.rs +++ b/src/utils/point.rs @@ -1 +1 @@ -pub struct Point2D(f32, f32); +pub struct Point2D(pub f32, pub f32);