opencv::video

Struct TrackerGOTURN

source
pub struct TrackerGOTURN { /* private fields */ }
Expand description

the GOTURN (Generic Object Tracking Using Regression Networks) tracker

GOTURN (GOTURN) is kind of trackers based on Convolutional Neural Networks (CNN). While taking all advantages of CNN trackers, GOTURN is much faster due to offline training without online fine-tuning nature. GOTURN tracker addresses the problem of single target tracking: given a bounding box label of an object in the first frame of the video, we track that object through the rest of the video. NOTE: Current method of GOTURN does not handle occlusions; however, it is fairly robust to viewpoint changes, lighting changes, and deformations. Inputs of GOTURN are two RGB patches representing Target and Search patches resized to 227x227. Outputs of GOTURN are predicted bounding box coordinates, relative to Search patch coordinate system, in format X1,Y1,X2,Y2. Original paper is here: http://davheld.github.io/GOTURN/GOTURN.pdf As long as original authors implementation: https://github.com/davheld/GOTURN#train-the-tracker Implementation of training algorithm is placed in separately here due to 3d-party dependencies: https://github.com/Auron-X/GOTURN_Training_Toolkit GOTURN architecture goturn.prototxt and trained model goturn.caffemodel are accessible on opencv_extra GitHub repository.

Implementations§

source§

impl TrackerGOTURN

source

pub fn create( parameters: &impl TrackerGOTURN_ParamsTraitConst, ) -> Result<Ptr<TrackerGOTURN>>

Constructor

§Parameters
  • parameters: GOTURN parameters TrackerGOTURN::Params
§C++ default parameters
  • parameters: TrackerGOTURN::Params()
source

pub fn create_def() -> Result<Ptr<TrackerGOTURN>>

Constructor

§Parameters
  • parameters: GOTURN parameters TrackerGOTURN::Params
§Note

This alternative version of TrackerGOTURN::create function uses the following default values for its arguments:

  • parameters: TrackerGOTURN::Params()

Trait Implementations§

source§

impl Boxed for TrackerGOTURN

source§

unsafe fn from_raw( ptr: <TrackerGOTURN as OpenCVFromExtern>::ExternReceive, ) -> Self

Wrap the specified raw pointer Read more
source§

fn into_raw(self) -> <TrackerGOTURN as OpenCVTypeExternContainer>::ExternSendMut

Return the underlying raw pointer while consuming this wrapper. Read more
source§

fn as_raw(&self) -> <TrackerGOTURN as OpenCVTypeExternContainer>::ExternSend

Return the underlying raw pointer. Read more
source§

fn as_raw_mut( &mut self, ) -> <TrackerGOTURN as OpenCVTypeExternContainer>::ExternSendMut

Return the underlying mutable raw pointer Read more
source§

impl Debug for TrackerGOTURN

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for TrackerGOTURN

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl From<TrackerGOTURN> for Tracker

source§

fn from(s: TrackerGOTURN) -> Self

Converts to this type from the input type.
source§

impl TrackerGOTURNTrait for TrackerGOTURN

source§

impl TrackerGOTURNTraitConst for TrackerGOTURN

source§

impl TrackerTrait for TrackerGOTURN

source§

fn as_raw_mut_Tracker(&mut self) -> *mut c_void

source§

fn init(&mut self, image: &impl ToInputArray, bounding_box: Rect) -> Result<()>

Initialize the tracker with a known bounding box that surrounded the target Read more
source§

fn update( &mut self, image: &impl ToInputArray, bounding_box: &mut Rect, ) -> Result<bool>

Update the tracker, find the new most likely bounding box for the target Read more
source§

impl TrackerTraitConst for TrackerGOTURN

source§

impl TryFrom<Tracker> for TrackerGOTURN

source§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(s: Tracker) -> Result<Self>

Performs the conversion.
source§

impl Send for TrackerGOTURN

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Mat> ModifyInplace for Mat
where Mat: Boxed,

source§

unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res

Helper function to call OpenCV functions that allow in-place modification of a Mat or another similar object. By passing a mutable reference to the Mat to this function your closure will get called with the read reference and a write references to the same Mat. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data, but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.