View Source Evision.VideoIORegistry (Evision v0.1.37)

Summary

Types

t()

Type that represents an VideoIORegistry struct.

Functions

Returns backend API name or "UnknownVideoAPI(xxx)"

Returns list of all available backends

Returns description and ABI/API version of videoio plugin's camera interface

Returns list of available backends which works via cv::VideoCapture(int index)

Returns description and ABI/API version of videoio plugin's stream capture interface

Returns list of available backends which works via cv::VideoCapture(filename)

Returns description and ABI/API version of videoio plugin's writer interface

Returns list of available backends which works via cv::VideoWriter()

Returns true if backend is available

Returns true if backend is built in (false if backend is used as plugin)

Types

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

Type that represents an VideoIORegistry struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec getBackendName(integer()) :: binary() | {:error, String.t()}

Returns backend API name or "UnknownVideoAPI(xxx)"

Positional Arguments
  • api: VideoCaptureAPIs.

    backend ID (#VideoCaptureAPIs)

Return

Python prototype (for reference only):

getBackendName(api) -> retval
@spec getBackends() :: [integer()] | {:error, String.t()}

Returns list of all available backends

Return
  • retval: [VideoCaptureAPIs]

Python prototype (for reference only):

getBackends() -> retval
Link to this function

getCameraBackendPluginVersion(api)

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

Returns description and ABI/API version of videoio plugin's camera interface

Positional Arguments
  • api: VideoCaptureAPIs
Return
  • retval: string
  • version_ABI: int
  • version_API: int

Python prototype (for reference only):

getCameraBackendPluginVersion(api) -> retval, version_ABI, version_API
@spec getCameraBackends() :: [integer()] | {:error, String.t()}

Returns list of available backends which works via cv::VideoCapture(int index)

Return
  • retval: [VideoCaptureAPIs]

Python prototype (for reference only):

getCameraBackends() -> retval
Link to this function

getStreamBackendPluginVersion(api)

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

Returns description and ABI/API version of videoio plugin's stream capture interface

Positional Arguments
  • api: VideoCaptureAPIs
Return
  • retval: string
  • version_ABI: int
  • version_API: int

Python prototype (for reference only):

getStreamBackendPluginVersion(api) -> retval, version_ABI, version_API
@spec getStreamBackends() :: [integer()] | {:error, String.t()}

Returns list of available backends which works via cv::VideoCapture(filename)

Return
  • retval: [VideoCaptureAPIs]

Python prototype (for reference only):

getStreamBackends() -> retval
Link to this function

getWriterBackendPluginVersion(api)

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

Returns description and ABI/API version of videoio plugin's writer interface

Positional Arguments
  • api: VideoCaptureAPIs
Return
  • retval: string
  • version_ABI: int
  • version_API: int

Python prototype (for reference only):

getWriterBackendPluginVersion(api) -> retval, version_ABI, version_API
@spec getWriterBackends() :: [integer()] | {:error, String.t()}

Returns list of available backends which works via cv::VideoWriter()

Return
  • retval: [VideoCaptureAPIs]

Python prototype (for reference only):

getWriterBackends() -> retval
@spec hasBackend(integer()) :: boolean() | {:error, String.t()}

Returns true if backend is available

Positional Arguments
  • api: VideoCaptureAPIs
Return
  • retval: bool

Python prototype (for reference only):

hasBackend(api) -> retval
@spec isBackendBuiltIn(integer()) :: boolean() | {:error, String.t()}

Returns true if backend is built in (false if backend is used as plugin)

Positional Arguments
  • api: VideoCaptureAPIs
Return
  • retval: bool

Python prototype (for reference only):

isBackendBuiltIn(api) -> retval