基本信息
源码名称:baiduOCR-SDK
源码大小:5.95M
文件格式:.zip
开发语言:C/C++
更新时间:2021-09-22
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
百度SDK vs2013-win32-Debug环境:
1. 将baiduOCR文件夹放到项目根目录下
配置完成!
std::string app_id = "f22c4e9d19c146eba2bd3";
std::string api_key = "你的 Api key";
std::string secret_key = "你的 Secret Key";
aip::Bodyanalysis client(app_id, api_key, secret_key);
Json::Value result;
std::string image;
aip::get_file_content("/assets/sample.jpg", &image);
// 调用人体检测与属性识别
result = client.body_attr(image, aip::null);
// 如果有可选参数
std::map<std::string, std::string> options;
options["type"] = "gender";
// 带参数调用人体检测与属性识别
result = client.body_attr(image, options);