Files
2025-10-13 18:34:48 +08:00

36 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 安装百度AI开放平台 C++ SDK
**C++ SDK目录结构**
├── base
│ ├── base.h // 授权相关类
│ ├── base64.h // base64加密类
│ ├── http.h // http请求类
│ └── utils.h // 工具类
├── face.h // 人脸识别交互类
├── image_censor.h // 图像审核交互类
├── image_classify.h // 图像识别交互类
├── image_search.h // 图像搜索交互类
├── kg.h // 人脸识别交互类
├── nlp.h // 人脸识别交互类
├── ocr.h // 人脸识别交互类
└── speech.h // 语音识别交互类
**支持 C++ 11+**
**直接使用开发包步骤如下:**
1.在[官方网站](http://ai.baidu.com/sdk)下载C++ SDK压缩包。
2.将下载的`aip-cpp-sdk-version.zip`解压, 其中文件为包含实现代码的头文件。
3.安装依赖库curl(需要支持ssl) openssl jsoncpp(>1.6.2版本0.x版本将不被支持)。
4.编译工程时添加 C++11 支持 (gcc/clang 添加编译参数 -std=c++11), 添加第三方库链接参数 lcurl, lcrypto, ljsoncpp。
5.在源码中include 您需要使用的交互类头文件face.h image_censor.h image_classify.h kg.h nlp.h ocr.h speech.h等引入压缩包中的头文即可使用aip命名空间下的类和方法。
# 详细使用文档
参考[百度AI开放平台官方文档](http://ai.baidu.com/docs)