-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencv4nodejs.d.ts
More file actions
31 lines (27 loc) · 908 Bytes
/
opencv4nodejs.d.ts
File metadata and controls
31 lines (27 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
declare module 'opencv4nodejs' {
export const version: string;
export class Mat {
constructor(rows: number, cols: number, type: number, fillValue?: any);
rows: number;
cols: number;
empty: boolean;
bgrToGray(): Mat;
laplacian(depth: number): Mat;
mean(): { w: number };
sub(mat: Mat): Mat;
pow(power: number): Mat;
resize(width: number, height: number): Mat;
static CV_64F: number;
}
export class VideoCapture {
constructor(device: number);
read(): Mat;
readAsync(callback: (err: Error | null, mat: Mat) => void): void;
reset(): void;
release(): void;
}
export function imshow(winname: string, mat: Mat): void;
export function waitKey(delay: number): number;
export function imwrite(filename: string, mat: Mat): void;
export function destroyAllWindows(): void;
}