Hair density API for LASER

Measuring hair density is a common way to assess the effectiveness of laser hair removal in reducing unwanted hair. Hair density is typically measured before and after a series of laser hair removal sessions to evaluate the extent of hair reduction achieved. Visual assessments involve examining the treated area and comparing it to baseline photographs taken prior to treatment. This API applies a series of morphological operations to the image to generate a mask containing the hairs and counts the number of pixels in the mask. The API crops the central 256*256 window from the image for processing.

The estimate is approximate and this is useful only for cosmetic purposes.

Connect on RapidAPI

Image requirements:

Submit an image with only skin and hair. Take a close-up image with neutral lighting centred on the area to be assessed. If the image is larger than 256*256, only the central 256*256 pixels will be processed. Try it out a few times to get it right. Visit RapidAPI for instructions.

Output

Example response: {“hair”: 3756, “no_hair”: 61780, “total”: 65536, “score”: 5.73}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.