Click or drag to resize

TesseractGetOpenCLDevice Method

http://www.emgu.com
If compiled with OpenCL AND an available OpenCL device is deemed faster than serial code, then "device" is populated with the cl_device_id and returns sizeof(cl_device_id) otherwise *device=nullptr and returns 0.

Namespace:  Emgu.CV.OCR
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public int GetOpenCLDevice(
	ref IntPtr device
)

Parameters

device
Type: SystemIntPtr
Pointer to the opencl device

Return Value

Type: Int32
0 if no device found. sizeof(cl_device_id) if device is found.
See Also