Updated on 2024-02-29 GMT+08:00

Target Attribute Recognition

  • Data streams in JSON format are output to the specified DIS channels or webhook URLs, including structured data and images.
  • Result example:
    { 
         "stream_id": "001", 
         "event_type": 2162688, 
         "task_id": "taskud8b8499", 
         "timestamp": 1560346229, 
         "message_id": "0DD1BEA6-634B-11E8-8B0B-407D0FAD9218", 
         "image_base64":"/9j/4AAQSkZJRgA...", 
         "data":{ 
             "event_set":[{
                ''bounding_box'': {
                 "x": 100,
                 "y": 200,
                 "w'': 80,
                 "h": 150
                 },
                "type": "pedestrian",
                "attribute": {
                    "gender": "male",
                    "age": "young",
                    "hair": "short_hair",
                    "glasses": "yes",
                    "hat": "none",
                    "mask": "yes",
                    "backbag": "yes",
                    "handbag": "no",
                    "single_shoulder_bag": "no",
                    "upper_color": "black",
                    "upper_style": "short_sleeve",
                    "upper_texture": "pure",
                    "lower_color": "black",
                    "lower_style": "shorts",
                    "orientation": "front"
                  },
                 "polygon_name":""
             }]
         } 
     }
  • JSON format

    Field

    Type

    Description

    stream_id

    String

    Camera ID

    event_type

    Uint64

    Event type for the output message.

    • The value is fixed to 2162688, which is 0x 0000 0000 0021 0000 in hexadecimal format.

    task_id

    String

    Task ID

    message_id

    String

    UUID that uniquely identifies the output message

    timestamp

    Uint64

    Time when the alarm is triggered

    image_base64

    String

    Base64 encoding results of the video image when the alarm is triggered

    data

    Object

    Service output content

  • data parameters

    Field

    Type

    Description

    event_set

    List<Object>

    List of events generated

  • event_set parameters

    Field

    Type

    Description

    bounding_box

    Object

    Rectangle for the alarm object

    type

    String

    Target type. The following output types are supported:

    pedestrian

    bicycle

    electronicmobile

    car

    slag_car

    trailer

    concrete_mixer

    bus

    other_vehicle

    attribute

    Object

    Pedestrian attribute. This parameter is available for targets of pedestrians only when pedestrian detection is enabled.

    polygon_name

    String

    Name of the area where the target is located. For the area name setting, see the target_roi field. If the area name is not set, this field is an empty string by default.

  • bounding_box parameters

    Field

    Type

    Description

    x

    Int

    Horizontal coordinate of the upper-left corner of a bounding box

    y

    Int

    Vertical coordinate of the upper-left corner of a bounding box

    w

    Int

    Width of a bounding box

    h

    Int

    Height of a bounding box

  • attribute parameters

    Field

    Type

    Description

    gender

    String

    Pedestrian gender. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    male

    female

    age

    String

    Pedestrian age group. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    child

    young

    middle

    old

    hair

    String

    Hairstyle. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    short_hair

    long_hair

    bald

    glasses

    String

    Whether a person is wearing glasses. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    glasses_yes

    glasses_no

    hat

    String

    Head covering. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    Hat: The target is wearing a hat.

    Helmet: The target is wearing a helmet.

    hat_no: The target is not wearing a head covering.

    mask

    String

    Whether a person is wearing a mask. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    mask_yes

    mask_no

    backbag

    String

    Whether a person is wearing a backpack. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    backbag_yes

    backbag_no

    handbag

    String

    Whether a person is carrying a handbag. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    handbag_yes

    handbag_no

    single_shoulder_bag

    String

    Whether a person is wearing a sling bag. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    single_shoulder_bag_yes

    single_shoulder_bag_no

    upper_color

    String

    Tops color. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    upper_color_black: black

    upper_color_silver: silver or white

    upper_color_blue: blue

    upper_color_green: green

    upper_color_yellow: yellow or orange

    upper_color_red: red, pink, or purple

    upper_style

    String

    Tops style. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    short_sleeve

    long_sleeve

    upper_texture

    String

    Tops pattern. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    pure: solid color

    stripe: stripes

    grid: grids

    mixture: patterns or prints and patterns

    lower_color

    String

    Bottoms color. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    lower_color_black: black

    lower_color_silver: silver or white

    lower_color_blue: blue

    lower_color_green: green

    lower_color_yellow: yellow or orange

    lower_color_red: red, pink, or purple

    lower_style

    String

    Bottoms style. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    shorts

    trousers

    short_skirt

    long_skirt

    orientation

    String

    Pedestrian orientation. This parameter is available only when this attribute is set in pedes_attri_switch. Options:

    front

    back

    left

    right