Baidu AI Cloud
中国站

百度智能云

Object Storage

Public Figures Recognition

Feature Description

Public figures recognition

Request Parameters

Parameters Required? Type Description
max_face_num No uint32 The maximum number of faces processed, whose default value is 1 and the maximum value is 5.
max_star_num No uint32 The maximum number of similar stars in a single face, which is 4 by default.

Return Parameter

Parameters Sub-parameters Sub-parameters Type Required? Description
log_id - - uint64 Yes Log ID
result_num - - uint32 Yes The number of faces detected actually (no more than max_face_num)
result - - object[] Yes
- location - object Yes Position of face in the input image
- - left uint32 Yes Distance from face area to left boundary
- - top uint32 Yes Distance from face area to top boundary
- - width uint32 Yes Width of face area
- - height uint32 Yes Height of face area
- stars - object [] Yes Public figure array
- - name string Yes Full name
- - star_id string Yes Personal ID, which is globally unique.
- - probability float Yes Similarity, [0, 1]

Return Example

    {
        "log_id": 3268660173,
        "result_num": 1,
        "result": [
            {
                "location": {
                    "left": 132,
                    "top": 168,
                    "width": 238,
                    "height": 223
                },
                "stars": [
                    {
                        "name": "Xi Jinping",
                        "star_id": "515617",
                        "probability": 0.9750030040741
                    }
                ]
            }
        ]
    }
Previous
Politician Recognition
Next
Terror Recognition