Trait opencv::hub_prelude::TrackerNano
source · pub trait TrackerNano: Tracker + TrackerNanoConst {
// Required method
fn as_raw_mut_TrackerNano(&mut self) -> *mut c_void;
// Provided method
fn get_tracking_score(&mut self) -> Result<f32> { ... }
}
Expand description
the Nano tracker is a super lightweight dnn-based general object tracking.
Nano tracker is much faster and extremely lightweight due to special model structure, the whole model size is about 1.9 MB. Nano tracker needs two models: one for feature extraction (backbone) and the another for localization (neckhead). Model download link: https://github.com/HonglinChu/SiamTrackers/tree/master/NanoTrack/models/nanotrackv2 Original repo is here: https://github.com/HonglinChu/NanoTrack Author: HongLinChu, 1628464345@qq.com
Required Methods§
fn as_raw_mut_TrackerNano(&mut self) -> *mut c_void
Provided Methods§
sourcefn get_tracking_score(&mut self) -> Result<f32>
fn get_tracking_score(&mut self) -> Result<f32>
Return tracking score
Implementations§
source§impl dyn TrackerNano + '_
impl dyn TrackerNano + '_
sourcepub fn create(parameters: &TrackerNano_Params) -> Result<Ptr<dyn TrackerNano>>
pub fn create(parameters: &TrackerNano_Params) -> Result<Ptr<dyn TrackerNano>>
Constructor
Parameters
- parameters: NanoTrack parameters TrackerNano::Params
C++ default parameters
- parameters: TrackerNano::Params()