Commit 6efc1890 authored by Jonathan Fiscus's avatar Jonathan Fiscus

JSON file schema updates for camera info

parent 8da28d0e
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$version": "ActEV19_Activity_Index_v02",
"type": "object",
"title": "The activity index json schema",
"propertyNames": {
"enum": [
"Closing",
"Closing_Trunk",
"Entering",
"Exiting",
"Loading",
"Open_Trunk",
"Opening",
"Transport_HeavyCarry",
"Unloading",
"vehicle_turning_left",
"vehicle_turning_right",
"vehicle_u_turn",
"Interacts",
"Pull",
"Riding",
"Talking",
"activity_carrying",
"specialized_talking_phone",
"specialized_texting_phone"
]
},
"patternProperties": {
".*": {
"type": "object",
"optional": [
"objectTypes"
],
"properties": {
"objectTypes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Door",
"Person",
"Vehicle",
"Construction_Vehicle",
"Bike",
"Other",
"Prop",
"Push_Pulled_Object"
]
}
}
}
}
}
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$version": "ActEV18_file_v02",
"type": "object",
"patternProperties": {
"^[A-Za-z_0-9\\-\\.]+.(mp4|avi)$": {
"type": "object",
"required": [
"framerate",
"camera_type",
"filename"
],
"additionalProperties": false,
"properties": {
"framerate": {
"type": "number"
},
"camera_id": {
"type": "string"
},
"begin_time": {
"type": "string"
},
"end_time": {
"type": "string"
},
"datetime": {
"type": "string"
},
"date": {
"type": "string"
},
"camera_type": {
"type": "string",
"enum": [
"EO",
"EO_NIR",
"IR"
]
},
"filename": {
"type": "string"
},
"selected": {
"type": "object",
"patternProperties": {
"^[0-9]": {
"type": "integer",
"enum": [
1,
0
]
}
}
}
}
}
}
}
\ No newline at end of file
......@@ -2,6 +2,7 @@
"2018-03-07.16-50-00.16-55-00.bus.G475.avi": {
"framerate": 30,
"filename": "MEVA/video/KF1/2018-03-07/16/2018-03-07.16-50-00.16-55-00.bus.G475.avi",
"camera_type": "EO",
"selected": {
"1": 1,
"20941": 0
......@@ -10,9 +11,13 @@
"2018-03-07.16-50-00.16-55-00.admin.G329.avi": {
"framerate": 30,
"filename": "MEVA/video/KF1/2018-03-07/16/2018-03-07.16-50-00.16-55-00.admin.G329.avi",
"camera_id": "G329",
"camera_type": "EO",
"begin_time": "16-50-00",
"end_time": "16-55-00",
"selected": {
"11": 1,
"201": 0,
"201": 0,
"300": 1,
"20656": 0
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment