View Source Evision.DNN.Image2BlobParams (Evision v0.2.9)

Summary

Types

t()

Type that represents an DNN.Image2BlobParams struct.

Types

@type t() :: %Evision.DNN.Image2BlobParams{ref: reference()}

Type that represents an DNN.Image2BlobParams struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

Link to this function

blobRectsToImageRects(named_args)

View Source
@spec blobRectsToImageRects(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

blobRectsToImageRects(self, rBlob, size)

View Source
@spec blobRectsToImageRects(
  t(),
  [{number(), number(), number(), number()}],
  {number(), number()}
) ::
  [{number(), number(), number(), number()}] | {:error, String.t()}

Get rectangle coordinates in original image system from rectangle in blob coordinates.

Positional Arguments
  • self: Evision.DNN.Image2BlobParams.t()

  • rBlob: [Rect].

    rect in blob coordinates.

  • size: Size.

    original input image size.

Return
  • rImg: [Rect].

    result rect in image coordinates.

Python prototype (for reference only):

blobRectsToImageRects(rBlob, size) -> rImg
Link to this function

blobRectToImageRect(named_args)

View Source
@spec blobRectToImageRect(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

blobRectToImageRect(self, rBlob, size)

View Source
@spec blobRectToImageRect(
  t(),
  {number(), number(), number(), number()},
  {number(), number()}
) ::
  {number(), number(), number(), number()} | {:error, String.t()}

Get rectangle coordinates in original image system from rectangle in blob coordinates.

Positional Arguments
  • self: Evision.DNN.Image2BlobParams.t()

  • rBlob: Rect.

    rect in blob coordinates.

  • size: Size.

    original input image size.

Return
  • retval: Rect

@returns rectangle in original image coordinates.

Python prototype (for reference only):

blobRectToImageRect(rBlob, size) -> retval
@spec get_borderValue(t()) :: Evision.scalar()
@spec get_datalayout(t()) :: Evision.DNN.DataLayout.enum()
@spec get_ddepth(t()) :: integer()
@spec get_mean(t()) :: Evision.scalar()
@spec get_paddingmode(t()) :: Evision.DNN.ImagePaddingMode.enum()
@spec get_scalefactor(t()) :: Evision.scalar()
@spec get_size(t()) :: {number(), number()}
@spec get_swapRB(t()) :: boolean()
@spec image2BlobParams() :: t() | {:error, String.t()}

Image2BlobParams

Return
  • self: Image2BlobParams

Python prototype (for reference only):

Image2BlobParams() -> <dnn_Image2BlobParams object>
Link to this function

image2BlobParams(named_args)

View Source
@spec image2BlobParams(Keyword.t()) :: any() | {:error, String.t()}
@spec image2BlobParams(Evision.scalar()) :: t() | {:error, String.t()}

Image2BlobParams

Positional Arguments
  • scalefactor: Evision.scalar()
Keyword Arguments
  • size: Size.
  • mean: Evision.scalar().
  • swapRB: bool.
  • ddepth: integer().
  • datalayout: DataLayout.
  • mode: ImagePaddingMode.
  • borderValue: Evision.scalar().
Return
  • self: Image2BlobParams

Python prototype (for reference only):

Image2BlobParams(scalefactor[, size[, mean[, swapRB[, ddepth[, datalayout[, mode[, borderValue]]]]]]]) -> <dnn_Image2BlobParams object>
Link to this function

image2BlobParams(scalefactor, opts)

View Source
@spec image2BlobParams(
  Evision.scalar(),
  [
    borderValue: term(),
    datalayout: term(),
    ddepth: term(),
    mean: term(),
    mode: term(),
    size: term(),
    swapRB: term()
  ]
  | nil
) :: t() | {:error, String.t()}

Image2BlobParams

Positional Arguments
  • scalefactor: Evision.scalar()
Keyword Arguments
  • size: Size.
  • mean: Evision.scalar().
  • swapRB: bool.
  • ddepth: integer().
  • datalayout: DataLayout.
  • mode: ImagePaddingMode.
  • borderValue: Evision.scalar().
Return
  • self: Image2BlobParams

Python prototype (for reference only):

Image2BlobParams(scalefactor[, size[, mean[, swapRB[, ddepth[, datalayout[, mode[, borderValue]]]]]]]) -> <dnn_Image2BlobParams object>
Link to this function

set_borderValue(self, prop)

View Source
@spec set_borderValue(t(), Evision.scalar()) :: t()
Link to this function

set_datalayout(self, prop)

View Source
@spec set_datalayout(t(), Evision.DNN.DataLayout.enum()) :: t()
@spec set_ddepth(t(), integer()) :: t()
@spec set_mean(t(), Evision.scalar()) :: t()
Link to this function

set_paddingmode(self, prop)

View Source
@spec set_paddingmode(t(), Evision.DNN.ImagePaddingMode.enum()) :: t()
Link to this function

set_scalefactor(self, prop)

View Source
@spec set_scalefactor(t(), Evision.scalar()) :: t()
@spec set_size(
  t(),
  {number(), number()}
) :: t()
@spec set_swapRB(t(), boolean()) :: t()