GithubHelp home page GithubHelp logo

kaztoozs / fluttermlapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from efortuna/shrine_with_square

0.0 1.0 1.0 41.98 MB

A forked version of the Shrine Demo app, with Square app-payments integration (https://github.com/flutter/flutter/tree/master/examples/flutter_gallery/lib/demo/shrine)

License: BSD 3-Clause "New" or "Revised" License

Java 0.43% Objective-C 0.87% Dart 95.59% Shell 0.57% Python 2.54%

fluttermlapp's Introduction

A simple on the surface but mildly complicated Flutter app using a machine learning model. The model runs on a Python server and is used to detect palm oil plantations in images uploaded by the user from their gallery. It interacts with the mobile app via Firebase through API requests after proceeding through a Square payment gateway.

Built in less than a week over a normal work week with no previous experience in Flutter/Firebase/Square.

Login, basic UI and payment system started from forked repo: https://github.com/efortuna/shrine_with_square

Firebase communication and python server inspired by this repo: https://github.com/ZbigniewTomanek/image_classification_with_flutter

Setup and usage

Run the python flask app found in FlutterMLApp/python with

flask run --host=0.0.0.0

This puts the machine learning model in service to be requested by the Android app. This is not for serving a web app.

In lib/service.dart, a URL variable at the top of the file is set by default. This is the URL necessary for the app running on an Android emulator to find the Python server, which should be running on your local machine. You may need to change this depending on where you run the Python server

Once this is running, go ahead and launch the app on an Android emulator (if you need to set up an Android emulator or Flutter, follow their installation tutorial: https://flutter.dev/docs/get-started/install).

Select an image and make a payment (no payments are actually made, this is a test app). The default card on Sqaure to use is 4111 1111 1111 1111

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.