🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

qq-ai-sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qq-ai-sdk

node sdk for ai.qq.com

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
6
-60%
Maintainers
1
Weekly downloads
 
Created
Source

qq-ai-sdk

Javascript sdk for QQ AI (https://ai.qq.com, I don't means to make a advertisement,i hate Tencent !); Used in Node.js、browser.

demo website

https://github.com/linweiwei123/face-merge

How to use?

npm install qq-ai-sdk --save

var { faceMerge } = require('qq-ai-sdk');

/**
* @param appid (appid in your app in https://ai.qq.com)
* @param appkey (appkey in your app in https://ai.qq.com)
* @param imageData (to be merged image, base64 data!!!,support jpg,jpeg,png)
* @param model (merged template number)
* @response promise
**/
faceMerge(appid,appkey,imageData,15)
        .then(res=>{
            // this data is final merged base64 image data
            let data = `data:image/jpeg;base64,${res.data.image}`;
        })
        .catch(err=>{
            console.log(err);
        })

current support QQ AI API

contact

My email: yitalalww@gmail.com

Keywords

ai.qq.com

FAQs

Package last updated on 06 Mar 2018

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