获取accesskey
开通车险目标检测
#!/usr/bin/env python
#coding=utf-8
from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.acs_exception.exceptions import ClientException
from aliyunsdkcore.acs_exception.exceptions import ServerException
from aliyunsdkocr.request.v20191230.RecognizeLicensePlateRequest import RecognizeLicensePlateRequest
from aliyunsdkocr.request.v20191230.RecognizeDriverLicenseRequest import RecognizeDriverLicenseRequest
from aliyunsdkocr.request.v20191230.RecognizeIdentityCardRequest import RecognizeIdentityCardRequest
client = AcsClient('<accessKeyId>', '<accessSecret>', 'cn-shanghai')
requestNumber = RecognizeLicensePlateRequest()
requestNumber.set_accept_format('json')
requestDriver = RecognizeDriverLicenseRequest()
requestDriver.set_accept_format('json')
requestIdnumber = RecognizeIdentityCardRequest()
requestIdnumber.set_accept_format('json')
requestNumber.set_ImageURL("车辆照片,含有车牌")
requestDriver.set_ImageURL("驾驶证照片正面")
requestDriver.set_Side("face")
requestIdnumber.set_ImageURL("身份证照片")
requestIdnumber.set_Side("face")
responseNumber = client.do_action_with_exception(requestNumber)
responseDriver = client.do_action_with_exception(requestDriver)
responseIdnumber = client.do_action_with_exception(requestIdnumber)
print(str(responseNumber, encoding='utf-8'))
print(str(responseDriver, encoding='utf-8'))
print(str(responseIdnumber, encoding='utf-8'))
function fn() {
alert(2)
}