View Source Evision.Utils (Evision v0.1.13)

Link to this section Summary

Types

t()

Type that represents an Evision.Utils struct.

Functions

Positional Arguments
  • argument: bool
Return

Python prototype (for reference):

Positional Arguments
  • argument: c_string
Return

Python prototype (for reference):

Positional Arguments
  • argument: double
Return

Python prototype (for reference):

Positional Arguments
  • argument: float
Return

Python prototype (for reference):

Positional Arguments
Return

Python prototype (for reference):

Positional Arguments
  • argument: [Evision.Mat]
Return

Python prototype (for reference):

Return

Python prototype (for reference):

Return
  • retval: String
  • argument: [Evision.Mat]

Python prototype (for reference):

Positional Arguments
  • argument: int
Return

Python prototype (for reference):

Positional Arguments
Return

Python prototype (for reference):

Positional Arguments
  • argument: Rect
Return

Python prototype (for reference):

Positional Arguments
  • argument: {centre={x, y}, size={s1, s2}, angle}
Return

Python prototype (for reference):

Positional Arguments
  • argument: size_t
Return

Python prototype (for reference):

Positional Arguments
Return

Python prototype (for reference):

Positional Arguments
  • argument: TermCriteria
Return

Python prototype (for reference):

Positional Arguments
  • vec: [double]
Return

Python prototype (for reference):

Positional Arguments
  • vec: [int]
Return

Python prototype (for reference):

Positional Arguments
  • vec: [Rect]
Return

Python prototype (for reference):

Positional Arguments
  • len: size_t
Return
  • vec: [int]

Python prototype (for reference):

Positional Arguments
  • len: size_t
  • rows: int
  • cols: int
  • dtype: int
Return
  • vec: [Evision.Mat].

Python prototype (for reference):

Positional Arguments
  • len: size_t
  • rows: int
  • cols: int
  • dtype: int
Return
  • vec: [Evision.Mat].

Python prototype (for reference):

Positional Arguments
  • len: size_t
Return
  • vec: [Rect]

Python prototype (for reference):

Positional Arguments
Return

Python prototype (for reference):

Return

Python prototype (for reference):

Variant 1:

Positional Arguments
  • rect: Rect
Return

Python prototype (for reference):

Positional Arguments
  • value: int
Keyword Arguments
  • point: Point.
Return

Python prototype (for reference):

Positional Arguments
  • argument: int
Return
  • retval: int

Python prototype (for reference):

Python prototype (for reference):

Positional Arguments
  • positional_argument: int
Keyword Arguments
  • lambda: int.
  • from: int.
Return

Python prototype (for reference):

Positional Arguments
  • positional_argument: int
Keyword Arguments
  • lambda: int.
  • from: int.
Return

Python prototype (for reference):

Positional Arguments
  • x: float
  • y: float
  • w: float
  • h: float
  • angle: float
Return
  • retval: {centre={x, y}, size={s1, s2}, angle}

Python prototype (for reference):

Positional Arguments
  • x: float
  • y: float
  • w: float
  • h: float
  • angle: float
Return
  • retval: std::vector<RotatedRect>

Python prototype (for reference):

Link to this section Types

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

Type that represents an Evision.Utils struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

@spec dumpBool(boolean()) :: binary() | {:error, String.t()}
Positional Arguments
  • argument: bool
Return

Python prototype (for reference):

dumpBool(argument) -> retval
@spec dumpCString(binary()) :: binary() | {:error, String.t()}
Positional Arguments
  • argument: c_string
Return

Python prototype (for reference):

dumpCString(argument) -> retval
@spec dumpDouble(number()) :: binary() | {:error, String.t()}
Positional Arguments
  • argument: double
Return

Python prototype (for reference):

dumpDouble(argument) -> retval
@spec dumpFloat(number()) :: binary() | {:error, String.t()}
Positional Arguments
  • argument: float
Return

Python prototype (for reference):

dumpFloat(argument) -> retval
Link to this function

dumpInputArray(argument)

View Source
@spec dumpInputArray(Evision.Mat.maybe_mat_in()) :: binary() | {:error, String.t()}
Positional Arguments
Return

Python prototype (for reference):

dumpInputArray(argument) -> retval
Link to this function

dumpInputArrayOfArrays(argument)

View Source
@spec dumpInputArrayOfArrays([Evision.Mat.maybe_mat_in()]) ::
  binary() | {:error, String.t()}
Positional Arguments
  • argument: [Evision.Mat]
Return

Python prototype (for reference):

dumpInputArrayOfArrays(argument) -> retval
Link to this function

dumpInputOutputArray(argument)

View Source
@spec dumpInputOutputArray(Evision.Mat.maybe_mat_in()) ::
  {binary(), Evision.Mat.t()} | {:error, String.t()}
Return

Python prototype (for reference):

dumpInputOutputArray(argument) -> retval, argument
Link to this function

dumpInputOutputArrayOfArrays(argument)

View Source
@spec dumpInputOutputArrayOfArrays([Evision.Mat.maybe_mat_in()]) ::
  {binary(), [Evision.Mat.t()]} | {:error, String.t()}
Return
  • retval: String
  • argument: [Evision.Mat]

Python prototype (for reference):

dumpInputOutputArrayOfArrays(argument) -> retval, argument
@spec dumpInt(integer()) :: binary() | {:error, String.t()}
Positional Arguments
  • argument: int
Return

Python prototype (for reference):

dumpInt(argument) -> retval
@spec dumpRange({integer(), integer()} | :all) :: binary() | {:error, String.t()}
Positional Arguments
Return

Python prototype (for reference):

dumpRange(argument) -> retval
@spec dumpRect({number(), number(), number(), number()}) ::
  binary() | {:error, String.t()}
Positional Arguments
  • argument: Rect
Return

Python prototype (for reference):

dumpRect(argument) -> retval
Link to this function

dumpRotatedRect(argument)

View Source
@spec dumpRotatedRect({{number(), number()}, {number(), number()}, number()}) ::
  binary() | {:error, String.t()}
Positional Arguments
  • argument: {centre={x, y}, size={s1, s2}, angle}
Return

Python prototype (for reference):

dumpRotatedRect(argument) -> retval
@spec dumpSizeT(integer()) :: binary() | {:error, String.t()}
Positional Arguments
  • argument: size_t
Return

Python prototype (for reference):

dumpSizeT(argument) -> retval
@spec dumpString(binary()) :: binary() | {:error, String.t()}
Positional Arguments
Return

Python prototype (for reference):

dumpString(argument) -> retval
Link to this function

dumpTermCriteria(argument)

View Source
@spec dumpTermCriteria({integer(), integer(), number()}) ::
  binary() | {:error, String.t()}
Positional Arguments
  • argument: TermCriteria
Return

Python prototype (for reference):

dumpTermCriteria(argument) -> retval
@spec dumpVectorOfDouble([number()]) :: binary() | {:error, String.t()}
Positional Arguments
  • vec: [double]
Return

Python prototype (for reference):

dumpVectorOfDouble(vec) -> retval
@spec dumpVectorOfInt([integer()]) :: binary() | {:error, String.t()}
Positional Arguments
  • vec: [int]
Return

Python prototype (for reference):

dumpVectorOfInt(vec) -> retval
@spec dumpVectorOfRect([{number(), number(), number(), number()}]) ::
  binary() | {:error, String.t()}
Positional Arguments
  • vec: [Rect]
Return

Python prototype (for reference):

dumpVectorOfRect(vec) -> retval
Link to this function

generateVectorOfInt(len)

View Source
@spec generateVectorOfInt(integer()) :: [integer()] | {:error, String.t()}
Positional Arguments
  • len: size_t
Return
  • vec: [int]

Python prototype (for reference):

generateVectorOfInt(len) -> vec
Link to this function

generateVectorOfMat(len, rows, cols, dtype)

View Source
@spec generateVectorOfMat(integer(), integer(), integer(), integer()) ::
  [Evision.Mat.t()] | {:error, String.t()}
Positional Arguments
  • len: size_t
  • rows: int
  • cols: int
  • dtype: int
Return
  • vec: [Evision.Mat].

Python prototype (for reference):

generateVectorOfMat(len, rows, cols, dtype[, vec]) -> vec
Link to this function

generateVectorOfMat(len, rows, cols, dtype, opts)

View Source
@spec generateVectorOfMat(
  integer(),
  integer(),
  integer(),
  integer(),
  [{atom(), term()}, ...] | nil
) ::
  [Evision.Mat.t()] | {:error, String.t()}
Positional Arguments
  • len: size_t
  • rows: int
  • cols: int
  • dtype: int
Return
  • vec: [Evision.Mat].

Python prototype (for reference):

generateVectorOfMat(len, rows, cols, dtype[, vec]) -> vec
Link to this function

generateVectorOfRect(len)

View Source
@spec generateVectorOfRect(integer()) ::
  [{number(), number(), number(), number()}] | {:error, String.t()}
Positional Arguments
  • len: size_t
Return
  • vec: [Rect]

Python prototype (for reference):

generateVectorOfRect(len) -> vec
Link to this function

testAsyncArray(argument)

View Source
@spec testAsyncArray(Evision.Mat.maybe_mat_in()) ::
  Evision.AsyncArray.t() | {:error, String.t()}
Positional Arguments
Return

Python prototype (for reference):

testAsyncArray(argument) -> retval
@spec testAsyncException() :: Evision.AsyncArray.t() | {:error, String.t()}
Return

Python prototype (for reference):

testAsyncException() -> retval
Link to this function

testOverloadResolution(rect)

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

Variant 1:

Positional Arguments
  • rect: Rect
Return

Python prototype (for reference):

testOverloadResolution(rect) -> retval

Variant 2:

Positional Arguments
  • value: int
Keyword Arguments
  • point: Point.
Return

Python prototype (for reference):

testOverloadResolution(value[, point]) -> retval
Link to this function

testOverloadResolution(value, opts)

View Source
@spec testOverloadResolution(integer(), [{atom(), term()}, ...] | nil) ::
  binary() | {:error, String.t()}
Positional Arguments
  • value: int
Keyword Arguments
  • point: Point.
Return

Python prototype (for reference):

testOverloadResolution(value[, point]) -> retval
Link to this function

testOverwriteNativeMethod(argument)

View Source
@spec testOverwriteNativeMethod(integer()) :: integer() | {:error, String.t()}
Positional Arguments
  • argument: int
Return
  • retval: int

Python prototype (for reference):

testOverwriteNativeMethod(argument) -> retval
Link to this function

testRaiseGeneralException()

View Source
@spec testRaiseGeneralException() :: :ok | {:error, String.t()}

Python prototype (for reference):

testRaiseGeneralException() -> None
Link to this function

testReservedKeywordConversion(positional_argument)

View Source
@spec testReservedKeywordConversion(integer()) :: binary() | {:error, String.t()}
Positional Arguments
  • positional_argument: int
Keyword Arguments
  • lambda: int.
  • from: int.
Return

Python prototype (for reference):

testReservedKeywordConversion(positional_argument[, lambda[, from]]) -> retval
Link to this function

testReservedKeywordConversion(positional_argument, opts)

View Source
@spec testReservedKeywordConversion(integer(), [{atom(), term()}, ...] | nil) ::
  binary() | {:error, String.t()}
Positional Arguments
  • positional_argument: int
Keyword Arguments
  • lambda: int.
  • from: int.
Return

Python prototype (for reference):

testReservedKeywordConversion(positional_argument[, lambda[, from]]) -> retval
Link to this function

testRotatedRect(x, y, w, h, angle)

View Source
@spec testRotatedRect(number(), number(), number(), number(), number()) ::
  {{number(), number()}, {number(), number()}, number()} | {:error, String.t()}
Positional Arguments
  • x: float
  • y: float
  • w: float
  • h: float
  • angle: float
Return
  • retval: {centre={x, y}, size={s1, s2}, angle}

Python prototype (for reference):

testRotatedRect(x, y, w, h, angle) -> retval
Link to this function

testRotatedRectVector(x, y, w, h, angle)

View Source
@spec testRotatedRectVector(number(), number(), number(), number(), number()) ::
  [{{number(), number()}, {number(), number()}, number()}]
  | {:error, String.t()}
Positional Arguments
  • x: float
  • y: float
  • w: float
  • h: float
  • angle: float
Return
  • retval: std::vector<RotatedRect>

Python prototype (for reference):

testRotatedRectVector(x, y, w, h, angle) -> retval