Recipes

Age classification

Changed on

Detects minors in media content. Returns a boolean value indicating whether the content contains minors as well as details on where minors are detected.

post/v2/consumer/recipes/ageClassification

Request

  • The document declares no server URL.
  • Auth: none required

Query parameters

experimentalboolean
allowMatureContentboolean
whatifboolean
ephemeralboolean
tier'paid' | 'free'

How a workflow is paid for.

Request body

modelstring nullable

An optional model to use for age classification. If not provided, the default model will determined by the worker

mediaUrlstring uri required

The URL of the media to classify. This can either be a URL to an image or a video or a ZIP containing multiple images

faceDetectionThresholdnumber double nullable

Optional face detection confidence threshold. Defaults to 0.25 if not provided.

personDetectionThresholdnumber double nullable

Optional person detection confidence threshold. Defaults to 0.35 if not provided.

Response

OK

labelsobject required

Age classification results per image

hasMinorboolean required
numPredictionsinteger required
numFlaggedinteger required

Number of flagged predictions (minors)

faceRecognitionFacesobject nullable

Face recognition results per image (if available)

faceRecognitionNumFacesinteger nullable
faceRecognitionNumUniquePeopleinteger nullable

Estimated number of unique people in the dataset (based on similarity clustering)

faceRecognitionAvailableboolean required

Changes