Skip to content

AdamW19/R-Cubed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R-Cubed

Using QR Codes to Determine Recycle-ability, A Proof of Concept

H.A.R.D. Hack

This project was started and finished during H.A.R.D Hack 2019 in UCSD by the .jjars team. Thanks to the mentors, sponsors, and event holders for making this event possible.

The Premise

We wanted to help improve recycling as easily as possible. We decided on placing a small QR code on a given packaging to allow an automated sorting system sort "garbage" into more effective "recycling" and "trash" piles, reducing the amount of items that goes to a landfill. We expect that these QR codes will be placed on packaging by the manufacturer.

How It Works

Here's a link to see R-Cubed in action.

By using the Webcam Capture API and the ZXing QR/Barcode Decoder, we are able to use a webcam to scan for QR/Barcodes and read their value. If it matches a given value, we will display that it can be recycled. Otherwise, it will display that it cannot be recycled. The system would be able to reroute that object accordingly.

The Given Files

File Name Function
LICENSE The license for this program
QR Code - NR.png QR Code that will return "not recyclable"
QR Code - R.png QR Code that will return "recyclable"
README.md The README file for this program
Recycling.java The source code for this program

What You Need

You will need the .jar files for both the Webcam Capture API and the ZXing QR/Barcode Decoder to compile this program. Please note the variable CAM_NUM; this is to identify which webcam to use. Zero(0) is the native webcam on your laptop or the webcam on your desktop, and one(1) is a USB webcam on your laptop.

Possible Future Improvements

The addition of more values for the QR code, such as the type of plastic and if it can be composted, would be more effective and more beneficial to the environment. More possible ideas are as follows:

  • More cameras to more accurately read QR codes
  • The use of more high resolution cameras to easily identify and decode QR codes
  • Implementing mashine learning to better identify objects without the need for a QR code

This technique could also be implemented for product cycling and such.

Warning

The code is not clean, and many improvements could be made. Please use this program as inspiration for your own!

License

This program is licensed under the Apache License Version 2.0. Please view the LICENSE file for more information.

About

Using QR Codes to Determine Recycle-ability, A Proof of Concept

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages