Table of Contents

Method WaitKey

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

WaitKey(int)

Waits for a pressed key.

public static int WaitKey(int delay = 0)

Parameters

delay int

Delay in milliseconds. 0 is the special value that means ”forever”

Returns

int

Returns the code of the pressed key or -1 if no key was pressed before the specified time had elapsed.