Inspiration

What if you could instantly know how many calories are in the food you encounter every day? What if you could instantly know if there are any allergens present? "Food Facts" is a Snap Lens that can detect most common foods and give you this important information so that you can make healthier choices.

There are truly no limitations to the power of machine learning. I was inspired by exploring many of the examples provided for Lens Studio and quickly realized the potential for a lens in the health and wellness category. People are more than ever curious about the foods that they eat, so I think this lens will be a popular choice for folks who want to empower themselves with information presented and aided by ML capabilities.

What it does

Food Facts uses SnapML components to detect food objects with your back-facing camera. It then looks up this food to retrieve information on calories and allergens that may be present. At the moment, for the foods that the lens detects, it will show if the food is gluten-free (GF) or vegetarian (V).

How we built it

I built this lens using Lens Studio. It uses SnapML models to correctly identify common food items: fruits, vegetables, sandwiches, meats, etc. Once the lens detects the correct item, it will reference a provided data list to find calorie counts and identify potential allergens.

Challenges we ran into

It was my first time using Lens Studio. I found the documentation very helpful to get started, and having a background in JavaScript was certainly an advantage in learning the scripting language.

Accomplishments that we're proud of

We have a fully functioning lens that will help people make healthier decisions regarding their personal health and wellness.

What we learned

I learned more about how machine learning works with this project. This was my first time working on a project that depended heavily on this technology. I am inspired to learn more after working on this.

What's next for Food Facts - Nutritional Information

I'd like to add even more foods and additional allergy information on less common allergies.

Updates September 2022:

Even more foods and their accompanying nutritional information have been added!

Built With

  • lensstudio
  • snapml
Share this project:

Updates