View Source Evision.CUDA.BackgroundSubtractorMOG2 (Evision v0.1.28)

Link to this section Summary

Types

t()

Type that represents an CUDA.BackgroundSubtractorMOG2 struct.

Link to this section Types

@type t() :: %Evision.CUDA.BackgroundSubtractorMOG2{ref: reference()}

Type that represents an CUDA.BackgroundSubtractorMOG2 struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

apply(self, image, learningRate, stream)

View Source

Variant 1:

apply

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • image: Evision.Mat.t()
  • learningRate: double
  • stream: Evision.CUDA.Stream.t()
Return
  • fgmask: Evision.Mat.t().

Python prototype (for reference only):

apply(image, learningRate, stream[, fgmask]) -> fgmask

Variant 2:

apply

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • image: Evision.CUDA.GpuMat.t()
  • learningRate: double
  • stream: Evision.CUDA.Stream.t()
Return
  • fgmask: Evision.CUDA.GpuMat.t().

Python prototype (for reference only):

apply(image, learningRate, stream[, fgmask]) -> fgmask
Link to this function

apply(self, image, learningRate, stream, opts)

View Source

Variant 1:

apply

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • image: Evision.Mat.t()
  • learningRate: double
  • stream: Evision.CUDA.Stream.t()
Return
  • fgmask: Evision.Mat.t().

Python prototype (for reference only):

apply(image, learningRate, stream[, fgmask]) -> fgmask

Variant 2:

apply

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • image: Evision.CUDA.GpuMat.t()
  • learningRate: double
  • stream: Evision.CUDA.Stream.t()
Return
  • fgmask: Evision.CUDA.GpuMat.t().

Python prototype (for reference only):

apply(image, learningRate, stream[, fgmask]) -> fgmask
Link to this function

getBackgroundImage(self, stream)

View Source
@spec getBackgroundImage(
  Evision.BackgroundSubtractorMOG2.t(),
  Evision.CUDA.Stream.t()
) ::
  Evision.CUDA.GpuMat.t() | {:error, String.t()}

getBackgroundImage

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • stream: Evision.CUDA.Stream.t()
Return
  • backgroundImage: Evision.CUDA.GpuMat.t().

Python prototype (for reference only):

getBackgroundImage(stream[, backgroundImage]) -> backgroundImage
Link to this function

getBackgroundImage(self, stream, opts)

View Source
@spec getBackgroundImage(
  Evision.BackgroundSubtractorMOG2.t(),
  Evision.CUDA.Stream.t(),
  [{atom(), term()}, ...] | nil
) :: Evision.CUDA.GpuMat.t() | {:error, String.t()}

getBackgroundImage

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • stream: Evision.CUDA.Stream.t()
Return
  • backgroundImage: Evision.CUDA.GpuMat.t().

Python prototype (for reference only):

getBackgroundImage(stream[, backgroundImage]) -> backgroundImage