百度AI识别调用的简单例子

一、车辆识别

1、安装百度ai的python SDK
使用到python调用百度ai的接口,官网下载相对应的SDK:https://ai.baidu.com/sdk#vis
解压,python setup.py install

2、调用接口:
调用代码,其中xxxxx这3项需要使用百度ai后台提供相应内容,目前免费开放,接口每天有使用限制,直接注册创建一个应用即可。
每种识别场景都有各自对应的调用语句和返回值,我用的是“车辆识别”
https://ai.baidu.com/docs#/ImageClassify-Python-SDK/top
https://ai.baidu.com/docs#/ImageClassify-Python-SDK/496d7920
继续阅读“百度AI识别调用的简单例子”

ansible执行错误一例

[root@centos65 ~]# ansible local -m ping
[WARNING]: The version of gmp you have installed has a known issue regarding
timing vulnerabilities when used with pycrypto. If possible, you should update
it (i.e. yum update gmp).

No handlers could be found for logger “paramiko.transport”
192.168.1.116 | FAILED => FAILED: Incompatible ssh peer (no acceptable kex algorithm)
192.168.1.120 | success >> {
“changed”: false,
“ping”: “pong”
}

192.168.1.117 | success >> {
“changed”: false,
“ping”: “pong”
}

 

报错:
192.168.1.116 | FAILED => FAILED: Incompatible ssh peer (no acceptable kex algorithm)

继续阅读“ansible执行错误一例”