Skip to content

Commit ed9643d

Browse files
committed
fix: fix param pointer error
1 parent 29fdef1 commit ed9643d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/FOCV_Function.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,7 @@ jsi::Object FOCV_Function::invoke(jsi::Runtime &runtime, const jsi::Value *argum
18971897
{
18981898
auto filename = args.asString(1);
18991899

1900-
cv::Mat result = cv::imread(*filename);
1900+
cv::Mat result = cv::imread(filename);
19011901
std::string id = FOCV_Storage::save(result);
19021902

19031903
return FOCV_JsiObject::wrap(runtime, "mat", id);
@@ -1908,7 +1908,7 @@ jsi::Object FOCV_Function::invoke(jsi::Runtime &runtime, const jsi::Value *argum
19081908
auto filename = args.asString(1);
19091909
auto img = args.asMatPtr(2);
19101910

1911-
auto result = cv::imwrite(*filename, *img);
1911+
auto result = cv::imwrite(filename, *img);
19121912
value.setProperty(runtime, "value", result);
19131913
}
19141914
break;

0 commit comments

Comments
 (0)