View Source Evision.Parallel (Evision v0.1.21)

Link to this section Summary

Types

t()

Type that represents an Evision.Parallel struct.

Functions

Change OpenCV parallel_for backend

Change OpenCV parallel_for backend

Link to this section Types

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

Type that represents an Evision.Parallel struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

setParallelForBackend(backendName)

View Source
@spec setParallelForBackend(binary()) :: boolean() | {:error, String.t()}

Change OpenCV parallel_for backend

Positional Arguments
  • backendName: string
Keyword Arguments
  • propagateNumThreads: bool.
Return
  • retval: bool

Note: This call is not thread-safe. Consider calling this function from the main() before any other OpenCV processing functions (and without any other created threads).

Python prototype (for reference only):

setParallelForBackend(backendName[, propagateNumThreads]) -> retval
Link to this function

setParallelForBackend(backendName, opts)

View Source
@spec setParallelForBackend(binary(), [{atom(), term()}, ...] | nil) ::
  boolean() | {:error, String.t()}

Change OpenCV parallel_for backend

Positional Arguments
  • backendName: string
Keyword Arguments
  • propagateNumThreads: bool.
Return
  • retval: bool

Note: This call is not thread-safe. Consider calling this function from the main() before any other OpenCV processing functions (and without any other created threads).

Python prototype (for reference only):

setParallelForBackend(backendName[, propagateNumThreads]) -> retval