All Projects → antiplasti → Plastic Detection Model

antiplasti / Plastic Detection Model

Licence: mit
Image Recognition Model to detect plastics, glass, paper, rubbish, metal and cardboard. This is used to detect these pollution in the ocean to allow the eradication of these materials, helping marine life, fishermen, tourism and making the world resilient to climate change.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Plastic Detection Model

Hackathon Starter
Useful information for using Amadeus for Developers APIs in Hackathons
Stars: ✭ 38 (-19.15%)
Mutual labels:  hackathon
My Raspberry Pi Site
Middleman-based site for my RaspberryPi
Stars: ✭ 41 (-12.77%)
Mutual labels:  raspberry-pi
Wpa Connect
wpa-connect
Stars: ✭ 43 (-8.51%)
Mutual labels:  raspberry-pi
True artificial intelligence
真AI人工智能
Stars: ✭ 38 (-19.15%)
Mutual labels:  raspberry-pi
Lakka Libreelec
Lakka is a lightweight Linux distribution that transforms a small computer into a full blown game console.
Stars: ✭ 1,007 (+2042.55%)
Mutual labels:  raspberry-pi
Padd
PADD (formerly Chronometer2) is a more expansive version of the original chronometer.sh that is included with Pi-Hole. PADD provides in-depth information about your Pi-hole.
Stars: ✭ 1,011 (+2051.06%)
Mutual labels:  raspberry-pi
Pendulum
ROS, ROS2, real-time, control, pendulum
Stars: ✭ 37 (-21.28%)
Mutual labels:  raspberry-pi
Azuremonitoringhackathon
Operationalize Azure deployments with Azure platform tools​
Stars: ✭ 46 (-2.13%)
Mutual labels:  hackathon
Embedio
A tiny, cross-platform, module based web server for .NET
Stars: ✭ 1,007 (+2042.55%)
Mutual labels:  raspberry-pi
Embassy Os
A graphical operating system for running self-hosted software.
Stars: ✭ 43 (-8.51%)
Mutual labels:  raspberry-pi
Hackinthenorth.github.io
India's greatest student held hackathon. 🐺
Stars: ✭ 38 (-19.15%)
Mutual labels:  hackathon
Smart Surveillance System Using Raspberry Pi
This is my Third Year Project for face recognition using OpenCV
Stars: ✭ 41 (-12.77%)
Mutual labels:  raspberry-pi
Piweatherrock
Displays local weather on a Raspberry Pi
Stars: ✭ 42 (-10.64%)
Mutual labels:  raspberry-pi
Pi Webcam
Automation to configure a Raspberry Pi as a USB OTG webcam
Stars: ✭ 990 (+2006.38%)
Mutual labels:  raspberry-pi
Hackonhills
Official Website for the Annual Hackathon organized by AppTeam NITH
Stars: ✭ 44 (-6.38%)
Mutual labels:  hackathon
Blinkt go examples
The beginning of Blinkt examples programs in Go
Stars: ✭ 37 (-21.28%)
Mutual labels:  raspberry-pi
Pantry
🥑 Free data storage as a service that allows devs to store JSON for multiple apps & users. A good resource when building personal projects, apps for hackathons, and prototypes alike.
Stars: ✭ 42 (-10.64%)
Mutual labels:  hackathon
Furatto Rails Start Kit
A rails app with Furatto, Devise, and Facebook Authentication perfect for hackathons!
Stars: ✭ 46 (-2.13%)
Mutual labels:  hackathon
Fiscalberry
[JSON ↔ HW] Connect things using JSON API with the fiscalberry websocket server interact easily with any kind of Hardware. Another IoT solution...
Stars: ✭ 44 (-6.38%)
Mutual labels:  raspberry-pi
Lsquaredc
A library for I2C communications for Linux devices (Beaglebone Black, Raspberry PI, and possibly others).
Stars: ✭ 42 (-10.64%)
Mutual labels:  raspberry-pi
tensorflow-image-detection icon

tensorflow-image-detection

A generic image detection program that uses Google's Machine Learning library, Tensorflow and a pre-trained Deep Learning Convolutional Neural Network model called Inception.

This model has been pre-trained for the ImageNet Large Visual Recognition Challenge using the data from 2012, and it can differentiate between 1,000 different classes, like Dalmatian, dishwasher etc. The program applies Transfer Learning to this existing model and re-trains it to classify a new set of images.

This is a generic setup and can be used to classify almost any kind of image. I created a small demo that classifies two image data sets - my photos and my girlfriend's photos, and returns a prediction score denoting the possibility of it being my image or my girlfriend's image.


Installation

Make sure you have Python 3 installed, then install Tensorflow on your system, and clone this repo.


Usage

Our team, Anti Plasti used to detect images of plastics, garbage, metal, paper, glass and cardboard in the ocean to allow for the collection and reduction of these materials, particularly plastic, in the ocean waters.

Prepare the image data sets

In order to start the transfer learning process, a folder named training_dataset needs to be created in the root of the project folder. This folder will contain the image data sets for all the subjects, for whom the classification is to be performed.

Download the Datasets here

Create the training_dataset folder and add the images for all the data sets in the following manner -

/
|
|
---- /training_dataset
|    |
|    |
|    ---- /plastics
|    |    plastic1.jpg
|    |    plastic2.jpg
|    |    ...
|    |
|    |
|    ---- /paper
|         paper1.jpg
|         paper2.jpg
|         ...
|
|     

This enables classification of images between the plastics and paper data sets.

Make sure to include multiple variants of the subject (side profiles, zoomed in images etc.), the more the images, the better is the result.

Initiate transfer learning

Go to the project directory and run -

$ bash train.sh

This script installs the Inception model and initiates the re-training process for the specified image data sets.

Once the process is complete, it will return a training accuracy somewhere between 85% - 100%.

The training summaries, retrained graphs and retrained labels will be saved in a folder named tf_files.

Classify objects

python classify.py

This opens up the file dialog using which you can select your input file.

Once the input file is selected, the classifier will output the predictions for each data set. A prediction score between 0.8 to 1 is considered to be optimal.



Contributors


Arun Michael Dsouza


Royal Bhati

Many thanks for the Dataset which was obtained from this Git project


License

MIT License

Copyright (c) 2017 Arun Michael Dsouza

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].