A Machine Learning App for an Age-Old Debate. Coming April 1st 2019.

Related tags

Templates Sandwhich
Overview

Sandwhich

sandwhich-icon
Website | Twitter

Sandwhich is a mobile app built to solve the sandwich debate by determining if the picture you've taken is a sandwich using machine learning, Flutter, and TensorFlow Lite.

Available on Google Play and the App Store

Screenshots

Built With

Getting Started

Building from Source

Clone the repository

git clone https://github.com/MotionMobs/Sandwhich
cd Sandwhich

Run Sandwhich

flutter run

Train Your Model/ How To πŸš‹ Your πŸ₯ͺ

To train your πŸ₯ͺ , you need to install Docker and ImageMagick.

brew update && brew install imagemagick

Set up file structure for your images

training_images
β”‚   β”œβ”€β”€ input
β”‚   β”‚   β”œβ”€β”€ not-sandwich
β”‚   β”‚   β”‚   β”œβ”€β”€ processed  # processed not-sandwich images
β”‚   β”‚   β”‚   └── unprocessed  # original, not yet processed not-sandwich images
β”‚   β”‚   β”œβ”€β”€ sandwich
β”‚   β”‚   β”‚   β”œβ”€β”€ processed  # processed sandwich imagess
β”‚   β”‚   β”‚   └── unprocessed  # original, not yet processed sandwich images
β”‚   β”œβ”€β”€ output  # ready for model
β”‚   β”‚   β”œβ”€β”€ not-sandwich  # minimum 20 images to train
β”‚   β”‚   └── sandwich  # minimum 20 images to train
└──

Once original images are loaded into the folders, as described above, process the images

cd training_images
./conversion.sh

After all images have been processed we need to build the Docker image, run the script to retrain the model, and run the script to convert the retrained model to a .tflite model we can use in the app.

Go back to the root of the project and run:

cd -
./train.sh

Prepare to wait a while.

Testing

To test the new model, run ./test_model.sh $IMAGE_PATH where $IMAGE_PATH is any path to an image you want to test with. For convenience, you can even drag an image into the terminal to have its path placed at the end of whatever is currently in the terminal.

  • When ready to use the new model, move it to the assets folder and overwrite the old model. Backup old model if desired.
  • Run the app, find some sandwiches, and enjoy!

To release on Android:

flutter build apk --target-platform android-arm64

Team

MotionMobs Website

Credits

Sandwhich icon was created by Chad Remsing from the Noun Project

You might also like...

Flutter-e-learning - E-Learning Application Built With Flutter

Flutter-e-learning - E-Learning Application Built With Flutter

E-Learning Demo Screens Explore Planner Overlay Videos Leaderboard Global Leader

Dec 27, 2022

Flutter UI challenge (with Box2D physic)- Smart washing machine app

Flutter UI challenge (with Box2D physic)- Smart washing machine app

Flutter UI Challenge- SMART Washing Machine About project The application was written based on this great UI concept: https://dribbble.com/shots/11018

Dec 27, 2022

Learn how to build a tensorflow model on Techable Machine and then run it on flutter app.

Learn how to build a tensorflow model on Techable Machine and then run it on flutter app.

Ml With Flutter Learn how to build a tensorflow model on Techable Machine and then run it on flutter app. Youtube Tutorial Show Support Recommend Me O

Jan 3, 2023

An extension to the bloc state management library which lets you create State Machine using a declarative API

An extension to the bloc state management library which lets you create State Machine using a declarative API

Nov 28, 2022

A powerful state machine for MobX management, that can be used in almost any application state.

A powerful state machine for MobX management, which can be used in almost any application state. It has 3 states - loading, success, error - and is pe

Oct 31, 2022

An open source flutter ride-hailing app for learning purpose(Provider & Bloc)

citycab An open source ride hailing app with flutter. Getting Started This project is a starting point for a Flutter application. A few resources to g

Jan 2, 2023

Pneumonia detection android app based on deep learning API

pneumonia A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if thi

Nov 7, 2021

E-Learning Online Courses Flutter UI App

E-Learning Online Courses Flutter UI App

E-Learning Online Courses App Application design is based on Learning Online Courses Mobile App #1 designed by MikoΕ‚aj GaΕ‚Δ™ziowski Screenshots Home Pa

Dec 19, 2022

A flutter app build for learning purposes...

i_am_rich A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if thi

Dec 14, 2021
Comments
  • iOS build fails

    iOS build fails

    Xcode's output: ↳ === BUILD TARGET share OF PROJECT Pods WITH CONFIGURATION Debug === /Users/djoker/flutter/.pub-cache/hosted/pub.dartlang.org/tflite-1.0.4/ios/Classes/T flitePlugin.mm:19:10: fatal error: 'tensorflow/lite/kernels/register.h' file not found #include "tensorflow/lite/kernels/register.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.

    opened by anoop-b 1
  • Optimized images

    Optimized images

    Your image file size has been reduced by 5% πŸŽ‰

    Details

    | File | Before | After | Percent reduction | |:--|:--|:--|:--| | /android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png | 6.88kb | 4.56kb | 33.76% | | /android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png | 9.34kb | 6.23kb | 33.22% | | /android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png | 4.53kb | 3.04kb | 32.96% | | /assets/images/sandwhich-icon.png | 23.79kb | 15.97kb | 32.86% | | /android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png | 3.45kb | 2.35kb | 32.00% | | /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png | 3.03kb | 2.06kb | 32.00% | | /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png | 4.01kb | 2.77kb | 30.91% | | /android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png | 2.22kb | 1.57kb | 29.17% | | /media/icon.png | 9.75kb | 7.25kb | 25.72% | | /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png | 1.94kb | 1.45kb | 25.24% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/sandwhich-icon_base.png | 35.63kb | 26.80kb | 24.77% | | /media/ss4.png | 103.57kb | 81.56kb | 21.26% | | /android/app/src/main/res/mipmap-hdpi/ic_launcher.png | 1.44kb | 1.14kb | 20.27% | | /assets/images/sandwhich.png | 29.58kb | 23.78kb | 19.60% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/sandwhich-icon_167.png | 7.70kb | 6.59kb | 14.35% | | /android/app/src/main/res/mipmap-xxxhdpi/icon.png | 8.77kb | 7.53kb | 14.12% | | /android/app/src/main/res/mipmap-xxhdpi/icon.png | 6.62kb | 5.71kb | 13.87% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 6.96kb | 6.01kb | 13.63% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 8.23kb | 7.13kb | 13.33% | | /assets/images/mm-logo.png | 20.83kb | 18.42kb | 11.61% | | /android/app/src/main/res/mipmap-xhdpi/icon.png | 4.43kb | 3.95kb | 10.91% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 5.48kb | 4.89kb | 10.73% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 5.48kb | 4.89kb | 10.73% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 3.97kb | 3.56kb | 10.19% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 3.67kb | 3.33kb | 9.21% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 3.67kb | 3.33kb | 9.21% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/sandwhich-icon_76.png | 3.42kb | 3.15kb | 7.80% | | /android/app/src/main/res/mipmap-hdpi/icon.png | 3.31kb | 3.06kb | 7.67% | | /media/ss.png | 2,236.77kb | 2,099.02kb | 6.16% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 2.71kb | 2.56kb | 5.62% | | /media/ss3.png | 2,275.82kb | 2,173.60kb | 4.49% | | /android/app/src/main/res/mipmap-mdpi/ic_launcher.png | 0.87kb | 0.83kb | 4.27% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 2.66kb | 2.55kb | 4.15% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 2.66kb | 2.55kb | 4.15% | | /android/app/src/main/res/mipmap-mdpi/icon.png | 2.16kb | 2.07kb | 3.93% | | /media/ss2.png | 2,728.27kb | 2,625.05kb | 3.78% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 1.79kb | 1.77kb | 0.93% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 1.79kb | 1.77kb | 0.93% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 1.79kb | 1.77kb | 0.93% | | | | | | | Total : | 7,588.98kb | 7,175.63kb | 5.45% |

    opened by anoop-b 0
Owner
null
Age-Calculator-Lambda - Age Calculator Lambda With Flutter

Age-Calculator-Lambda(Contributed by YEASEEN AHMED)

CPAD-Gazipur 4 Nov 13, 2022
This is machine learning project where developed the model in teachable machine.

doc_help A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Abu sayed chowdhury 1 Apr 26, 2022
App for visually impaired using Machine Learning, Artificial Intelligence, and Flutter.

Your Eyes ?? Introduction Our Application aims to bridge the gap between them and the visual world by Deep Learning and lucid User-Interface for easy

Jatin Yadav 5 Dec 9, 2022
Flutter App Build for the machine Learning model which shows sentiments of instagram user by analysing their captions

InstaKnow Front-end By @ketanchoyal Back-end By @namas191297 Front-end Application Flutter application that allows user to analyze sentiments of other

Ketan Choyal 40 Oct 28, 2022
Submission for the 2019 Flutter Create contents. Simple game 'loosely' based on Centipede.

Dash Run Remember the days of 8bit computing where we only had a few Kb to play with, the games were very simple and the graphics terrible? This is my

Ben Hills 9 Feb 14, 2022
The same old Weather App, But 'In Flutter , By Me'

Weather App v1.0.1 About The same old Weather App, But 'In Flutter , By Me' . NB Still in developement Stats ### v1.0.1 - Started a Basic outline of

Adithya Krishnan 2 Sep 7, 2022
Just a simple interface showing a diamond, an imitation to that old application called I am rich .

i_am_rich A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if thi

Nixi 0 Dec 29, 2021
Age2 - A Flutter package to calculate someone's age in days, months, and years

age A Flutter package to calculate someone's age in days, months, and years; in

Charles Dyason 0 Feb 6, 2022
count your age by years, months,days,hours and min by flutter

countage A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Hmdo 2 Sep 6, 2022