View Source Evision.Legacy.MultiTracker (Evision v0.2.2-rc2)
Summary
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
save
update
Stores algorithm parameters in a file storage
write
Types
@type t() :: %Evision.Legacy.MultiTracker{ref: reference()}
Type that represents an Legacy.MultiTracker
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
@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
Clears the algorithm state
Positional Arguments
- self:
Evision.Legacy.MultiTracker.t()
Python prototype (for reference only):
clear() -> None
create
Return
- retval:
MultiTracker
\brief Returns a pointer to a new instance of MultiTracker
Python prototype (for reference only):
create() -> retval
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
getDefaultName
Positional Arguments
- self:
Evision.Legacy.MultiTracker.t()
Return
- retval:
String
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
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
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
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