JSON_EventNotificationAlert_personArmingTrackMsg

JSON message about alarm details of auto person arming

Content-Type: Content-Type: multipart/form-data;boundary=<frontier>

--<frontier>
Content-Disposition: form-data; name="personArmingTrack"
Content-Type: application/json
Content-Length: text_length

{
  "ipAddress": "",
/*required, device IPv4 address , string, the maximum size is 32*/
  "ipv6Address": "",
/*optional, device IPv6 address, string, the maximum size is 128*/
  "portNo": ,
/*optional, device port No., integer32*/
  "protocol": "",
/*optional, string, protocol type: "HTTP", "HTTPS", "EHome"-ISUPSDK protocol, the maximum size is 32*/
  "macAddress": "",
/*optional, string, MAC address, the maximum length is 32 bytes*/
  "channelID": ,
/*optional, integer32, device channel No. that triggers alarm*/
  "dateTime": "",
/*required, string, alarm triggering time based on ISO8601 time format, the maximum length is 32*/
  "activePostCount": ,
/*required, integer32, number of the same uploaded alarm*/
  "eventType": "",
/*required, string, event type: "personArmingTrack"-auto person arming, the maximum length is 128 bytes*/
  "eventState": "",
/*required, string, event triggering status: "active"-triggered, "inactive"-not triggered (refers to heartbeat data), the maximum length is 32 bytes*/
  "eventDescription": "",
/*required, string, event description: person arming track, the maximum length is 128 bytes*/
  "channelName": "",
/*required, channel name (camera name), which should be the same as the <channelName> in message XML_StreamingChannel (related URI: /ISAPI/Streaming/channels/<ID>)*/
  "deviceID": "",
/*optional, device ID (PUID), which should be returned during integration of ISUPSDK and should be the same as the <deviceID> in XML_Ehome (related URI: /ISAPI/System/Network/Ehome)*/
  "persistentEventStatus": "",
/*dependent, event status: "started", "ongoing", "ended"; it is valid when the value of eventType "personArmingTrack"*/
  "uid": "",
/*optional, string, event uploading ID, which can consists of time (accurate to millisecond) and random digits, the maximum value size is 64 bytes*/ 
  "PersonArmingTrackInfo":{
/*required, person arming tracking information*/
/*****************************Person Information***********************************/
    "PersonInfo": {
/*optional, target person information; when the value of persistentEventStatus is "started", the PersonInfo will be uploaded; when the value of persistentEventStatus is "ended", the PersonInfo will not be uploaded unless the tracking capture has enabled; when the value of persistentEventStatus is "ongoing", the PersonInfo will not be uploaded*/ 
      "armingType": "",
/*optional, string, arming type: "face"-upload face information, "human"-upload human body information, "face_human"-upload face and human body information*/
      "Face": {
/*optional, face information*/
        "FaceCaptureResult": {
/*optional, face capture result*/
/***************************Face Rectangle Frame Information*******************************/
          "Rect": {
/*optional, face thumbnail rectangle frame*/
            "height": ,
/*optional, float, frame height, range: [0.000,1.000]*/
            "width": ,
/*optional, float, frame width, range: [0.000,1.000]*/
            "x": ,
/*required, float, X-coordinate of upper-left corner, range: [0.000,1.000], corrects to three decimal place*/
            "y":
/*required, float, Y-coordinate of upper-left corner, range: [0.000,1.000], corrects to three decimal place*/
          },
          "FacePictureRect": {
/*optional, face rectangle frame*/
            "height": ,
/*optional, float, frame height, range: [0.000,1.000]*/
            "width": ,
/*optional, float, frame width, range: [0.000,1.000]*/ 
            "x": ,
/*required, float, X-coordinate of upper-left corner, range: [0.000,1.000], corrects to three decimal place*/
            "y":
/*required, float, Y-coordinate of upper-left corner, range: [0.000,1.000], corrects to three decimal place*/
          },
/***************************Face Attributes*******************************/
          "age": {
/*optional, age information*/
            "value": ,
/*optional, integer32, age*/
            "ageGroup": ""
/*optional, string, age range; the maximum size is 32 bytes*/
          },
          "gender":{
/*optional, gender*/
            "value":""
/*optional, string, gender: "male", "female", "unknown"; the maximum length is 32*/
          },
          "glass":{
/*optional, wear glasses or not*/
            "value":""
/*optional, string, wearing glasses or not: "no", "yes", "sunglasses"-wearing sunglasses; the maximum length is 32*/
          },
          "smile":{
/*optional, smiling or not*/
            "value":""
/*optional, string, smiling or not: "no", "yes", "unknown"; the maximum length is 32*/
          },
          "mask": {
/*optional, wearing mask or not*/
            "value": ""
/*optional, string, wearing mask or not: "no", "yes", "unknown"; the maximum length is 32*/
          },
          "faceExpression":{
/*optional, face expression*/
            "value": ""
/*optional, string, face expression; the maximum size is 32*/
          },
          "hat": {
/*optional, whether the person is wearing a hat*/
            "value": ""
/*optional, string, whether the person is wearing a hat: "no", "yes", "unknown"; the maximum length is 32*/
          },
/***************************Face Picture Information*******************************/
          "FaceImage":{
/*optional, face thumbnail, resource transmission module; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContentType": "",
/*dependent, string, resource transmission type: "url", "binary"; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContent": ""
/*dependent, string, resource ID; when the returned alarm message consists additional resource (e.g., picture), this node should be returned; when the value of resourcesContentType is "binary", it must be the same as Content-ID of picture, when the value of resourcesContentType is url, its value is the picture URL*/ 
          }, 
          "FaceBackgroundImage":{
/*optional, face background picture, resource transmission module; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContentType": "",
/*dependent, string, resource transmission type: "url", "binary"; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContent": ""
/*dependent, string, resource ID; when the returned alarm message consists additional resource (e.g., picture), this node should be returned; when the value of resourcesContentType is "binary", it must be the same as Content-ID of picture, when the value of resourcesContentType is url, its value is the picture URL*/ 
          }
        }, 
/***************************Face Comparison Result*******************************/
        "FaceContrastResult":{
          "similarity": ,            
/*optional, float, the maximum similarity of face comparison results, range: [0,1], corrects to six decimal places*/                 
/***************************Face Picture Library Information*******************************/
          "FDID": "",
/*optional, string, face picture library ID, the maximum length is 64*/
          "FPID": "",
/*optional, string, face picture ID, the maximum length is 64*/ 
          "FDLibName": "",
/*optional, face picture library name*/ 
          "customFaceLibID": "",
/*optional, string, ID of custom face picture library, the maximum length is 64*/ 
          "customHumanID": "",
/*optional, string, custom person ID, the maximum length is 64*/ 
          "FDLibThreshold": ,
/*optional, face grading threshold for detection, range: [0,100]*/ 
          "FaceAppendData": {
/*optional, additional information of person in face picture*/
            "name": "",
/*required, string, name, the maximum length is 64*/
            "gender": "",
/*optional, string, gender: "male", "female", "unknown", the maximum length is 10*/
            "bornTime": "",
/*required, string, date of birth, ISO8601 time format, the maximum length is 32*/
            "province":"",
/*optional, string, province of birth, the maximum length is 32*/
            "city": "",
/*optional, string, city of birth, the maximum length is 32*/
            "certificateType": "",
/*optional, string, certificate type: "officerID"-officer ID, "ID"-identity card, "other"-other; the maximum length is 10*/
            "certificateNumber": "",
/*optional, string, certificate No., the maximum length is 32*/
            "ageGroup": "",
/*optional, string, age group, the maximum length is 32*/
            "PersonInfoExtend":[{
/*optional, custom extension information of person*/
              "id": ,
/*optional, integer32, serial No. of person custom extension information, starts from 1*/
              "enable": ,
/*optional, boolean, whether to enable person extension information*/
              "name":" ",
/*optional, string, tag name of person extension information*/
              "value": ""
/*optional, string, extension information content*/
            }]
          }, 
          "modelData":"",
/*optional, string, the modeling data of face picture base*/
/***************************Face Picture Information*******************************/
          "FDLibImage":{
/*optional, face picture base, resource transmission module; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContent": ""
/*dependent, string, resource transmission type: "url", "binary"; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContent": ""
/*dependent, string, resource ID; when the returned alarm message consists additional resource (e.g., picture), this node should be returned; when the value of resourcesContentType is "binary", it must be the same as Content-ID of picture, when the value of resourcesContentType is url, its value is the picture URL*/  
          }
        }
      }, 
/*************************Human Body Information***********************************/
      "Human":{
        "HumanCaptureResult":{
/*optional, human body capture result*/
/***************************Human Body Rectangle Frame Information*******************************/
          "Rect":{
/*optional, rectangle frame of human body thumbnail*/
            "height": ,
/*optional, float, frame height, range: [0.000,1.000]*/
            "width": ,
/*optional, float, frame width, range: [0.000,1.000]*/
            "x": ,
/*required, float, X-coordinate of upper-left corner, range: [0.000,1.000], corrects to three decimal place*/
            "y":
/*required, float, Y-coordinate of upper-left corner, range: [0.000,1.000], corrects to three decimal place*/
          },
/***************************Human Body Attributes Information*******************************/ 
          "jacketColor":{
/*optional, top's color*/
            "value": ""
/*optional, string, top's color, the maximum length is 32*/
          }, 
          "trousersColor":{
/*optional, trousers' color*/
            "value": ""
/*optional, string, trousers' color, the maximum length is 32*/
          }, 
          "glass":{
/*optional, wear glasses or not*/
            "value":""
/*optional, string, wearing glasses or not: "no", "yes", "sunglasses"-wearing sunglasses; the maximum length is 32*/
          }, 
          "age": {
/*optional, age information*/
            "value": ,
/*optional, integer32, age*/
            "ageGroup": ""
/*optional, string, age range; the maximum size is 32 bytes*/
          }, 
          "ride":{
/*optional, whether the person is riding*/
            "value": ""
/*optional, string, whether the person is riding: "no", "yes", "unknown"; the maximum length is 32*/ 
          }, 
          "gender":{
/*optional, gender*/
            "value":""
/*optional, string, gender: "male", "female", "unknown"; the maximum length is 32*/
          }, 
          "bag":{
/*optional, whether the person is carrying a bag*/
            "value": ""
/*optional, string, whether the person is carrying a bag: "no", "yes", "unknown"; the maximum length is 32*/
          }, 
          "things":{
/*optional, whether the person is carrying things*/
            "value": ""
/*optional, string, whether the person is carrying things: "no", "yes", "unknown"; the maximum length is 32*/
          }, 
          "hat": {
/*optional, whether the person is wearing a hat*/
            "value": ""
/*optional, string, whether the person is wearing a hat: "no", "yes", "unknown"; the maximum length is 32*/
          }, 
          "jacketType":{
/*optional, top's type*/
            "value":"", 
/*optional, string, top's type; the maximum length is 32*/
          }, 
          "trousersType":{
/*optional, trousers' type*/
            "value": ""
/*optional, string, trousers' type; the maximum length is 32*/
          }, 
          "mask": {
/*optional, whether the person is wearing mask*/
            "value": ""
/*optional, string, whether the person is wearing mask: "no", "yes", "unknown"; the maximum length is 32*/
          }, 
          "hairStyle":{
/*optional, hair style*/
            "value": ""
/*optional, string, hair style; the maximum length is 32*/
          }, 
          "score":{
/*optional, human body grading*/
            "value": 
/*optional, int, human body grading, range: [0,100]*/
          }, 
          "motionStatus":{
/*optional, motion status*/
            "value": ""
/*optional, string, motion: "enter", "leave", "unknown"; the maximum length is 32*/
          },
/***************************Human Body Picture Information*******************************/
          "HumanImage":{
/*optional, human body thumbnail, resource transmission module; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContentType": "",
/*dependent, string, resource transmission type: "url", "binary"; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContent": ""
/*dependent, string, resource ID; when the returned alarm message consists additional resource (e.g., picture), this node should be returned; when the value of resourcesContentType is "binary", it must be the same as Content-ID of picture, when the value of resourcesContentType is url, its value is the picture URL*/ 
          }, 
          "HumanBackgroundImage":{
/*optional, human body background picture, resource transmission module; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContentType": "",
/*dependent, string, resource transmission type: "url", "binary"; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContent": ""
/*dependent, string, resource ID; when the returned alarm message consists additional resource (e.g., picture), this node should be returned; when the value of resourcesContentType is "binary", it must be the same as Content-ID of picture, when the value of resourcesContentType is url, its value is the picture URL*/ 
          }
        }, 
/***************************Human Body Picture Comparison Result*******************************/
        "HumanContrastResult":{
/*optional,result of human body picture comparison*/
          "similarity": ,
/*optional, float, the maximum similarity of human body picture comparison, range: [0,1], corrects to six decimal places*/  
          "HBDID": "",
/*optional, string, ID of human body picture library, the maximum length is 64*/ 
          "HBPID": "",
/*optional, string, human body picture ID; the maximum length is 64*/ 
          "HBDLibName": "",
/*optional, string, name of human body picture library, the maximum length is 64*/ 
          "customHBDID": "",
/*optional, string, ID of custom human body picture library, the maximum length is 128*/
          "customHBPID": "",
/*optional, string, ID of custom human body picture, the maximum length is 64*/ 
          "HBDLibThreshold": ,
/*required, integer32, similarity threshold for human body picture comparison, the higher the threshold, the more accurate the comparison is; range: [0,100]*/
          "HumanAppendData":{
/*optional, additional information of person in human body picture*/
            "name": "", 
/*required, string, person name, the maximum length is 64*/
            "gender": "",
/*optional, string, gender: "male", "female", "unknown"*/ 
            "bornTime": "", 
/*optional, string, date of birth, ISO8601 time format, the maximum length is 32*/
            "province": "",
/*optional, string, province of birth, the maximum length is 32*/ 
            "city": "", 
/*optional, string, city of birth, the maximum length is 32*/
            "certificateType ": "",
/*optional, string, certificate type: "officerID"-officer ID, "ID"-identity card, "other"-other; the maximum length is 10*/ 
            "certificateNumber": "",
/*optional, string, certificate No., the maximum length is 32*/  
            "PersonInfoExtend":[{
/*optional, custom extension information of person*/
              "id": ,
/*optional, integer32, serial No. of person custom extension information, starts from 1*/
              "enable": , 
/*optional, boolean, whether to enable person custom extension information*/
              "name": "", 
/*optional, string, tag name of person tag extension information*/
              "value": ""
/*optional, string, extension information content*/
            }]
          }, 
          "modelData": "",
/*optional, string, the modeling data of human body picture base*/ 
/***************************Human Body Picture Information*******************************/
          "HBDLibImage":{
/*optional, human body base picture, resource transmission module; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContentType": "",
/*dependent, string, resource transmission type: "url", "binary"; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/
            "resourcesContent": ""
/*dependent, string, resource ID; when the returned alarm message consists additional resource (e.g., picture), this node should be returned; when the value of resourcesContentType is "binary", it must be the same as Content-ID of picture, when the value of resourcesContentType is url, its value is the picture URL*/ 
          }
        }
      }
    },
/*************************Person Tracking Information***********************************/ 
    "TrackInfo":{
/*optional, tracking information of person arming; it should be uploaded when the value of persistentEventStatus is "ongoing" or "ended"*/
      "targetUUID":"",
/*optional, string, UUID of person arming target, it is unique*/ 
      "TargetGPSInfo":{
/*required, target position information*/
        "longitudeType": "", 
/*required, string, longitude type: "E"-east, "W"-west*/
        "latitudeType": "",
/*required, string, latitude type: "S"-south, "N"-north*/
        "Longitude":{
/*required, longitude value*/
          "degree": , 
/*required, int, degree: [0,180]*/
          "minute": , 
/*required, int, minute: [0,59]*/
          "sec":
/*required, float, second: [0.000000,60.000000], corrects to 6 decimal places*/
        }, 
        "Latitude":{
/*required, latitude value*/
          "degree": ,
/*required, int, degree: [0,180]*/
          "minute": , 
/*required, int, minute: [0,59]*/
          "sec":
/*required, float, second: [0.000000,60.000000], corrects to 6 decimal places*/ 
        }
      }
    }
  }
}
--<frontier>
Content-Disposition: form-data; name="faceImage"; filename="faceImage.jpg"
Content-Type: image/jpeg
Content-Length: image_length
Content-ID: faceImage

[faceImage]
--<frontier>
Content-Disposition: form-data; name="faceBackgroundImage"; filename="faceBackgroundImage.jpg"
Content-Type: image/jpeg
Content-Length: image_length
Content-ID: faceBackgroundImage

[faceBackgroundImage]
--<frontier>
Content-Disposition: form-data; name="FDLibImage"; filename="FDLibImage.jpg"
Content-Type: image/jpeg
Content-Length: image_length
Content-ID: FDLibImage

[FDLibImage]
--<frontier>
Content-Disposition: form-data; name="humanImage"; filename="humanImage.jpg"
Content-Type: image/jpeg
Content-Length: image_length
Content-ID: humanImage

[humanImage]
--<frontier>
Content-Disposition: form-data; name="humanBackgroundImage"; filename="humanBackgroundImage.jpg"
Content-Type: image/jpeg
Content-Length: image_length
Content-ID: humanBackgroundImage

[humanBackgroundImage]
--<frontier>
Content-Disposition: form-data; name="HBDLibImage"; filename="HBDLibImage.jpg"
Content-Type: image/jpeg
Content-Length: image_length
Content-ID: HBDLibImage

[HBDLibImage]
--<frontier>--