View Source Evision.BgSegm.BackgroundSubtractorCNT (Evision v0.1.28)

Link to this section Summary

Types

t()

Type that represents an BgSegm.BackgroundSubtractorCNT struct.

Functions

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.

Link to this section Types

@type t() :: %Evision.BgSegm.BackgroundSubtractorCNT{ref: reference()}

Type that represents an BgSegm.BackgroundSubtractorCNT struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

@spec apply(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
Link to this function

apply(self, image, opts)

View Source
@spec apply(t(), Evision.Mat.maybe_mat_in(), [{atom(), 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
Link to this function

getBackgroundImage(self)

View Source
@spec getBackgroundImage(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
Link to this function

getBackgroundImage(self, opts)

View Source
@spec getBackgroundImage(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(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
Link to this function

getMaxPixelStability(self)

View Source
@spec getMaxPixelStability(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
Link to this function

getMinPixelStability(self)

View Source
@spec getMinPixelStability(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(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
Link to this function

setIsParallel(self, value)

View Source
@spec setIsParallel(t(), boolean()) :: 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
Link to this function

setMaxPixelStability(self, value)

View Source
@spec setMaxPixelStability(t(), integer()) :: 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
Link to this function

setMinPixelStability(self, value)

View Source
@spec setMinPixelStability(t(), integer()) :: 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
Link to this function

setUseHistory(self, value)

View Source
@spec setUseHistory(t(), boolean()) :: 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