API for Pigmentation Pro Application

Use this app to analyse pigmentation conditions. The algorithm distinguishes between 4 different pigmentation manifestations, such as freckles, moles, solar and age spots, melasma-like.

Description

The application has two modes:

  • frontal image processing only

  • batch processing (a batch is 3 images: frontal + left and right sides of the face) Note: If you opt for this choice, you must submit a front image, left side image, and right side image each time. A single image submission will not yield a result.

How to attach the application to a dataset via UI

How to attach the application to a dataset programmatically (only if you are skilled in programming)

Pigmentation App id is e9e18cba-e6a8-4d32-91f8-3cd3d1069b9b

Option 1: API call

  • for a single image

    curl -X 'POST' \
      'https://saas.haut.ai/api/v1/companies/{enter your company id here}/applications/e9e18cba-e6a8-4d32-91f8-3cd3d1069b9b/runs/' \
      -H 'accept: application/json' \
      -H 'Authorization: Bearer {enter your token here}' \
      -H 'Content-Type: application/json' \
      -d '{
      "dataset_id": "{enter your dataset here}",
      "algorithms_flags": {
         "images": "front"
      }
    }'
  • for a batch

    curl -X 'POST' \
      'https://saas.haut.ai/api/v1/companies/{enter your company id here}/applications/e9e18cba-e6a8-4d32-91f8-3cd3d1069b9b/runs/' \
      -H 'accept: application/json' \
      -H 'Authorization: Bearer {enter your token here}' \
      -H 'Content-Type: application/json' \
      -d '{
      "dataset_id": "{enter your dataset here}",
      "algorithms_flags": {
         "images": "triplet"
      }
    }'

Last updated