Skip to content

Commit f531b23

Browse files
committed
chore: 0.8.15
1 parent 5f51a42 commit f531b23

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

cpp/FOCV_Function.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,18 @@ jsi::Object FOCV_Function::invoke(jsi::Runtime &runtime, const jsi::Value *argum
8282
auto gamma = args.asNumber(5);
8383
auto dst = args.asMatPtr(6);
8484

85-
String out = std::to_string(src1->cols) + "x" + std::to_string(src1->rows) + " type: " + std::to_string(src1->type());
86-
out += std::to_string(src2->cols) + "x" + std::to_string(src2->rows) + " type: " + std::to_string(src2->type());
87-
value.setProperty(runtime, "value", out);
88-
89-
// if (count > 7)
90-
// {
91-
// auto dtype = args.asNumber(7);
92-
93-
// cv::addWeighted(*src1, alpha, *src2, beta, gamma, *dst, dtype);
94-
// break;
95-
// }
96-
// cv::addWeighted(*src1, alpha, *src2, beta, gamma, *dst);
85+
// String out = std::to_string(src1->cols) + "x" + std::to_string(src1->rows) + " type: " + std::to_string(src1->type());
86+
// out += std::to_string(src2->cols) + "x" + std::to_string(src2->rows) + " type: " + std::to_string(src2->type());
87+
// value.setProperty(runtime, "value", out);
88+
89+
if (count > 7)
90+
{
91+
auto dtype = args.asNumber(7);
92+
93+
cv::addWeighted(*src1, alpha, *src2, beta, gamma, *dst, dtype);
94+
break;
95+
}
96+
cv::addWeighted(*src1, alpha, *src2, beta, gamma, *dst);
9797
}
9898
break;
9999
case hashString("batchDistance", 13):

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@redchili/react-native-fast-opencv",
3-
"version": "0.8.14",
3+
"version": "0.8.15",
44
"description": "OpenCV port to React Native",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",

0 commit comments

Comments
 (0)