Click or drag to resize

Cv2SetDevice Method

Sets a device and initializes it for the current thread.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static int SetDevice(
	int device
)

Parameters

device
Type: SystemInt32
System index of a GPU device starting with 0.

Return Value

Type: Int32
See Also