Skip to content

Commit c94f767

Browse files
committed
Update example JSON output object for R5.0.0.
1 parent 15e70dd commit c94f767

3 files changed

Lines changed: 309 additions & 259 deletions

File tree

docs/docs/html/REST-API.html

Lines changed: 154 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,135 +2278,160 @@ <h2>2. Paths</h2>
22782278
<br>
22792279
<pre style="color: rgb(0, 0, 0); background-color: #ECECB4;">
22802280
{
2281-
"jobId": 20,
2282-
"jobErrors": [],
2283-
"jobWarnings": [],
2284-
"objectId": "f3345ee1-5b76-4c3f-8101-26102f96c102",
2285-
"pipeline": {
2286-
"name": "COMBINED DETECTION PIPELINE",
2287-
"description": "Executes multiple face detection algorithms and a person detection algorithm.",
2288-
"stages": [{
2289-
"actionType": "DETECTION",
2290-
"name": "COMBINED DETECTION ACTION",
2291-
"description": "Executes multiple face detection algorithms and a person detection algorithm.",
2292-
"actions": [{
2293-
"algorithm": "FACECV",
2294-
"name": "OCV FACE DETECTION ACTION",
2295-
"description": "Executes the OpenCV face detection algorithm using the default parameters.",
2296-
"properties": {}
2297-
}, {
2298-
"algorithm": "DLIB",
2299-
"name": "DLIB FACE DETECTION ACTION",
2300-
"description": "Executes the dlib face detection algorithm using the default parameters.",
2301-
"properties": {}
2302-
}, {
2303-
"algorithm": "PERSONCV",
2304-
"name": "OCV PERSON DETECTION ACTION",
2305-
"description": "Executes the OpenCV person detection algorithm using the default parameters.",
2306-
"properties": {}
2307-
}]
2308-
}]
2309-
},
2310-
"priority": 4,
2311-
"siteId": "mpf1",
2312-
"externalJobId": null,
2313-
"timeStart": "2017-04-25T09:47:14.0-05:00",
2314-
"timeStop": "2017-04-25T09:47:17.0-05:00",
2315-
"status": "COMPLETE",
2316-
"algorithmProperties": {},
2317-
"jobProperties": {},
2318-
"media": [{
2319-
"mediaId": 0,
2320-
"path": "file:/opt/mpf/share/remote-media/meds-aa-S001-01.jpg",
2321-
"mimeType": "image/jpeg",
2322-
"length": 1,
2323-
"sha256": "c067e7eed23a0fe022140c30dbfa993ae720309d6567a803d111ecec739a6713",
2324-
"message": null,
2325-
"status": "COMPLETE",
2326-
"mediaMetadata": {},
2327-
"mediaProperties": {},
2328-
"markupResult": null,
2329-
"output": {
2330-
"FACE": [{
2331-
"source": "+#DLIB FACE DETECTION ACTION",
2332-
"tracks": [{
2333-
"id": "a2b623ec3d73a82702e54d75f84fe902e79842f10ef228e3cc5712b27f02b143",
2334-
"startOffsetFrame": 0,
2335-
"stopOffsetFrame": 1,
2336-
<div style='page-break-after:always'></div>
2337-
"startOffsetTime": 0,
2338-
"stopOffsetTime": 0,
2339-
"type": "FACE",
2340-
"source": "+#DLIB FACE DETECTION ACTION",
2341-
"exemplar": {
2342-
"x": 114,
2343-
"y": 238,
2344-
"width": 225,
2345-
"height": 225,
2346-
"confidence": 2.3898146,
2347-
"detectionProperties": {},
2348-
"offsetFrame": 0,
2349-
"offsetTime": 0,
2350-
"artifactExtractionStatus": "COMPLETED",
2351-
"artifactPath": "/opt/mpf/share/artifacts/20/0/0/meds-aa-S001-01.jpg"
2352-
},
2353-
"detections": [{
2354-
"x": 114,
2355-
"y": 238,
2356-
"width": 225,
2357-
"height": 225,
2358-
"confidence": 2.3898146,
2359-
"detectionProperties": {},
2360-
"offsetFrame": 0,
2361-
"offsetTime": 0,
2362-
"artifactExtractionStatus": "COMPLETED",
2363-
"artifactPath": "/opt/mpf/share/artifacts/20/0/0/meds-aa-S001-01.jpg",
2364-
}]
2365-
}]
2366-
}, {
2367-
"source": "+#OCV FACE DETECTION ACTION",
2368-
"tracks": [{
2369-
"id": "4d16bf11dfad28e6b3827b28d4a47e74bd13a329eba5df11577a082c79bf1395",
2370-
"startOffsetFrame": 0,
2371-
"stopOffsetFrame": 1,
2372-
"startOffsetTime": 0,
2373-
"stopOffsetTime": 0,
2374-
"type": "FACE",
2375-
"source": "+#OCV FACE DETECTION ACTION",
2376-
"exemplar": {
2377-
"x": 85,
2378-
"y": 212,
2379-
"width": 283,
2380-
"height": 283,
2381-
"confidence": 58,
2382-
"detectionProperties": {},
2383-
"offsetFrame": 0,
2384-
"offsetTime": 0,
2385-
"artifactExtractionStatus": "COMPLETED",
2386-
"artifactPath": "/opt/mpf/share/artifacts/20/0/0/meds-aa-S001-01.jpg"
2387-
},
2388-
"detections": [{
2389-
"x": 85,
2390-
"y": 212,
2391-
"width": 283,
2392-
"height": 283,
2393-
"confidence": 58,
2394-
"detectionProperties": {},
2395-
"offsetFrame": 0,
2396-
"offsetTime": 0,
2397-
"artifactExtractionStatus": "COMPLETED",
2398-
"artifactPath": "/opt/mpf/share/artifacts/20/0/0/meds-aa-S001-01.jpg"
2399-
}]
2400-
}]
2401-
}],
2402-
"NO TRACKS": [{
2403-
"source": "+#OCV PERSON DETECTION ACTION",
2404-
"tracks": []
2405-
}]
2406-
<div style='page-break-after:always'></div>
2407-
},
2408-
"detectionProcessingErrors": {}
2409-
}]
2281+
"jobId": 1,
2282+
"errors": [],
2283+
"warnings": [],
2284+
"objectId": "7f745455-6e5a-4681-b5b5-309ec6d2e9c8",
2285+
"pipeline": {
2286+
"name": "COMBINED DETECTION PIPELINE",
2287+
"description": "Executes multiple face detection algorithms and a person detection algorithm.",
2288+
"tasks": [
2289+
{
2290+
"actionType": "DETECTION",
2291+
"name": "COMBINED DETECTION TASK",
2292+
"description": "Executes multiple face detection algorithms and a person detection algorithm.",
2293+
"actions": [
2294+
{
2295+
"algorithm": "FACECV",
2296+
"name": "OCV FACE DETECTION ACTION",
2297+
"description": "Executes the OpenCV face detection algorithm using the default parameters.",
2298+
"properties": {}
2299+
},
2300+
{
2301+
"algorithm": "DLIB",
2302+
"name": "DLIB FACE DETECTION ACTION",
2303+
"description": "Executes the dlib face detection algorithm using the default parameters.",
2304+
"properties": {}
2305+
},
2306+
{
2307+
"algorithm": "PERSONCV",
2308+
"name": "OCV PERSON DETECTION ACTION",
2309+
"description": "Executes the OpenCV person detection algorithm using the default parameters.",
2310+
"properties": {}
2311+
}
2312+
]
2313+
}
2314+
]
2315+
},
2316+
"priority": 4,
2317+
"siteId": "mpf1",
2318+
"externalJobId": null,
2319+
"timeStart": "2020-06-24T01:55:30.003Z",
2320+
"timeStop": "2020-06-24T01:55:31.567Z",
2321+
"status": "COMPLETE",
2322+
"algorithmProperties": {},
2323+
"jobProperties": {},
2324+
"media": [
2325+
{
2326+
"mediaId": 1,
2327+
"path": "file:///opt/mpf/share/remote-media/meds-aa-S001-01.jpg",
2328+
"detectionProcessingErrors": {},
2329+
"mimeType": "image/jpeg",
2330+
"length": 1,
2331+
"sha256": "c067e7eed23a0fe022140c30dbfa993ae720309d6567a803d111ecec739a6713",
2332+
"status": "COMPLETE",
2333+
"mediaMetadata": {
2334+
"FRAME_HEIGHT": "600",
2335+
"FRAME_WIDTH": "480",
2336+
"MIME_TYPE": "image/jpeg"
2337+
},
2338+
"mediaProperties": {},
2339+
"markupResult": null,
2340+
"output": {
2341+
"FACE": [
2342+
{
2343+
"source": "+#DLIB FACE DETECTION ACTION",
2344+
"tracks": [
2345+
{
2346+
"id": "a2b623ec3d73a82702e54d75f84fe902e79842f10ef228e3cc5712b27f02b143",
2347+
"startOffsetFrame": 0,
2348+
"stopOffsetFrame": 1,
2349+
"startOffsetTime": 0,
2350+
"stopOffsetTime": 0,
2351+
"type": "FACE",
2352+
"source": "+#DLIB FACE DETECTION ACTION",
2353+
"confidence": 2.3898146,
2354+
"trackProperties": {},
2355+
"exemplar": {
2356+
"offsetFrame": 0,
2357+
"offsetTime": 0,
2358+
"x": 114,
2359+
"y": 238,
2360+
"width": 225,
2361+
"height": 225,
2362+
"confidence": 2.3898146,
2363+
"detectionProperties": {},
2364+
"artifactExtractionStatus": "COMPLETED",
2365+
"artifactPath": "file:///opt/mpf/share/artifacts/1/1/0/1/0/frame-0.png"
2366+
},
2367+
"detections": [
2368+
{
2369+
"offsetFrame": 0,
2370+
"offsetTime": 0,
2371+
"x": 114,
2372+
"y": 238,
2373+
"width": 225,
2374+
"height": 225,
2375+
"confidence": 2.3898146,
2376+
"detectionProperties": {},
2377+
"artifactExtractionStatus": "COMPLETED",
2378+
"artifactPath": "file:///opt/mpf/share/artifacts/1/1/0/1/0/frame-0.png"
2379+
}
2380+
]
2381+
}
2382+
]
2383+
},
2384+
{
2385+
"source": "+#OCV FACE DETECTION ACTION",
2386+
"tracks": [
2387+
{
2388+
"id": "afba8b4afeb29c2d0b8453f3c1795920dd06d94c18596390a1067d706cfdb453",
2389+
"startOffsetFrame": 0,
2390+
"stopOffsetFrame": 1,
2391+
"startOffsetTime": 0,
2392+
"stopOffsetTime": 0,
2393+
"type": "FACE",
2394+
"source": "+#OCV FACE DETECTION ACTION",
2395+
"confidence": 57,
2396+
"trackProperties": {},
2397+
"exemplar": {
2398+
"offsetFrame": 0,
2399+
"offsetTime": 0,
2400+
"x": 83,
2401+
"y": 209,
2402+
"width": 285,
2403+
"height": 285,
2404+
"confidence": 57,
2405+
"detectionProperties": {},
2406+
"artifactExtractionStatus": "COMPLETED",
2407+
"artifactPath": "file:///opt/mpf/share/artifacts/1/1/0/0/0/frame-0.png"
2408+
},
2409+
"detections": [
2410+
{
2411+
"offsetFrame": 0,
2412+
"offsetTime": 0,
2413+
"x": 83,
2414+
"y": 209,
2415+
"width": 285,
2416+
"height": 285,
2417+
"confidence": 57,
2418+
"detectionProperties": {},
2419+
"artifactExtractionStatus": "COMPLETED",
2420+
"artifactPath": "file:///opt/mpf/share/artifacts/1/1/0/0/0/frame-0.png"
2421+
}
2422+
]
2423+
}
2424+
]
2425+
}
2426+
],
2427+
"NO TRACKS": [
2428+
{
2429+
"source": "+#OCV PERSON DETECTION ACTION"
2430+
}
2431+
]
2432+
}
2433+
}
2434+
]
24102435
}
24112436
</pre>
24122437
</td>

0 commit comments

Comments
 (0)