Celebrity

The 'Celebrity' model analyzes images and returns probability scores on the likelihood that the media contains the face(s) of over 10,000 recognized celebrities. This model is great for anyone building an app that relies on celebrity comparisons.

Please note that this model is currently in BETA testing and may update periodically.

GO TO DOCUMENTATION Updated May 23, 2017

Demo

Info

Info

MODEL NAME

Celebrity

OWNER

Clarifai

MODEL ID

e466caa0619f444ab97497640cefc4dc

UPDATED AT

May 23, 2017

CONCEPTS

Marilyn Monroe, Ice Cube, Jennifer Lopez, Angelina Jolie, Jake Gyllenhaal, Oprah Winfrey and more

BETA

Please note that this model is currently in BETA testing and may update periodically

Request

You can call the Predict API with the 'Celebrity' model. Simply pass in an image input with a publicly accessible URL or by directly sending image bytes.

You can learn more about the Predict API in our API Guide.

POST
curl -X POST
    -H 'Authorization: Bearer {access_token}'
    -H "Content-Type: application/json"
    -d '
    {
      "inputs": [
        {
          "data": {
            "image": {
              "url": "https://samples.clarifai.com/celebrity.jpeg"
            }
          }
        }
      ]
    }'
    https://api.clarifai.com/v2/models/e466caa0619f444ab97497640cefc4dc/outputs

Response

The Predict API returns the coordinate location of the bounding box for the detected human face and a list of probability scores on the likelihood that the detected face is the face of a recognized celebrity.

The returned 'bounding_box' values are the coordinates of the box outlining each face within the image. They are specified as float values between 0 and 1, relative to the image size; the top-left coordinate of the image is (0.0, 0.0), and the bottom-right of the image is (1.0, 1.0). If the original image size is (500 width, 333 height), then the box above corresponds to the box with top-left corner at (208 x, 83 y) and bottom-right corner at (175 x, 139 y). Note that if the image is rescaled (by the same amount in x and y), then box coordinates remain the same. To convert back to pixel values, multiply by the image size, width (for "left_col" and "right_col") and height (for "top_row" and "bottom_row").

Response
{
  "status": {
    "code": 10000,
    "description": "Ok"
  },
  "outputs": [
    {
      "id": "b4d198aa826945d8a66b7497244ea3db",
      "status": {
        "code": 10000,
        "description": "Ok"
      },
      "created_at": "2017-01-30T15:42:00Z",
      "model": {
        "name": "celeb-v1.3",
        "id": "e466caa0619f444ab97497640cefc4dc",
        "created_at": "2016-10-25T19:30:38Z",
        "app_id": null,
        "output_info": {
          "message": "Show output_info with: GET /models/{model_id}/output_info",
          "type": "concept"
        },
        "model_version": {
          "id": "bdb0537982ae4e0da563ed836ccfa065",
          "created_at": "2016-10-25T19:30:38Z",
          "status": {
            "code": 21100,
            "description": "Model trained successfully"
          }
        }
      },
      "input": {
        "id": "b4d198aa826945d8a66b7497244ea3db",
        "data": {
          "image": {
            "url": "https://samples.clarifai.com/celebrity.jpeg"
          }
        }
      },
      "data": {
        "regions": [
          {
            "region_info": {
              "bounding_box": {
                "top_row": 0.2086004,
                "left_col": 0.21832436,
                "bottom_row": 0.5766401,
                "right_col": 0.7380595
              }
            },
            "data": {
              "face": {
                "identity": {
                  "concepts": [
                    {
                      "id": "ai_dz0pWqrS",
                      "name": "marilyn monroe",
                      "app_id": null,
                      "value": 0.9632586
                    },
                    {
                      "id": "ai_jJC7CBBz",
                      "name": "dale evans",
                      "app_id": null,
                      "value": 0.0070768096
                    },
                    {
                      "id": "ai_p9ZmDkDL",
                      "name": "betty grable",
                      "app_id": null,
                      "value": 0.003933899
                    },
                    {
                      "id": "ai_kxClN9k6",
                      "name": "angie dickinson",
                      "app_id": null,
                      "value": 0.0032320372
                    },
                    {
                      "id": "ai_1pWS6jx7",
                      "name": "diana dors",
                      "app_id": null,
                      "value": 0.0018274286
                    },
                    {
                      "id": "ai_DgN7Fdxv",
                      "name": "judy garland",
                      "app_id": null,
                      "value": 0.001787676
                    },
                    {
                      "id": "ai_NdC4wCPL",
                      "name": "mamie van doren",
                      "app_id": null,
                      "value": 0.001545853
                    },
                    {
                      "id": "ai_VXLx7pj4",
                      "name": "rita hayworth",
                      "app_id": null,
                      "value": 0.0012767992
                    },
                    {
                      "id": "ai_8KrgZctB",
                      "name": "jayne mansfield",
                      "app_id": null,
                      "value": 0.0009608879
                    },
                    {
                      "id": "ai_dPXkqcSR",
                      "name": "bette davis",
                      "app_id": null,
                      "value": 0.00083878
                    },
                    {
                      "id": "ai_n40CX5d4",
                      "name": "lana turner",
                      "app_id": null,
                      "value": 0.00082355493
                    },
                    {
                      "id": "ai_671cXrRG",
                      "name": "dorothy lamour",
                      "app_id": null,
                      "value": 0.00068208016
                    },
                    {
                      "id": "ai_Z3fWGLBL",
                      "name": "claudette colbert",
                      "app_id": null,
                      "value": 0.00067805755
                    },
                    {
                      "id": "ai_HnpvvSJq",
                      "name": "ann blyth",
                      "app_id": null,
                      "value": 0.0006435063
                    },
                    {
                      "id": "ai_x3GSm5zJ",
                      "name": "ginger rogers",
                      "app_id": null,
                      "value": 0.0006266287
                    },
                    {
                      "id": "ai_HNMtmHLt",
                      "name": "sophia myles",
                      "app_id": null,
                      "value": 0.00042590752
                    },
                    {
                      "id": "ai_ZfbGp0Sc",
                      "name": "marlene dietrich",
                      "app_id": null,
                      "value": 0.0004172824
                    },
                    {
                      "id": "ai_xR4xRKQ9",
                      "name": "virginia mayo",
                      "app_id": null,
                      "value": 0.00041128648
                    },
                    {
                      "id": "ai_6R5WljWg",
                      "name": "carole lombard",
                      "app_id": null,
                      "value": 0.00031749427
                    },
                    {
                      "id": "ai_KkfGNDg1",
                      "name": "shirley temple",
                      "app_id": null,
                      "value": 0.00029381653
                    }
                  ]
                }
              }
            }
          }
        ]
      }
    }
  ]
}
SHOW FULL CODE
COMPONENTDESCRIPTION
modelThe model you are using to make predictions on your inputs with. Includes the id, name, created_at date, output info, and information on the model version.
inputThe image data that you passed through the model to make predictions. Includes id and the image data.
dataThe data sent back with the reponse; usually includes the detected concepts and corresponding probability values. (If the model's output type is not concepts, you'll see different output responses here.)

Info

MODEL NAME

Celebrity

OWNER

Clarifai

MODEL ID

e466caa0619f444ab97497640cefc4dc

UPDATED AT

May 23, 2017

CONCEPTS

Marilyn Monroe, Ice Cube, Jennifer Lopez, Angelina Jolie, Jake Gyllenhaal, Oprah Winfrey and more

BETA

Please note that this model is currently in BETA testing and may update periodically

Get Started for Free with Celebrity Model

Start building amazing stuff — no credit card required.

Get Your Free API Key