• Stars
    star
    253
  • Rank 159,923 (Top 4 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created about 7 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

百度AI开放平台 Node.js SDK

Build Status npm

安装百度AI开放平台 Node.js SDK

Node.js SDK目录结构

    ├── src
    │  ├── auth                                //授权相关类
    │  ├── http                                //Http通信相关类
    │  ├── client                              //公用类
    │  ├── util                                //工具类
    │  └── const                               //常量类
    ├── AipOcr.js                              //文字识别交互类
    ├── AipFace.js                             //人脸识别交互类
    ├── AipNlp.js                              //语言处理基础技术交互类
    ├── AipContentCensor.js                    //内容审核交互类
    ├── AipImageClassify.js                    //图像识别交互类
    ├── AipImageSearch.js                      //图像搜索交互类
    ├── AipKg.js                               //知识图谱交互类
    ├── AipSpeech.js                           //语音合成&语音识别交互类
    ├── index.js                               //入口文件
    └── package.json                           //npm包描述文件

支持 node 版本 4.0+

直接使用Node.js开发包步骤如下:

1.在官方网站下载Node.js SDK压缩包。

2.将下载的aip-node-sdk-version.zip解压后,复制到工程文件夹中。

3.进入目录,运行npm install安装sdk依赖库

4.把目录当做模块依赖

其中,version为版本号,添加完成后,用户就可以在工程中使用百度AI开放平台 Node.js SDK。

直接使用npm安装依赖:

npm install baidu-aip-sdk

详细使用文档

参考百度AI开放平台官方文档