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

Link to this section Summary

Types

t()

Type that represents an BgSegm.BackgroundSubtractorLSBP struct.

Link to this section Types

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

Type that represents an BgSegm.BackgroundSubtractorLSBP 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.BackgroundSubtractorLSBP.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.BackgroundSubtractorLSBP.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.BackgroundSubtractorLSBP.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.BackgroundSubtractorLSBP.t()
Return
  • backgroundImage: Evision.Mat.t().

Python prototype (for reference only):

getBackgroundImage([, backgroundImage]) -> backgroundImage