View Source Evision.HighGui (Evision v0.2.9)
High-level Graphical User Interface
Summary
Functions
Close all windows
Close a named window
Show a mat in a named window
Wait for user keyboard event for a delay
amount of time (ms)
Functions
@spec destroyAllWindows() :: :ok
Close all windows
Close a named window
Positional Arguments
winname.
String
The name of the window.
@spec imshow(String.t(), Evision.Mat.maybe_mat_in() | Nx.Tensor.t()) :: :ok | {:error, String.t()}
Show a mat in a named window
Positional Arguments
winname.
String
The name of the window.
mat.
Evision.Mat
The image.
Example
iex> mat = Evision.imread!("example.jpg")
iex> Evision.imshow("OpenCV", mat)
# the following line may be necessary on your system
# will try to improve this later
iex> Evision.waitkey(0)
Wait for user keyboard event for a delay
amount of time (ms)
Positional Arguments
delay.
int
Wait for
delay
ms.