Gender Classification

Classifies the gender of a person in a given image.

Algorithmia Platform License · Internet Access · Calls Other Algorithms

Run an Example

{
  "results": [
    {
      "bbox": {
        "bottom": 1103,
        "left": 4569,
        "right": 4954,
        "top": 718
      },
      "gender": [
        {
          "confidence": 0.9955822825431824,
          "gender": "Female"
        },
        {
          "confidence": 0.004417801275849342,
          "gender": "Male"
        }
      ],
      "person": 0
    },
    {
      "bbox": {
        "bottom": 2687,
        "left": 3713,
        "right": 4099,
        "top": 2302
      },
      "gender": [
        {
          "confidence": 0.7885161638259888,
          "gender": "Male"
        },
        {
          "confidence": 0.2114837616682053,
          "gender": "Female"
        }
      ],
      "person": 1
    },
    {
      "bbox": {
        "bottom": 846,
        "left": 1959,
        "right": 2344,
        "top": 461
      },
      "gender": [
        {
          "confidence": 0.8280728459358215,
          "gender": "Male"
        },
        {
          "confidence": 0.17192718386650083,
          "gender": "Female"
        }
      ],
      "person": 2
    },
    {
      "bbox": {
        "bottom": 932,
        "left": 1017,
        "right": 1402,
        "top": 547
      },
      "gender": [
        {
          "confidence": 0.5259999632835388,
          "gender": "Male"
        },
        {
          "confidence": 0.4739999771118164,
          "gender": "Female"
        }
      ],
      "person": 3
    },
    {
      "bbox": {
        "bottom": 1959,
        "left": 2900,
        "right": 3285,
        "top": 1574
      },
      "gender": [
        {
          "confidence": 0.9995887875556946,
          "gender": "Female"
        },
        {
          "confidence": 0.00041124210110865533,
          "gender": "Male"
        }
      ],
      "person": 4
    },
    {
      "bbox": {
        "bottom": 2711,
        "left": 6459,
        "right": 6922,
        "top": 2249
      },
      "gender": [
        {
          "confidence": 0.6703506112098694,
          "gender": "Female"
        },
        {
          "confidence": 0.329649418592453,
          "gender": "Male"
        }
      ],
      "person": 5
    },
    {
      "bbox": {
        "bottom": 1060,
        "left": 6795,
        "right": 7180,
        "top": 675
      },
      "gender": [
        {
          "confidence": 0.9730008244514464,
          "gender": "Female"
        },
        {
          "confidence": 0.026999101042747498,
          "gender": "Male"
        }
      ],
      "person": 6
    },
    {
      "bbox": {
        "bottom": 975,
        "left": 3243,
        "right": 3628,
        "top": 590
      },
      "gender": [
        {
          "confidence": 0.9969795346260072,
          "gender": "Female"
        },
        {
          "confidence": 0.0030203615315258503,
          "gender": "Male"
        }
      ],
      "person": 7
    },
    {
      "bbox": {
        "bottom": 1660,
        "left": 6367,
        "right": 6752,
        "top": 1274
      },
      "gender": [
        {
          "confidence": 0.6144528985023499,
          "gender": "Male"
        },
        {
          "confidence": 0.3855469822883606,
          "gender": "Female"
        }
      ],
      "person": 8
    },
    {
      "bbox": {
        "bottom": 2711,
        "left": 1118,
        "right": 1580,
        "top": 2249
      },
      "gender": [
        {
          "confidence": 0.6689008474349976,
          "gender": "Female"
        },
        {
          "confidence": 0.33109909296035767,
          "gender": "Male"
        }
      ],
      "person": 9
    },
    {
      "bbox": {
        "bottom": 2687,
        "left": 5126,
        "right": 5511,
        "top": 2302
      },
      "gender": [
        {
          "confidence": 0.6856191158294678,
          "gender": "Male"
        },
        {
          "confidence": 0.31438082456588745,
          "gender": "Female"
        }
      ],
      "person": 10
    },
    {
      "bbox": {
        "bottom": 1617,
        "left": 760,
        "right": 1146,
        "top": 1232
      },
      "gender": [
        {
          "confidence": 0.9207601547241212,
          "gender": "Female"
        },
        {
          "confidence": 0.0792398676276207,
          "gender": "Male"
        }
      ],
      "person": 11
    },
    {
      "bbox": {
        "bottom": 919,
        "left": 5733,
        "right": 6054,
        "top": 598
      },
      "gender": [
        {
          "confidence": 0.6850218176841736,
          "gender": "Female"
        },
        {
          "confidence": 0.3149781823158264,
          "gender": "Male"
        }
      ],
      "person": 12
    },
    {
      "bbox": {
        "bottom": 1574,
        "left": 4954,
        "right": 5340,
        "top": 1189
      },
      "gender": [
        {
          "confidence": 0.9722701907157898,
          "gender": "Female"
        },
        {
          "confidence": 0.02772974967956543,
          "gender": "Male"
        }
      ],
      "person": 13
    },
    {
      "bbox": {
        "bottom": 1660,
        "left": 2044,
        "right": 2429,
        "top": 1274
      },
      "gender": [
        {
          "confidence": 0.658953845500946,
          "gender": "Male"
        },
        {
          "confidence": 0.3410460650920868,
          "gender": "Female"
        }
      ],
      "person": 14
    },
    {
      "bbox": {
        "bottom": 1916,
        "left": 3927,
        "right": 4313,
        "top": 1531
      },
      "gender": [
        {
          "confidence": 0.998792827129364,
          "gender": "Female"
        },
        {
          "confidence": 0.001207238296046853,
          "gender": "Male"
        }
      ],
      "person": 15
    },
    {
      "bbox": {
        "bottom": 2730,
        "left": 2344,
        "right": 2729,
        "top": 2344
      },
      "gender": [
        {
          "confidence": 0.7787451148033142,
          "gender": "Female"
        },
        {
          "confidence": 0.22125482559204104,
          "gender": "Male"
        }
      ],
      "person": 16
    }
  ]
}

Install & Use

Use

curl -X POST -d '"https://upload.wikimedia.org/wikipedia/commons/c/cc/NASA_Astronaut_Group_18.jpg"' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/deeplearning/GenderClassification/2.0.0