Cv2WaitKey Method OpenCvSharp Class Library
Waits for a pressed key.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static int WaitKey(
	int delay = 0
)

Parameters

delay (Optional)
Type: SystemInt32
Delay in milliseconds. 0 is the special value that means ”forever”

Return Value

Type: Int32
Returns the code of the pressed key or -1 if no key was pressed before the specified time had elapsed.
See Also

Reference