Android手机端拍一张照片发送到服务器去识别,返回的ResultInfo中的数据不全,上个月上传到服务器的图片识别没问题,上周上传的就出现这样的情况。下面是返回的数据,缺少了图片的名字等信息,然后解析不出来。
Unrecognized field "allowSimilar" (class com.example.eastaractivity.Target), not marked as ignorable (13 known properties: "size", "trackingImage", "meta", "active", "modified", "name", "targetId", "date", "grade", "signature", "localDate", "type", "appKey"])
at [Source: (byte[])"{
"statusCode" : 0,
"result" : {
"target" : {
"targetId" : "d12c933f-a11e-475f-bd58-f8e4491c0006",
08-06 10:52:40.010: I/System.out(5006): "trackingImage" : "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsK\nCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/wAALCAEnAUABAREA/8QAHwAAAQUBAQEB\nAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1Fh\nByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZ\nWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpK"[truncated 37189 bytes]; line: 7, column: 25] (through reference chain: com.example.eastaractivity.ResultInfo["result"]->com.example.eastaractivity.Result["target"]->com.example.eastaractivity.Target["allowSimilar"])