Inspiration

A conversation broke out discussing the dangers of going to a tanning salon vs. normal sunbathing. In addition, we were arguing what the difference sunblock and sunscreen were. We then wanted to create a filter that told you the UV index, how the sun might affect you, and show you how potentially tan you might be after staying too long in the sun. We aimed to create a useful tool to share how the sun might be damaging you or others. We concluded that if you want to protect yourself from the sun's rays, you have to find protection using SPF.

What it does

We create a filter that shows tanning overtime. We also added a maximum time you can safely stay under the sun. You can choose the skin tone that matches you and we will give you a short time-lapse on how long you could stay out. It should tell you a UV index based on location.

How we built it

We used SparkAR Studio to build this filter. We then took a face mesh then changed the tan of a person based time and tone.

Challenges we ran into

First, we ran into a problem trying to convert facial skin color into a numerical value in order to get a more accurate skin color, and during development, we learned that it was very difficult to get a RGB value from a single pixel. We sent a good amount of time tanning different skin tones. We also struggled with the user interface as we had different ideas of using a slider or manually choosing the user.

Accomplishments that we're proud of

We're happy that we achieved different tan shades based on skin color. We achieve a UV index based on location using OpenUV API that gave us exact coordinates. We implemented the face mesh fairly easily, but using our algorithm for changing skin complexion was a harder task.

What we learned

We learned how to use SparkAR Studio, expanded our knowledge of Javascript, learned how to protect your skin from the sun. We learned how to grab your face as a texture and change face tanning based on our tanning time algorithm. We used NativeUI Picker in order to give the user different skin tone options. We learned how to get the UV index based on location.

What's next for Prevent Skin Cancer

If given the chance to continuing working we would try to automatically get the skin tone, tell you a more accurate UV index based on location, and maybe add an interaction with the background on how strong the UV rays are. In addition, we would also add the feature to show tan for the entire body and not just the face.

Built With

Share this project:

Updates

Submission history