{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "http://www.itu.int/schema/motor-vehicle-list",
	"description": "Structure definition of motor vehicle list",
	"type": "array",
	"items": {
		"$ref": "#/$defs/motorVehicle"
	},
	"$defs": {
		"motorVehicle": {
			"type": "object",
			"description": "Motor vehicle description information definition",
			"properties": {
				"MotorVehicleID": {
					"description": "Motor vehicle ID",
					"$ref": "/schema/components#/$defs/imageCntObjectId"
				},
				"InfoKind": {
					"$ref": "/schema/components#/$defs/infoKind"
				},
				"SourceID": {
					"description": "The VideoID or imageID of the source of the collector object",
					"$ref": "/schema/components#/$defs/basicObjectId"
				},
				"TollgateID": {
					"description": "Associated tollgate number",
					"$ref": "/schema/components#/$defs/deviceID"
				},
				"DeviceID": {
					"description": "Device ID",
					"$ref": "/schema/components#/$defs/deviceID"
				},
				"StorageUrl1": {
					"description": "Close-up photo",
					"$ref": "/schema/components#/$defs/storagePath"
				},
				"StorageUrl2": {
					"description": "License plate photo.",
					"$ref": "/schema/components#/$defs/storagePath"
				},
				"LeftTopX": {
					"description": "X-axis coordinate of the upper left corner of the small picture of the motor vehicle",
					"$ref": "/schema/components#/$defs/imageCoordinates"
				},
				"LeftTopY": {
					"description": "Y-axis coordinate of the upper left corner of the small picture of the motor vehicle",
					"$ref": "/schema/components#/$defs/imageCoordinates"
				},
				"RightBtmX": {
					"description": "X-axis coordinate of the lower right corner of the small picture of the motor vehicle",
					"$ref": "/schema/components#/$defs/imageCoordinates"
				},
				"RightBtmY": {
					"description": "Y-axis coordinate of the lower right corner of the small picture of the motor vehicle",
					"$ref": "/schema/components#/$defs/imageCoordinates"
				},
				"LaneNo": {
					"$ref": "/schema/lane-list#/$defs/lane/properties/LaneNo"
				},
				"HasPlate": {
					"description": "There is a license plate or not",
					"$ref": "/schema/components#/$defs/flag"
				},
				"PlateClass": {
					"description": "Types of license plates. 01: large car license plates; 02: small car license plates; 99: other license plates",
					"enum": [ "01", "02", "99" ]
				},
				"PlateColor": {
					"description": "License plate color",
					"$ref": "/schema/components#/$defs/color"
				},
				"PlateNo": {
					"description": "License plate number",
					"type": "string"
				},
				"PlateNoAttach": {
					"description": "Trailer license plate number",
					"type": "string"
				},
				"PlateDescribe": {
					"description": "License plate description, license plate frame advertising information, including dealership, contact number, etc.",
					"type": "string"
				},
				"IsAltered": {
					"description": "License plate altered or not",
					"$ref": "/schema/components#/$defs/flag"
				},
				"IsCovered": {
					"description": "License plate covered or not",
					"$ref": "/schema/components#/$defs/flag"
				},
				"Speed": {
					"description": "Speed, in kilometers per hour.",
					"type": "double"
				},
				"Direction": {
					"description": "Driving Direction",
					"$ref": "/schema/components#/$defs/hDirection"
				},
				"VehicleModel": {
					"description": "Vehicle model",
					"type": "string",
					"examples": [ "Passat,Volvo,BMW" ]
				},
				"VehicleStyles": {
					"description": "Vehicle year",
					"examples": [ "2022,2021" ],
					"type": "string"
				},
				"VehicleColor": {
					"description": "Vehicle color",
					"$ref": "/schema/components#/$defs/color"
				},
				"VehicleColorDepth": {
					"description": "Vehicle color depth. 0: dark; 1: light",
					"enum": [ 0, 1 ]
				},
				"VehicleFrontItem": {
					"description": "Items on the front of the vehicle. 1: logo, detection mark; 2: perfume; 3: ornaments; 4: main sun visor; 99: Other",
					"enum": [ 1, 2, 3, 4, 99 ]
				},
				"DescOfFrontItem": {
					"description": "Description of items on the front of the vehicle",
					"type": "string"
				},
				"VehicleRearItem": {
					"description": "Items on the rear of the vehicle. 1: Pillow; 2: Umbrella; 3: Paper towel (box); 4: Car sticker; 5: Logo; 99: other",
					"enum": [ 1, 2, 3, 4, 5, 99 ]
				},
				"DescOfRearItem": {
					"description": "Description of items on the rear of the vehicle",
					"type": "string"
				},
				"PassTime": {
					"description": "Passing time",
					"type": "string",
					"format": "dateTimeMS"
				},
				"Sunvisor": {
					"description": "The sun visor is put down or not",
					"$ref": "/schema/components#/$defs/flag"
				},
				"SafetyBelt": {
					"description": "The driver is wearing a seat belt or not",
					"$ref": "/schema/components#/$defs/flag"
				},
				"Calling": {
					"description": "The driver is calling or not",
					"$ref": "/schema/components#/$defs/flag"
				},
				"PlateReliability": {
					"description": "The recognition reliability of the entire license plate number is expressed as a percentage from 0 to 100. The larger the value, the higher the reliability.",
					"type": "string"
				},
				"PlateCharReliability": {
					"description": "The recognition credibility of the number plate number is expressed as a percentage from 0 to 100. The larger the value, the higher the credibility. Arranged in the manner of <character 1-credibility 1, character 2-credibility 2>, the middle is English half-width connecting line, comma",
					"type": "string",
					"examples": [ "B-90", "1-90" ]
				},
				"SubImageInfoListObject": {
					"$ref": "/schema/subimage-info-list"
				},
				"FeatureInfoListObject": {
					"$ref": "/schema/feature-ext-result-list#/$defs/featureInfoList"
				},
				"TabID": {
					"description": "Attribution category label",
					"$ref": "/schema/components#/$defs/basicObjectId"
				}
			},

			"required": [ "MotorVehicleID", "InfoKind", "SourceID", "StorageUrl1" ],


			"if": {
				"properties": { "InfoKind": 1 }
			},
			"then": {
				"required": [ "DeviceID", "LeftTopX", "LeftTopY", "RightBtmX", "RightBtmY" ]
			}

		}
	}
}
