baidu-aip / php-sdk Goto Github PK
View Code? Open in Web Editor NEW百度AI开放平台 PHP SDK
Home Page: https://ai.baidu.com/
百度AI开放平台 PHP SDK
Home Page: https://ai.baidu.com/
我也封装了AI的接口, 然而晚了一步发布....
namespace is supported after PHP 5.3, and been widely used by PHP 7+.
Please namespace your SDK so that we can import it to our project via use
instead of old style require_once
composer安装的无法直接使用,需要拉取master。
composer require baidu/aip-sdk:dev-master
银行卡识别接口报错,提示image format error
如果是通过composer 引入该包,那么这两个init方法必定会执行,十分消耗cpu资源
为什么会直接运行两个init方法,按需执行不香嘛
引入之后我们cpu时间也就增加了三倍吧
一开始看百度AI文档以为是以oauth2的方式鉴权,运行起来报错,后来看一下请求才发现是以AK/SK方式鉴权
手写文字识别
一直报错image format error,跟官网示例的传参比对了一下,是一致的
31 | WARNING | Method name "AipHttpUtil::__init" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
207 | WARNING | Method name "AipSampleSigner::__init" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
小伙伴们可以集成下composer么
期待按新接口更新版本
AipSpeech合成语音
chrome播放没有声音,使用本地播放器可以播放
chrome版本:81.0.4044.92
https://ai.baidu.com/sdk#bfr,官网的php skd下载链接不是最新的,下载下来是2.2.4,没有M:N多人脸检查接口,建议改为github上最新的版本
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.