• Stars
    star
    107
  • Rank 313,694 (Top 7 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created over 5 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[WIP] Using Tensorflow.js to detect objects and help recycle

Using Tensorflow.js for easier recycling.

I always struggle to remember what is recyclable and what isn't so I decided to use Tensorflow.js and the object detection model coco-ssd to recognise objects and help determine which bin I should throw them in.

This is a prototype.

The object detection is only as good as the pre-trained model used.

For the classification between different bins, I wrote a couple of files listing different objects that should be thrown in the yellow or red bins. These objects will differ depending on the country you live in. I based my selection on the NSW region in Australia.

At the moment, the objects listed in my files are based off of the 90 classes of the coco-ssd model and the 1000 classes of the mobilenet model.

The lists could be more detailed and include one for electronic goods that need to be thrown separately but that's a next step.

My main goal so far was to see if it would work, and it kinda does :)

Working Demo

demo

Installing and running locally

  1. Clone the repository:
git clone https://github.com/charliegerard/tfjs-recycling.git
  1. Navigate to it:
cd tfjs-recycling
  1. Install the dependencies:
yarn
  1. Start:
yarn start

A browser window/tab should open on port 8081.

Tech stack:

  • Tensorflow.js v0.15.3
  • Tensorflow model coco-ssd v0.1.1
  • HTML / CSS / JS
  • Webpack 4
  • Babel 7

Building

To build the project, run yarn build and the public directory will have the deployable files.

More Repositories

1

Epoc.js

Node.js addon for the Emotiv C++ SDK
C
782
star
2

gaze-detection

👀 Use machine learning in JavaScript to detect eye movements and build gaze-controlled experiences.
JavaScript
583
star
3

safe-space

Github action that checks the toxicity level of comments and PR reviews to help make repos safe spaces.
JavaScript
471
star
4

mock-interview-questions

382
star
5

whereami.js

Node.js module to predict indoor location using machine learning and WiFi information 📶
JavaScript
356
star
6

dev-notes

Quick notes of things I learn
221
star
7

beat-pose

Play a Beat Saber clone with hand movements using Tensorflow.js & PoseNet
JavaScript
202
star
8

flappy-windows

Flappy Bird with browser windows
JavaScript
174
star
9

ultrasonic-payments

Experiment using ultrasonic data transmission in JavaScript as a payment method. 💸
JavaScript
155
star
10

washOS

Automatic detection of water running to trigger a countdown in the browser
JavaScript
138
star
11

freedrum.js

Interact with the browser using the Freedrum sensors in JavaScript
JavaScript
120
star
12

whoosh

[Prototype] Control a 3D spaceship with hand movements
JavaScript
106
star
13

interactive-frame-tfjs

Interactive digital art with head-coupled perspective effect using Three.js and TensorFlow.js
JavaScript
94
star
14

splat

Motion-controlled Fruit Ninja clone using Three.js & Tensorflow.js
JavaScript
94
star
15

webusb-rtlsdr-aircraft-radar-system

Build an aircraft radar system using WebUSB and a RTL-SDR dongle to receive live data from airplanes 📡 ✈️
JavaScript
91
star
16

dark-mode-clap-extension

Chrome extension to toggle dark mode on Netlify by clapping hands 👏
JavaScript
84
star
17

gestures-ml-js

[WIP] - Gesture recognition using hardware and Tensorflow.js
JavaScript
77
star
18

hvbrd-sockets

Interactive hoverboard prototype using JavaScript and WebSockets
JavaScript
74
star
19

speak-extension

Chrome extension with speech-to-text functionality to make your presentations more accessible with live captions
HTML
73
star
20

hidden

Script to make inaccessible elements invisible to everyone, until their accessibility issues are fixed
JavaScript
70
star
21

pride-vscode-themes

Pride-inspired VSCode themes
56
star
22

windows-equalizer

Prototype of music equalizer using browser windows and the Web Audio API
JavaScript
49
star
23

rbd-thought-sensor

[WIP] A thought sensor for react-beautiful-dnd, built with Epoc.js and the Emotiv Epoc sensor
JavaScript
45
star
24

myo-web-bluetooth.js

Connect to the Myo armband with Web Bluetooth
JavaScript
43
star
25

squid-game-tfjs

Squid Game's "Green light, red light" using body tracking with TensorFlow.js
JavaScript
42
star
26

Threejs-VR

Experiments using Three.js to create Virtual Reality experiences
JavaScript
37
star
27

rainbrow

Clone of the Rainbrow iOS game in JavaScript
JavaScript
36
star
28

webxr-pacman

Pac-Man prototype in WebXR using Three.js
JavaScript
36
star
29

leap_sphero

Experiment using the Leap Motion to control the Sphero
JavaScript
30
star
30

lifi

Prototype of Li-Fi technology using Arduino and JavaScript 💡
JavaScript
29
star
31

ARPoster

C#
19
star
32

leap_drone

Control the Parrot AR drone with the Leap Motion
JavaScript
19
star
33

daydream-node

Quick Node.js module to connect to the Daydream controller and receive all the data
JavaScript
18
star
34

teachable-keyboard

JavaScript
16
star
35

myo_sphero

Using the Myo armband to control the Sphero
JavaScript
15
star
36

browser-pong

Browser pong game
JavaScript
15
star
37

hand-control-figma-plugin

Prototype of Figma plugin to create UIs with hand movements using Tensorflow.js
JavaScript
14
star
38

fem-ml-workshop

Repository for my FrontEnd Masters workshop on Machine Learning in JavaScript
JavaScript
13
star
39

quaruntine

Prototype of motion controlled running app
JavaScript
11
star
40

face-pong

WIP - Pong game with face tracking
JavaScript
8
star
41

solidjs-netlify-starter

SolidJS + Netlify starter template
JavaScript
8
star
42

street-fighter-arduino-tflite

Prototype of Street Fighter game to play with hand movements using the Arduino Nano 33 BLE Sense and TensorFlow Lite
C
8
star
43

docker-tutorial

Source code for my tutorial on Docker for front-end devs
JavaScript
7
star
44

neurosky-brainwaves-visualizer

A Visualizer for the Neurosky Brain Sensor in Node.js
JavaScript
7
star
45

ml-image-recognition

[WIP]
Python
6
star
46

charliegerard.github.io

Portfolio
HTML
6
star
47

demo-restaurant-contentful-solid

JavaScript
6
star
48

cylon-projects

Hardware projects using Cylon.js
JavaScript
5
star
49

event-triggered-netlify-function

Demo showing how to use event-triggered Netlify Functions.
HTML
5
star
50

myo_drone

Using the Myo armband to control the Parrot AR Drone
JavaScript
5
star
51

neurosky-drone

Controlling the Parrot AR Drone with the Neurosky
JavaScript
4
star
52

EscPosEncoder.js

Browser version of EscPosEncoder to send commands to a receipt printer 🖨️
JavaScript
4
star
53

starwars

Recreating the Star Wars opening crawl using Three.js
HTML
4
star
54

spectrm

An Interactive Music Visualizer using the Web Audio API and Three.js
JavaScript
3
star
55

charliegerard

3
star
56

arduino-workshop

WIP
C++
2
star
57

react-native-prototype

JavaScript
2
star
58

Perspective

Experiment using head tracking
JavaScript
2
star
59

demo-restaurant-contentful-next

JavaScript
1
star
60

Morse

Prototype of Android app to translate Morse code
Java
1
star
61

webrebels2017

CSS
1
star
62

test-animations

Tests with canvas, two.js and three.js
JavaScript
1
star
63

smashdatcat

Javascript mini game
JavaScript
1
star
64

test

test
JavaScript
1
star
65

parcel-transformer-markdoc

📦 Parcel transformer for Markdown files using Markdoc
JavaScript
1
star
66

leapsync

Interactive visualization of sign language with the Leap Motion
HTML
1
star
67

nodeschool

JavaScript
1
star
68

neurosky-sphero-cylon

Control the Sphero with the Neurosky headset in Cylon.js
JavaScript
1
star
69

Processing_sketches

Processing sketches
Processing
1
star
70

Device_orientation_game

A quick game using device orientation
JavaScript
1
star
71

touch-table-prototype

Prototype of touch table using Processing and the Kinect
Processing
1
star
72

sydjs

SydJS talk on robots and programming for hardware
JavaScript
1
star