百度智能云

All Product Document

          Object Storage

          Politician Recognition

          Feature Description

          Politician recognition.

          Request Parameters

          None

          Return Parameters

          Parameters Sub-parameter Required Type Required? Description
          log_id - - uint64 Yes Log ID
          result_num - - uint32 Yes Number of faces detected actually (no more than max_face_num)
          result - - object[] Yes
          - location - object Yes Location 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 Public ID, 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
                          }
                      ]
                  }
              ]
          } 
          Next
          Public Figures Recognition