Get single target image | GET /target/<target_id>
Get detailed information for a single target image
Action
GET /target/<target_id>
Authentication
Http header
Content-Type=application/json
HTTP Header: Authorization (when using API Key Token authentication)
Request parameters
None
Return fields
| Field | Description |
|---|---|
| statusCode | Status code 0 indicates correct authentication, more references Status codes |
| result | Error message, or target image information |
| timestamp | Server-side time when the response is returned. Using Unix timestamp format in milliseconds |
| result.targetId | Unique ID of the target image |
| result.trackingImage | Base64-encoded string of the tracking image |
| result.name | Target name |
| result.size | Recognition image width (unit cm). The height of the recognition image will be automatically calculated by the system based on the uploaded picture. The size of the recognition image corresponds to the size of the overlaid virtual content |
| result.meta | Base64-encoded additional information, such as a string generated by base64 encoding a JSON string |
| result.type | Fixed as ImageTarget |
| result.active | "1" enabled, "0" disabled |
Error codes
See Status codes and error code list
Request example
GET /target/e61db301-e80f-4025-b822-9a00eb48d8d2?timestamp=xxx&appKey=xxx&signature=xxx
HTTP/1.1
Host:
Date: Mon, 1 Jan 2018 00:00:00 GMT
Response example
HTTP/1.1 200 OK
Content-Type: application/json
{
"statusCode": 0,
"result": {
"targetId":"e61db301-e80f-4025-b822-9a00eb48d8d2",
"trackingImage":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgM...",
"name": "easyar",
"size": "5",
"meta": "496fbbabc2b38ecs3460a...",
"type": "ImageTarget",
"date": "2016-06-15T09:56:30.000Z",
"active":"1",
"trackableRate": 0,
"detectableRate": 0,
"detectableDistinctiveness":0,
"detectableFeatureCount": 0,
"trackableDistinctiveness": 0,
"trackableFeatureCount": 0,
"trackableFeatureDistribution": 0,
"trackablePatchContrast": 0,
"trackablePatchAmbiguity": 0
},
"timestamp": 1514736000000
}