Giter Club home page Giter Club logo

lobe2microbit's Introduction

Lobe to MicroBit

Dead simple example of integration between the image recongition software Lobe and Microbit.

It's a webpage that loads a model produced by Lobe and sends recognised labels to a serial interface, which can be plugged to a Microbit or any other device (even an Arduino).

Why?

Why not?

The idea is to test possible applications of Machine Learning with embedded devices, such as Microbit and Arduino.

How?

  1. Train a model with Lobe.
  2. Export your model as a Tensorflow.JS example.
  3. Copy the content of the folder that you have just exported into the model folder.
  4. Serve the webpage with a local web server, such as the Live sever for VSCode or any other really.
  5. Prepare code for Microbit (or other board) so that it can parse text from the serial line with a format like the following: label,confidence\n (each "event" is sent as a separate line). If you work with Microbit, you can use this example code which shows a different icon (๐ŸŒ or ๐ŸŽ) depending on the label it receives ("banana" or "apple"). Change it according to your labels and idea.
  6. Open the webpage in Chrome, give it access to your camera, connect it to Microbit and have fun.
  7. You can change the rate at which events are sent to Microbit and put a threshold under which labels are not sent.

Who?

Developed by Dario Salvi, with the help of Jens Pedersen, for the Master in Interaction Design of Malmo University.

lobe2microbit's People

Contributors

dariosalvi78 avatar

Watchers

 avatar  avatar

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.