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

wp_face_opencv

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wp_face_opencv

wp_face_opencv.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#wp_face_opencv 人脸检测 贴人脸 并保存图片

How to use the code

npm i wp_face_opencv

const wpFace = require("wp_face_opencv")

let nodes = new wpFace.NODES();

let result = nodes.cnnFaceDetectUrl(url, key, output); 输入: url: 图片地址 key: 贴图关键字 flower, head, rabbit output: 图片保存文件夹

输出: result {faceNum: 人脸数量, faceRects: [{x, y, witdh, height}], 人脸坐标}

##环境准备 cmake cmake-js opencv curl curl -O http://static-res.haizitong.com/nodejs/cmake-3.3.2.tar.gz tar xzvf cmake-3.3.2.tar.gz cd cmake-3.3.2 ./bootstrap gmake make install cd ../ echo "init opencv" apt-get install -y build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg.dev libtiff4.dev libswscale-dev libjasper-dev curl -O http://static-res.haizitong.com/nodejs/opencv-3.4.15.zip unzip opencv-3.4.15.zip cd opencv-3.4.15/ mkdir release cd release/ cmake ../ make make install

cd ../../

apt install -y libcurl4-openssl-dev

npm i -g cmake-js ln -s /opt/node/bin/cmake-js /usr/local/bin/cmake-js

Keywords

FAQs

Package last updated on 18 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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