View Source Evision.Legacy.MultiTracker (Evision v0.1.28)

Link to this section Summary

Types

t()

Type that represents an Legacy.MultiTracker struct.

Functions

Clears the algorithm state

create

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

getDefaultName

getObjects

MultiTracker

Reads algorithm parameters from a file storage

Stores algorithm parameters in a file storage

Link to this section Types

@type t() :: %Evision.Legacy.MultiTracker{ref: reference()}

Type that represents an Legacy.MultiTracker struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

add(self, newTracker, image, boundingBox)

View Source
@spec add(
  t(),
  t(),
  Evision.Mat.maybe_mat_in(),
  {number(), number(), number(), number()}
) ::
  boolean() | {:error, String.t()}

add

Positional Arguments
  • self: Evision.Legacy.MultiTracker.t()

  • newTracker: Evision.Legacy.MultiTracker.t().

    tracking algorithm to be used

  • image: Evision.Mat.t().

    input image

  • boundingBox: Rect2d.

    a rectangle represents ROI of the tracked object

Return
  • retval: bool

\brief Add a new object to be tracked.

Python prototype (for reference only):

add(newTracker, image, boundingBox) -> retval
@spec clear(t()) :: t() | {:error, String.t()}

Clears the algorithm state

Positional Arguments
  • self: Evision.Legacy.MultiTracker.t()

Python prototype (for reference only):

clear() -> None
@spec create() :: t() | {:error, String.t()}

create

Return
  • retval: MultiTracker

\brief Returns a pointer to a new instance of MultiTracker

Python prototype (for reference only):

create() -> retval
@spec empty(t()) :: boolean() | {:error, String.t()}

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

Positional Arguments
  • self: Evision.Legacy.MultiTracker.t()
Return
  • retval: bool

Python prototype (for reference only):

empty() -> retval
@spec getDefaultName(t()) :: binary() | {:error, String.t()}

getDefaultName

Positional Arguments
  • self: Evision.Legacy.MultiTracker.t()
Return

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.

Python prototype (for reference only):

getDefaultName() -> retval
@spec getObjects(t()) ::
  [{number(), number(), number(), number()}] | {:error, String.t()}

getObjects

Positional Arguments
  • self: Evision.Legacy.MultiTracker.t()
Return
  • retval: [Rect2d]

\brief Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm

Python prototype (for reference only):

getObjects() -> retval
@spec multiTracker() :: t() | {:error, String.t()}

MultiTracker

Return
  • self: MultiTracker

\brief Constructor.

Python prototype (for reference only):

MultiTracker() -> <legacy_MultiTracker object>
@spec read(t(), Evision.FileNode.t()) :: t() | {:error, String.t()}

Reads algorithm parameters from a file storage

Positional Arguments
  • self: Evision.Legacy.MultiTracker.t()
  • fn_: Evision.FileNode.t()

Python prototype (for reference only):

read(fn_) -> None
@spec save(t(), binary()) :: t() | {:error, String.t()}

save

Positional Arguments
  • self: Evision.Legacy.MultiTracker.t()
  • filename: String

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).

Python prototype (for reference only):

save(filename) -> None
@spec update(t(), Evision.Mat.maybe_mat_in()) ::
  [{number(), number(), number(), number()}] | false | {:error, String.t()}

update

Positional Arguments
  • self: Evision.Legacy.MultiTracker.t()

  • image: Evision.Mat.t().

    input image

Return
  • retval: bool

  • boundingBox: [Rect2d].

    the tracking result, represent a list of ROIs of the tracked objects.

\brief Update the current tracking status.

Python prototype (for reference only):

update(image) -> retval, boundingBox
@spec write(t(), Evision.FileStorage.t()) :: t() | {:error, String.t()}

Stores algorithm parameters in a file storage

Positional Arguments
  • self: Evision.Legacy.MultiTracker.t()
  • fs: Evision.FileStorage.t()

Python prototype (for reference only):

write(fs) -> None
@spec write(t(), Evision.FileStorage.t(), binary()) :: t() | {:error, String.t()}

write

Positional Arguments
  • self: Evision.Legacy.MultiTracker.t()
  • fs: Evision.FileStorage.t()
  • name: String

Has overloading in C++

Python prototype (for reference only):

write(fs, name) -> None