Skip to content

Commit d699974

Browse files
authored
Merge pull request #794 from tomkha/draw-contours
Fix Mat.drawContours definition.
2 parents 1249531 + b0dd066 commit d699974

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/typings/Mat.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ export class Mat {
132132
drawChessboardCorners(patternSize: Size, corners: Point2[], patternWasFound: boolean): void;
133133
drawChessboardCornersAsync(patternSize: Size, corners: Point2[], patternWasFound: boolean): Promise<void>;
134134
drawCircle(center: Point2, radius: number, color?: Vec3, thickness?: number, lineType?: number, shift?: number): void;
135-
drawContours(contours: Contour[], color: Vec3, contourIdx?: number, maxLevel?: number, offset?: Point2, lineType?: number, thickness?: number, shift?: number): void;
135+
drawContours(contours: Point2[][], contourIdx: number, color: Vec3, thickness?: number, lineType?: number, hierarchy?: Vec4[], maxLevel?: number, offset?: Point2): void;
136+
drawContoursAsync(contours: Point2[][], contourIdx: number, color: Vec3, thickness?: number, lineType?: number, hierarchy?: Vec4[], maxLevel?: number, offset?: Point2): Promise<void>;
136137
drawEllipse(box: RotatedRect, color?: Vec3, thickness?: number, lineType?: number): void;
137138
drawEllipse(center: Point2, axes: Size, angle: number, startAngle: number, endAngle: number, color?: Vec3, thickness?: number, lineType?: number, shift?: number): void;
138139
drawFillConvexPoly(pts: Point2[], color?: Vec3, lineType?: number, shift?: number): void;

0 commit comments

Comments
 (0)