Skip to content

Commit d499f13

Browse files
committed
fix: fix return void of putText
1 parent cb2bc12 commit d499f13

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cpp/FOCV_Function.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,10 +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);
1889-
std::string id = FOCV_Storage::save(result);
1890-
1891-
return FOCV_JsiObject::wrap(runtime, "mat", id);
1888+
cv::putText(*img, text, *org, fontFace, fontScale, *color);
18921889
}
18931890
break;
18941891
}

0 commit comments

Comments
 (0)