GithubHelp home page GithubHelp logo

siddheshsingh / skin-tan-detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 360 KB

Detection of change in Skin Tone (Tanning) of a person, irrespective of the lighting of an image

Jupyter Notebook 100.00%

skin-tan-detection's Introduction

Skin-Tan-Detection

Detection of change in Skin Tone (Tanning) of a person, irrespective of the lighting of an image.

Description

Detecting skin tone in an image has been a great problem, as every image (even of the same person) has different conditions (Camera Quality, Light Exposure, etc). This project is focused on detecting the differences in the skin tone (telling you if you've grown darker or lighter significantly).

This can be done through extracting the Saturation value of the two images. This value tells us the difference between the skin tones of the two images, usually irrespective of the conditions like Light Exposure etc. This is because the Light Exposure during capturing a photo effects the Brightness/Value.
(Although the brightness of the image has some effects on the saturation, here it is considered of not having any significant effect. )

Procedure

  1. The skin of the person from the image is isolated. This has been done by the use of skin segmentation by thresholding values. The whole background, which do not contain skin color, is turned black. K Nearest Neighbours algorithm is then used to find out the dominating colors in the image.
    Details are described in : https://medium.com/datadriveninvestor/skin-segmentation-and-dominant-tone-color-extraction-fe158d24badf
    Code available at : https://github.com/octalpixel/Skin-Extraction-from-Image-and-Finding-Dominant-Color

  2. The 1st skin tone out of top 5 is extracted. The BGR (Blue, Green, Red) code of this skin tone is converted to HSV (Hue, Saturation, Value).

  3. The Saturation (S) from the HSV code is compared between the two images. If they have significant changes, output is given describing if the second image is a result of tan or not, and by how much value.

Resources

https://github.com/octalpixel/Skin-Extraction-from-Image-and-Finding-Dominant-Color
https://www.w3resource.com/python-exercises/math/python-math-exercise-77.php

skin-tan-detection's People

Contributors

siddheshsingh avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.