New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hzt_asc

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hzt_asc - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

1

CMakeLists.txt

@@ -31,2 +31,3 @@ cmake_minimum_required(VERSION 3.3)

target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB})
target_link_libraries(${PROJECT_NAME} curl)

@@ -33,0 +34,0 @@ set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "" SUFFIX ".node")

6

package.json
{
"name": "hzt_asc",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",
"description": "hzt_asc_v3.",
"author": {
"name": "wucpeng",
"email": "wuchangpeng@haizitong.com"
"name": "wuyunpeng",
"email": "wuyunpeng37@163.com"
},

@@ -10,0 +10,0 @@ "dependencies": {

@@ -22,5 +22,8 @@ const path = require('path');

for(let i = 0; i < 1; ++i) {
let num = ask.FaceDetect(path.join(__dirname, '../images/20200829105722.jpg'))
let num = ask.FaceDetect("/home/haizitong/workspace/hztFace/700dceca74304e11b6a48806df9085d2.png")
console.log("FaceDetect", num)
printMem()
let det = ask.FaceDetectUrl("http://min.haizitong.com/2/ali/i/700dceca74304e11b6a48806df9085d2");
console.log("det", det);
}

@@ -32,3 +35,3 @@

for(let i = 0; i < 1; ++i) {
let num2 = ask.FaceFeatureExtract(path.join(__dirname, '../images/20200829105722.jpg'))
let num2 = ask.FaceFeatureExtract("/home/haizitong/workspace/hztFace/24aea309c9fa4d809b3b8f88782936a5.png")
console.log("FaceFeatureExtract", num2);

@@ -38,22 +41,24 @@ if (num2.faceNum && num2.faceRects.length) {

}
let num22 = ask.FaceFeatureExtractUrl("http://min.haizitong.com/2/ali/i/24aea309c9fa4d809b3b8f88782936a5")
console.log("FaceFeatureExtract2", num22);
printMem()
}
console.log("extract end", Date.now() - start);
// console.log("extract end", Date.now() - start);
//FaceFeatureCompare
if (feature) {
let compareResult = ask.FaceFeatureCompare(feature, feature);
console.log("FaceFeatureCompare", compareResult);
console.log("FaceFeatureCompare end", Date.now() - start);
let list = [
{searchId: 1, tag: "wo", feature},
{searchId: 2, tag: "wo2", feature},
];
let imageResult = ask.ImageFaceCompare(path.join(__dirname, '../images/20200829105722.jpg'), list, 1);
console.log("imageResult", JSON.stringify(imageResult, null, 4));
console.log("ImageFaceCompare end", Date.now() - start);
let str = Buffer.from(feature).toString('base64');
console.log("str", str, str.length);
// //FaceFeatureCompare
// if (feature) {
// let compareResult = ask.FaceFeatureCompare(feature, feature);
// console.log("FaceFeatureCompare", compareResult);
// console.log("FaceFeatureCompare end", Date.now() - start);
// let list = [
// {searchId: 1, tag: "wo", feature},
// {searchId: 2, tag: "wo2", feature},
// ];
// let imageResult = ask.ImageFaceCompare(path.join(__dirname, '../images/20200829105722.jpg'), list, 1);
// console.log("imageResult", JSON.stringify(imageResult, null, 4));
// console.log("ImageFaceCompare end", Date.now() - start);
// let str = Buffer.from(feature).toString('base64');
// console.log("str", str, str.length);
}
// }

@@ -60,0 +65,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc