Delphi-OpenCV/include/highgui/highgui.pas
Laex 2fbe14e387 cvBoundingRect work correctly)
Signed-off-by: Laex <laex@bk.ru>
2013-05-15 19:55:06 +04:00

33 lines
911 B
ObjectPascal

unit highgui;
interface
Uses WinApi.Windows, Mat;
Type
IVideoCapture = interface
['{3F605CF0-ECAC-4230-B30B-AF9BFD516C4F}']
function open(device: Integer): bool; stdcall;
function isOpened(): bool; stdcall;
procedure release(); stdcall;
function grab(): bool; stdcall;
function retrieve(image: IMat; flag: Integer): bool; stdcall;
function read(image: IMat): bool; stdcall;
function setValue(propId: Integer; value: double): bool; stdcall;
function getValue(propId: Integer): double; stdcall;
end;
function CreateVideoCapture: IVideoCapture; overload; safecall;
function CreateVideoCapture(device: Integer): IVideoCapture; overload; safecall;
implementation
Uses uLibName;
function CreateVideoCapture: IVideoCapture; external OpenCV_Classes_DLL index 100;
function CreateVideoCapture(device: Integer): IVideoCapture; external OpenCV_Classes_DLL index 101;
end.