npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

youtu

v0.2.0

Published

Third-part SDK of Tencent youtu.

Downloads

4

Readme

腾讯优图开放平台第三方SDK

特性

  • 包含所有官方API接口
  • Promise接口
  • 支持使用相对路径或buffer指定图片

安装

npm install youtu

Demo

var Youtu = require('youtu');
var youtu = new Youtu({
	appId:'1000xxxx',
	secretId:'xxxx',
	secretKey:'xxxx'
});

youtu.detectFace('./demo.jpg').then(function(data){
	// detectFace result
});

API及参数

  • 人脸识别API
    • 人脸检测 detectFace(image)
    • 五官定位 faceShape(image)
    • 人脸对比 faceCompare(imageA, imageB)
    • 人脸验证 faceVerify(image, person_id)
    • 人脸识别 FaceIdentify(image, group_id)
  • 个体(Person)管理
    • 个体创建 newPerson(image, person_id, group_ids)
    • 删除个体 delPerson(person_id)
    • 增加人脸 addFace(images, person_id)
    • 删除人脸 delFace(person_id, face_ids)
    • 设置信息 setInfo(person_name, person_id)
    • 获取信息 getInfo(person_id)
  • 信息查询
    • 获取组列表 getGroupIds()
    • 获取人列表 getPersonIds(group_id)
    • 获取人脸列表 getFaceIds(person_id)
    • 获取人脸信息 getFaceInfo(face_id)
  • 图片识别
    • 模糊图片检测 fuzzyDetect(image)
    • 美食图片识别 foodDetect(image)
    • 图像标签识别 imageTag(image)
    • 色情图像检测 imagePorn(image)
  • OCR识别
    • 身份证OCR识别 idCardOcr(image,card_type)
    • 名片OCR识别 nameCardOcr(image)

错误处理

HTTP层面错误会走到Promise错误处理流程,应用层面错误码暂未解析,需应用自行处理。

Todo

  • [ ] 完善文档
  • [ ] 错误码解析
  • [ ] 支持传入远程图片地址
  • [ ] 可选参数处理

版本历史

0.2.0 2016-06-14

  • 跟进官方API,添加五官检测、图片识别、OCR识别API

0.1.0 2015-07-26

  • 整理API,初始版本发布

LICENSE

MIT