JSON message about details of the parking space detection event
{
"ipAddress":"",
/*required, string, IPv4 address of the device that triggers the alarm*/
"ipv6Address":"",
/*optional, string, IPv6 address of the device that triggers the alarm*/
"portNo": ,
/*optional, int, port No. of the device that triggers the alarm*/
"protocol":"",
/*optional, string, transmission communication protocol type: "HTTP", "HTTPS", "EHome". The value should be "HTTP" when ISAPI protocol is transmitted via EZVIZ protocol. The value should be "EHome" when ISAPI protocol is transmitted via ISUP*/
"macAddress":"",
/*optional, string, MAC address*/
"channelID":"",
/*optional, int, channel number of the device that triggers the alarm*/
"dateTime":"",
/*required, string, alarm triggering time*/
"activePostCount": ,
/*required, int, times that the same alarm has been uploaded*/
"eventType":"",
/*required, string, triggered event type, here it should be "PackingSpaceRecognition" (parking space information)*/
"eventState":"",
/*required, string, continuous event's status: "active" (valid event), "inactive" (invalid event)*/
"eventDescription":"",
/*required, string, event description*/
"channelName": "",
/*optional, string, channel name (camera name)*/
"deviceID": "",
/*optional, device ID*/
"serialNumber": "",
/*optional, string, device serial No.*/
"CameraInfo":{
/*optional, object, camera information*/
"positionNum":"undefined",
/*optional, string, camera number, which can be configured by calling /ISAPI/System/Video/inputs/channels/<channelID>/cameraInfo, and the maximum string size is 128 bytes*/
"positionInfo":"undefined"
/*optional, string, information about the camera location, which can be configured by calling /ISAPI/System/Video/inputs/channels/<channelID>/cameraInfo, and the maximum string size is 128 bytes*/
},
"PackingSpaceRecognition":[{
"alarmStartTime":"2018-11-13T20:20:39.000+08:00",
/*optional, string, alarm start time (time when the alarm is triggered), the string size is between 25 bytes and 36 bytes, e.g., "2018-11-13T20:20:39.000+08:00"*/
"alarmEndTime":"2018-11-13T20:20:39.000+08:00",
/*optional, string, alarm end time (time when the alarm stops), the string size is between 25 bytes and 36 bytes, e.g., "2018-11-13T20:20:39.000+08:00"*/
"parkingSpacesNum":1,
/*optional, int, number of parking spaces in a picture*/
"isParked":"yes",
/*required, string, parking space status: "yes" (with a vehicle parked), "no" (without a vehicle parked)*/
"parkingStatus":"normal",
/*optional, string, parking status: "normal" (default), "abnormal"*/
"parkingAbnormalStatus":"drivingOnLaneLine",
/*optional, string, sub-type of the abnormal parking status: "drivingOnLaneLine" (parking the vehicle on the line), "largeVehicleOccupiesSmallSpace" (parking space for small-sized vehicle occupied by large-sized vehicle), "noParkingZone" (parking the vehicle in the no-parking zone). This field is valid when the value of parkingStatus is "abnormal"*/
"isCrossLaneParking":"unknow",
/*optional, string, whether the vehicle is parked over the line: "unknown", "true" (yes), "false" (no). This field is valid when the value of parkingStatus is "abnormal"*/
"isAcrossBerthParking":"unknow",
/*optional, string, whether the vehicle occupies two parking spaces: "unknown", "true" (yes), "false" (no). This field is valid when the value of parkingStatus is "abnormal"*/
"isTiltParking":"unknow",
/*optional, string, whether the vehicle is angulately parked: "unknown", "true" (yes), "false" (no). This field is valid when the value of parkingStatus is "abnormal"*/
"vehicleHeadTailStatus":"unknow",
/*optional, string, vehicle head/tail status: "unknow", "head", "tail"*/
"absoulteParkingNum":"123",
/*optional, string, parking space number. The parking space number is the number drawn on the parking space and is obtained by the captured picture*/
"relativeParkingNum":0,
/*optional, int, logical parking space number. The logical parking space number is the number from the left to the right automatically allocated by the device. For example, there are three parking spaces detected by the device, and the number of each parking space is 0, 1, and 2. Now the field virtualParkingNum is recommended*/
"plateNo":"noPlate",
/*required, string, license plate number: "noPlate" (vehicle without license plate), "unknown" (no license plate recognized), "XXXXXX" (recognized license plate number, which is a 16-byte string). When the value of plateRecognitionEnabled in the message of /ISAPI/Parking/channels/<channelID>/packingSpaceRecognition?format=json is true, the device will upload this field*/
"regionalID":1,
/*optional, int, detection area ID. The area ID is configured when you configure the parking space detection area for the device. If this field is not configured, the device will not upload this field. Related URI and fields: regionalID of PackingSpaceRegionList in the message of /ISAPI/Parking/channels/<channelID>/packingSpaceRecognition?format=json*/
"virtualParkingNum":"123",
/*optional, string, virtual parking space number. The virtual parking space number is the number configured when you configure the detection list of parking spaces for the device. If this field is not configured, the device will not upload this field. Related URI and fields: virtualParkingNum of PackingSpaceInfoList in the message of /ISAPI/Parking/channels/<channelID>/packingSpaceRecognition?format=json*/
"detectMode":"pollingAlarm",
/*optional, string, detection mode: "pollingAlarm" (parking space inspection), "snapshot" (intelligent inspection by captured pictures (inspection by scheduled captured pictures of parking spaces))*/
"vehicleEnterState":"enter",
/*optional, string, vehicle entering and exiting status: "enter". "exit"*/
"VehicleEnterTriggerConfidence":50,
/*optional, int, confidence of detection triggered by vehicle entering and exiting, value range: [0,100]*/
"plateConfidence":50,
/*optional, int, license plate confidence, value range: [0,100]. When the value of plateRecognitionEnabled in the message of /ISAPI/Parking/channels/<channelID>/packingSpaceRecognition?format=json is true, the device will upload this field*/
"Region":[{
/*optional, array of object, coordinate of the parking space area*/
"Point":{
/*optional, object, coordinate of the point*/
"positionX":0.123,
/*required, float, X-coordinate, value range: [0,1]. The value is normalized to a number between 0 and 1 and accurate to three decimal places. The origin is the upper-left corner of the image*/
"positionY":0.123
/*required, float, Y-coordinate, value range: [0,1]. The value is normalized to a number between 0 and 1 and accurate to three decimal places. The origin is the upper-left corner of the image*/
}
}],
"VehicleInfo":{
/*optional, object, vehicle information. When the value of plateRecognitionEnabled in the message of /ISAPI/Parking/channels/<channelID>/packingSpaceRecognition?format=json is true, the device will upload this field*/
"vehicleColor":"black",
/*optional, string, vehicle color: "black", "blue", "brown", "cyan", "deepBlue", "deepGray", "gray", "green", "orange", "pink", "purple", "red", "silver", "unknown", "white", "yellow"*/
"vehicleType":"unknown",
/*required, string, vehicle type: "SUVMPV" (SUV/MPV), "buggy" (small-sized truck), "bus", "concreteMixer" (concrete mixer), "containerTruck" (container truck), "coupe", "crane", "hatchback", "largeBus" (large-sized bus), "lightTruck" (light truck), "mediumBus" (middle-sized bus), "mediumHeavyTruck" (medium and heavy truck), "miniCar" (mini sedan (transformed to "vehicle")), "minibus", "minitruck", "motorVehicle" (motor vehicle (transformed to "vehicle")), "nonmotorVehicle" (non-motor vehicle (transformed to "threeWheelVehicle")), "oilTankTruck" (oil tank truck), "pedestrian", "pickupTruck" (pickup truck (transformed to "buggy")), "platformTrailer" (platform trailer), "saloon", "slagTruck" (dump truck), "smallCar" (small sedan (transformed to "vehicle")), "threeWheelVehicle" (tricycle), "truck", "twoWheelVehicle" (two wheeler), "unknown", "van", "vehicle" (sedan)*/
"vehicleColorDepth":"deep",
/*optional, string, vehicle color shade: "deep" (dark), "shallow" (light)*/
"speed":0,
/*optional, int, vehicle speed, value range: [0,300], unit: km/h*/
"vehicleLogoRecog":1025,
/*optional, int, index of the vehicle main brand, value range: [1025,1801]. For details, refer to Main Vehicle Brand Reference*/
"vehileSubLogoRecog":0,
/*optional, int, vehicle sub-brand index, value range: [0,100]*/
"vehileModel":0
/*optional, int, index of the vehicle sub-brand model, value range: [0,100]*/
},
"PlateInfo":{
/*optional, object, license plate information. If the value of plateRecognitionEnabled in the message of /ISAPI/Parking/channels/<channelID>/packingSpaceRecognition?format=json is true, the device will upload this field*/
"CRIndex":"0",
/*optional, string, country/region of the license plate recognition. For details, refer to Country/Region Code*/
"plateType":"unknown",
/*optional, string, license plate type: "unknown", "92TypeCivil"-92 civil vehicle, "92FarmVehicle"-civil vehicle two-line license plate, "arm"-police vehicle, "upDownMilitay"-military vehicle (up/down format), "92TypeArm"-92 armed police vehicle, "leftRightMilitay"-military vehicle (left/right format), "02TypePersonalized"-02 personalized vehicle, "yellowTwoLine"-yellow two-line license plate, "04NewMilitay"-04 new military vehicle, "embassy"-embassy car, "oneLineArm"-new armed police vehicle with one-line structure, "twoLineArm"-new armed police vehicle with two-line structure, "yellow1225FarmVehicle"-yellow agricultural vehicle with 1225 structure, "green1325FarmVehicle"-green agricultural vehicle with 1325 structure, "yellow1325FarmVehicle"-yellow agricultural vehicle with 1325 structure, "motorola"-motorcycle, "newEnergy"-new energy vehicle license plate, "civilAviation"-civil aviation license plate, "coach"-driver-training car, "tempTravl"-temporary license plate car, "trailer", "consulate"-consulate car, "hongKongMacao"-vehicle entering and exiting Hong Kong and Macao, "tempEntry"-temporary entry car, "emergency"-emergency license plate, "oneLineArmHeadquarters"-armed police headquarter license plate (one-line), "twoLineArmHeadquarters"-armed police headquarter license plate (two-line)*/
"plateColor":"black",
/*optional, string, license plate color: "black", "blue", "golden", "orange", "red", "yellow", "white", "unknow", "other", "newEnergyYellowGreen" (new energy green and yellow), "civilAviationBlack" (civil aviation black), "civilAviationGreen" (civil aviation green), "green", "mixedColor" (mixed color), "newEnergyGreen" (new energy green)*/
"plateBright":0,
/*optional, int, licence plate brightness, value range: [0,100]*/
"plateRecgDirection":"forward",
/*optional, string, direction for license plate recognition: "forward" (front LPR), "unknown", "back" (rear LPR)*/
"captureTime":"2017-08-01T17:30:08.999+08:00",
/*optional, string, license plate capture time, the string size is between 25 bytes and 32 bytes, and the value is accurate to millisecond, e.g., "2017-08-01T17:30:08.999+08:00"*/
"PlateCharacterConfidenceList":[{
/*optional, array of object, list of confidence of license plate's characters. The number of lists is the same as that of license plate's characters*/
"plateCharacterConfidence":0.0
/*optional, float, confidence of the license plate's character, value range: [0,100.00]. The value is accurate to two decimal places. For example, if the confidence of characters in the license plate "ZA12345" is 20, 30, 40, 50, 60, and 70, it indicates that the possibility that the first character recognized is "Z" is 20%, the possibility that the second character recognized is "A" is 30%, and so forth*/
}],
"PlateRecognitionRegion":[{
/*optional, array of object, coordinate of the license plate recognition area, up to 4 areas can be supported*/
"Point":{
/*optional, object, coordinate of points*/
"positionX":0.123,
/*required, float, X-coordinate, value range: [0,1]. The value is accurate to three decimal places. The origin is the upper-left corner of the image*/
"positionY":0.123
/*required, float, Y-coordinate, value range: [0,1]. The value is accurate to three decimal places. The origin is the upper-left corner of the image*/
}
}]
},
"IllegalInfo":{
/*optional, object, violation information*/
"illegalCode":"test",
/*optional, string, violation code*/
"illegalName":"test",
/*optional, string, violation name*/
"illegalConfidence":0,
/*optional, int, violation confidence, value range: [0,100]*/
"illegalDescription":"test",
/*optional, string, violation description*/
"illegalDurationTime":0
/*optional, int, violation duration, unit: ms. The value is the time difference between the capture time of the first picture and that of the last picture*/
}
}],
"PicResources": {
/*optional, object, background picture*/
"resourcesContentType": "",
/*required, string, resource transmission type: "url" (URL), "binary" (binary data). This field must be returned when the alarm message uploaded by the device contains additional resources (e.g., picture)*/
"resourcesContent": ""
/*required, string, resource ID, the maximum string size is 128 bytes. This field must be returned when the alarm message uploaded by the device contains additional resources (e.g., picture). When the value of resourcesContentType is "binary", this field corresponds to the Content-ID of the picture. When the value of resourcesContentType is "url", the value of this field is the specific URL*/
},
"PlateImageResources":{
/*optional, object, license plate picture*/
"resourcesContentType":"binary",
/*required, string, resource transmission type: "url" (URL), "binary" (binary data). This field must be returned when the alarm message uploaded by the device contains additional resources (e.g., picture)*/
"resourcesContent":"plateImage"
/*required, string, resource ID, the maximum string size is 128 bytes. This field must be returned when the alarm message uploaded by the device contains additional resources (e.g., picture). When the value of resourcesContentType is "binary", this field corresponds to the Content-ID of the picture. When the value of resourcesContentType is "url", the value of this field is the specific URL*/
},
"illegalOccupancy":true,
/*optional, boolean, whether the parking space is occupied illegally. When the value of illegalOccupancyEnabled in the message of /ISAPI/Parking/channels/<channelID>/packingSpaceRecognition?format=json, the device will upload this field*/
"totalPackingSpaces":4,
/*optional, int, total number of detected parking spaces*/
"leftPackingSpaces":3
/*optional, int, number of detected vacant parking spaces*/
}