Skip to content

Commit ee4efd6

Browse files
committed
fix: fix value error
1 parent 1d486b3 commit ee4efd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/FOCV_Function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ jsi::Object FOCV_Function::invoke(jsi::Runtime &runtime, const jsi::Value *argum
18851885
auto fontScale = args.asNumber(5);
18861886
auto color = args.asScalarPtr(6);
18871887

1888-
cv::Mat result = cv::putText(*img, text, org, fontFace, fontScale, color);
1888+
cv::Mat result = cv::putText(*img, text, *org, fontFace, fontScale, *color);
18891889
std::string id = FOCV_Storage::save(result);
18901890

18911891
return FOCV_JsiObject::wrap(runtime, "mat", id);

0 commit comments

Comments
 (0)