hzt_asc 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ask.cc +2 -1
- package/package.json +1 -1
package/ask.cc
CHANGED
|
@@ -472,7 +472,7 @@ Napi::Value ASK::RegisterFaces(const Napi::CallbackInfo& info) {
|
|
|
472
472
|
Napi::TypeError::New(env, "array expected").ThrowAsJavaScriptException();
|
|
473
473
|
return errorData(env, "array expected");
|
|
474
474
|
}
|
|
475
|
-
Napi::Array arr = info[
|
|
475
|
+
Napi::Array arr = info[0].As<Napi::Array>();
|
|
476
476
|
MUInt32 len = arr.Length();
|
|
477
477
|
ASF_FaceFeatureInfo* featureInfoList = new ASF_FaceFeatureInfo[len];
|
|
478
478
|
for(int i = 0; i < len; ++i) {
|
|
@@ -491,6 +491,7 @@ Napi::Value ASK::RegisterFaces(const Napi::CallbackInfo& info) {
|
|
|
491
491
|
}
|
|
492
492
|
mFeatureInfoList = featureInfoList;
|
|
493
493
|
mFeatureLen = len;
|
|
494
|
+
return Napi::Number::New(env, 1);
|
|
494
495
|
}
|
|
495
496
|
|
|
496
497
|
Napi::Value ASK::ImageFaceCompareUrl2(const Napi::CallbackInfo& info) {
|