Skip to content

Commit ff6a5c2

Browse files
committed
feat: add thickness for putText
1 parent 0aadae0 commit ff6a5c2

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

cpp/FOCV_Function.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,8 +1884,9 @@ jsi::Object FOCV_Function::invoke(jsi::Runtime &runtime, const jsi::Value *argum
18841884
auto fontFace = args.asNumber(4);
18851885
auto fontScale = args.asNumber(5);
18861886
auto color = args.asScalarPtr(6);
1887+
auto thickness = args.asNumber(7);
18871888

1888-
cv::putText(*img, text, *org, fontFace, fontScale, *color);
1889+
cv::putText(*img, text, *org, fontFace, fontScale, *color, thickness);
18891890
}
18901891
break;
18911892
}

src/functions/ImageProcessing/Drawing.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ export type Drawing = {
218218
org: Point,
219219
fontFace: number,
220220
fontScale: number,
221-
color: Scalar
222-
): Mat;
221+
color: Scalar,
222+
thickness: number
223+
): void;
223224
};

0 commit comments

Comments
 (0)