Inspiration

The inspiration for the Mask Detector app struck me a while back during covid while observing people in public spaces. I realized that while many were conscientious about wearing masks, occasional lapses were inevitable. That's when the idea of a real-time mask detection app took root. I envisioned an app that would serve as a guardian, promoting responsible behavior and contributing to the collective effort of curbing the spread of infectious diseases.

What it does

The app is able to take an image of a person and detect and communicate to the user as to whether or not the said person is wearing a mask. Furthermore, the app also has a live feed feature that allows the user to use their device's camera to detect whether the people in the frame have masks on.

How we built it

Flutter and UI Design

I started by setting up a Flutter project, embracing the 'material design' principles for a sleek and intuitive user interface. The app featured a camera view for real-time image capture, along with informative displays to showcase the mask detection results. The design aimed for simplicity, ensuring an easy and seamless user experience.

TensorFlow Lite Integration

The TensorFlow Lite package proved instrumental in incorporating the trained mask detection model into the Flutter app. This step required meticulous coding to ensure the smooth interaction between Flutter and the machine learning model. The lightweight nature of TensorFlow Lite was a perfect fit for the mobile environment, ensuring efficient real-time processing.

Teachable Machine Model

I utilized Google's Teachable Machine to train a custom model for mask detection. This involved providing the platform with images of individuals wearing and not wearing masks. The model was then exported in TensorFlow Lite format for integration into the Flutter app. The ability to fine-tune the model according to specific requirements was a game-changer.

Challenges we ran into

One challenge was plenty of bugs when integrating various technologies together, such as bringing in the model from teachable machines into the flutter app.

Accomplishments that we're proud of

I am particularly proud of being able to train the Google's Teachable machine, come up with a decent model and exporting it to flutter. The experience I have gained from this project alone is invaluable.

What we learned

I learned how to use various technologies to solve unique problems, as well as how to navigate the journey of bringing up an idea from thought to it being an actual product

What's next for Mask Detector

Hopefully I can continue improving the app, and eventually roll it out to stores for others to see, download and use.

Built With

  • dart
  • flutter
  • teachablemachine
  • tensorflow
Share this project:

Updates

Submission history