View Source Evision.BgSegm.BackgroundSubtractorCNT (Evision v0.2.1)
Summary
Functions
apply
apply
getBackgroundImage
getBackgroundImage
Returns if we're parallelizing the algorithm.
Returns maximum allowed credit for a pixel in history.
Returns number of frames with same pixel color to consider stable.
Returns if we're giving a pixel credit for being stable for a long time.
Sets if we're parallelizing the algorithm.
Sets the maximum allowed credit for a pixel in history.
Sets the number of frames with same pixel color to consider stable.
Sets if we're giving a pixel credit for being stable for a long time.
Types
@type t() :: %Evision.BgSegm.BackgroundSubtractorCNT{ref: reference()}
Type that represents an BgSegm.BackgroundSubtractorCNT
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
@spec apply( Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t(), Evision.Mat.maybe_mat_in() ) :: Evision.Mat.t() | {:error, String.t()}
apply
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
- image:
Evision.Mat.t()
Keyword Arguments
- learningRate:
double
.
Return
- fgmask:
Evision.Mat.t()
.
Python prototype (for reference only):
apply(image[, fgmask[, learningRate]]) -> fgmask
@spec apply( Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t(), Evision.Mat.maybe_mat_in(), [{:learningRate, term()}] | nil ) :: Evision.Mat.t() | {:error, String.t()}
apply
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
- image:
Evision.Mat.t()
Keyword Arguments
- learningRate:
double
.
Return
- fgmask:
Evision.Mat.t()
.
Python prototype (for reference only):
apply(image[, fgmask[, learningRate]]) -> fgmask
@spec getBackgroundImage(Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t()) :: Evision.Mat.t() | {:error, String.t()}
getBackgroundImage
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
Return
- backgroundImage:
Evision.Mat.t()
.
Python prototype (for reference only):
getBackgroundImage([, backgroundImage]) -> backgroundImage
@spec getBackgroundImage( Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t(), [{atom(), term()}, ...] | nil ) :: Evision.Mat.t() | {:error, String.t()}
getBackgroundImage
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
Return
- backgroundImage:
Evision.Mat.t()
.
Python prototype (for reference only):
getBackgroundImage([, backgroundImage]) -> backgroundImage
@spec getIsParallel(Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t()) :: boolean() | {:error, String.t()}
Returns if we're parallelizing the algorithm.
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
Return
- retval:
bool
Python prototype (for reference only):
getIsParallel() -> retval
@spec getMaxPixelStability(Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t()) :: integer() | {:error, String.t()}
Returns maximum allowed credit for a pixel in history.
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
Return
- retval:
int
Python prototype (for reference only):
getMaxPixelStability() -> retval
@spec getMinPixelStability(Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t()) :: integer() | {:error, String.t()}
Returns number of frames with same pixel color to consider stable.
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
Return
- retval:
int
Python prototype (for reference only):
getMinPixelStability() -> retval
@spec getUseHistory(Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t()) :: boolean() | {:error, String.t()}
Returns if we're giving a pixel credit for being stable for a long time.
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
Return
- retval:
bool
Python prototype (for reference only):
getUseHistory() -> retval
@spec setIsParallel(Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t(), boolean()) :: Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t() | {:error, String.t()}
Sets if we're parallelizing the algorithm.
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
- value:
bool
Python prototype (for reference only):
setIsParallel(value) -> None
@spec setMaxPixelStability( Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t(), integer() ) :: Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t() | {:error, String.t()}
Sets the maximum allowed credit for a pixel in history.
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
- value:
int
Python prototype (for reference only):
setMaxPixelStability(value) -> None
@spec setMinPixelStability( Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t(), integer() ) :: Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t() | {:error, String.t()}
Sets the number of frames with same pixel color to consider stable.
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
- value:
int
Python prototype (for reference only):
setMinPixelStability(value) -> None
@spec setUseHistory(Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t(), boolean()) :: Evision.BgSegm.BgSegm.BackgroundSubtractorCNT.t() | {:error, String.t()}
Sets if we're giving a pixel credit for being stable for a long time.
Positional Arguments
- self:
Evision.BgSegm.BackgroundSubtractorCNT.t()
- value:
bool
Python prototype (for reference only):
setUseHistory(value) -> None