我正在python上使用vuforia vws(Vuforia的网络api),我想添加一个目标,但它返回状态代码422,这是我的标头和json:
image = 'grafitti.png'
with open(image, 'rb') as f:
imagedata = f.read()
data = {"name":target_name,
"width": 1.15,
"image": str(imagedata),
}
headers = {'Authorization':str(x),
'Date':date,
'Content-Type': 'application/json'}