3DOC1
3DOC1
INTRODUCTION
This Project Report will introduce how to the rapid accumulation of plastic
waste in marine ecosystems has emerged as one of the most pressing
environmental challenges of the 21st century. With millions of tons of plastic
entering the oceans annually, the adverse effects of plastic degradation on marine
life, water quality, and ecosystem health are profound and far-reaching. Plastics,
when exposed to seawater and UV light, break down into microplastics, which are
ingested by marine organisms, causing toxic effects and disrupting the food chain.
This growing environmental crisis demands a comprehensive and strategic
approach to mitigate the damage caused by plastic pollution.
1
1.1 FRONT END
HTML:
HTML stands for Hyper Text Markup Language. HTML (Hypertext Markup
Language) is the foundation of all websites, serving as the core language used to
structure web content. It provides the essential building blocks that define the
layout, organization, and presentation of information on web pages. Through the
use of HTML tags and elements, developers can structure text, images,
multimedia, links, forms, and more, allowing browsers to interpret and display the
content correctly.
CSS:
2
CSS provides a wide range of styling options, including the ability to control
colors, fonts, spacing, positioning, and responsiveness of web elements. It supports
various selectors, properties, and units, allowing for precise styling that can be
applied globally or to specific components.
One of the key advantages of CSS is its ability to facilitate the maintenance
and scalability of web projects. By applying styles from a central stylesheet,
developers can make broad design changes with minimal effort, improving
efficiency and consistency throughout the website.
With the advent of modern CSS features, such as Flexbox, Grid, and
animations, developers can create complex layouts and dynamic visual effects that
enhance user interaction. CSS frameworks and preprocessors like Bootstrap and
Sass further streamline the styling process, providing pre-defined classes and
functionalities that speed up development.
JAVA SCRIPT:
3
One of JavaScript's key features is its ability to run in any web browser,
making it universally accessible across different platforms. With the advent of
frameworks and libraries like React, Angular, and Vue.js, JavaScript has further
enhanced its capabilities, facilitating the development of complex single-page
applications (SPAs) and improving overall user experience.
EXPRESS.JS:
4
platform for creating highly efficient and performant web applications. Its
unopinionated nature means that developers have complete freedom to structure
their applications however they see fit, whether they are building a small prototype
or a large enterprise application.
ARDUINO UNO:
Python has a rich ecosystem of libraries and frameworks, such as Flask and
Django for web development, TensorFlow and Py-Torch for machine learning, and
NumPy and Pandas for data analysis.
Python is being used in this project due to its ease of development, the
availability of libraries that cater to insert your project's specific needs like web
development, data analysis, machine learning, etc., and its scalability. With
Python's versatility, this project is able to achieve (mention project goals, e.g., high
performance, seamless user experience, efficient data processing).
KEARS:
Kera’s is an open-source, high-level deep learning API written in Python,
designed to facilitate the building and training of neural networks. It is a user-
friendly framework that runs on top of lower-level libraries such as TensorFlow,
6
Theano, or Microsoft Cognitive Toolkit (CNTK). Kera’s aims to provide a simple
interface for developing deep learning models quickly while maintaining flexibility
and scalability for research and production-level tasks.
TENSOR FLOW:
TensorFlow is an open-source machine learning framework developed by
Google that allows developers to build, train, and deploy machine learning models
efficiently. Launched in 2015, TensorFlow has become one of the most widely
used platforms for machine learning and deep learning due to its versatility,
scalability, and rich ecosystem of tools. It supports a broad range of tasks, from
simple linear regression models to complex neural networks for image recognition,
natural language processing, and more.
TensorFlow is used to (mention the specific role, e.g., build and train a
neural network model for image classification, time series prediction, or other
tasks). Its robust library and ease of integration enable rapid model development
and ensure high accuracy in predictions. TensorFlow’s ability to scale and deploy
on various platforms ensures that the project can handle diverse use cases and
environments.
FLASK:
7
Python. It is designed to make the development of web applications simple and
straightforward, with a minimalist core that allows developers to build applications
quickly while maintaining full control over the app's design. Flask is well-suited
for small to medium-sized projects, as well as scalable applications, due to its
modularity and extensibility.
Flask serves as the backbone of the web application. It handles the core logic
for serving dynamic content, managing user interactions, and integrating with
backend systems such as the Arduino or machine learning models like
TensorFlow. Flask’s simplicity allows rapid development and easy customization,
making it the perfect choice for building responsive, scalable web applications.
RENDER_TEMPLATE:
The render_template function is a core feature of Flask that enables the
rendering of HTML templates in web applications. It is used to dynamically
generate HTML pages by combining static templates with dynamic data.
render_template relies on the Jinja2 templating engine, which allows for the
insertion of Python logic within HTML, making it possible to display dynamic
content, such as user data or outputs from backend processes.
8
JSONIFY:
jsonify is a utility function provided by the Flask framework that simplifies
the process of converting Python data structures into JSON format. JSON
(JavaScript Object Notation) is a widely-used data interchange format that is
lightweight, easy to read, and suitable for transmitting data between a server and a
client. The jsonify function is essential for building APIs and web applications that
communicate with front-end frameworks or other services.
REQUEST:
In the context of web development with Flask, the request object is a crucial
component that encapsulates all the data sent by a client (such as a web browser or
mobile application) to the server. It provides a unified way to access various
aspects of the incoming HTTP request, including headers, query parameters, form
data, JSON payloads, and more. The request object is part of Flask's core
functionality, enabling developers to handle user inputs and interactions
effectively.
9
Request Object is vital for capturing and processing user input from the
client side. It enables the backend to understand and respond to various types of
interactions, whether they involve submitting forms, uploading files, or sending
JSON data for processing. By effectively utilizing the request object, the
application can provide a seamless and dynamic user experience, making it a key
component of the web application architecture.
KERAS PREPROCESSING IMAGE:
The keras. preprocessing. Image module in Keras provides a set of tools for
image data preprocessing, which is often used for tasks like loading images,
converting them to arrays, and augmenting image datasets to enhance the
robustness of machine learning models, especially when working with
Convolutional Neural Networks (CNNs).
The keras. preprocessing. Image module is designed to streamline the
process of loading and preprocessing images before feeding them into machine
learning models. It supports various tasks such as loading images from disk,
resizing, converting them to arrays, and augmenting the dataset to improve the
model's generalization ability.
1.3 SIGNIFICANCE
The marine ecosystem is severely impacted by plastic degradation, leading
to pollution, threats to marine life, and long-term environmental consequences.
This project aims to develop a multifaceted strategy that includes innovative anti-
pollutants, effective plastic disposal methods, promoting algae growth, and
utilizing robotic technology for waste collection.
10
i)Robotic Waste collection:
The accumulation of plastic waste in our oceans is a critical
environmental challenge that threatens marine ecosystems and wildlife. To address
this issue, we propose the deployment of boats equipped with advanced robotic
systems designed to efficiently collect plastic debris from ocean waters.
ii)Disposal Methods:
To combat the escalating plastic pollution in oceans, it is essential to explore
and implement effective techniques for safe plastic disposal. This initiative focuses
on innovative methods that prioritize environmental safety and sustainability.
i. Biodegradable Alternatives: Promote the use of biodegradable materials
that can replace conventional plastics, thereby reducing the overall volume
of plastic entering marine environments.
ii. Advanced Filtration Systems: Develop and deploy specialized filtration
systems in strategic coastal areas and rivers to capture plastic waste before it
reaches the ocean, ensuring cleaner waterways.
11
iii. Plastics-to-Fuel Technology: Implement technologies that convert plastic
waste into valuable fuels or raw materials, effectively recycling plastic while
reducing waste. This process not only minimizes ocean pollution but also
provides an alternative energy source.
iv. Waste-to-Energy Solutions: Explore waste-to-energy facilities that safely
incinerate plastic waste, generating energy while ensuring that harmful
emissions are controlled and minimized.
v. Public Engagement and Education: Foster community awareness and
involvement in sustainable disposal practices, encouraging individuals and
businesses to adopt responsible waste management behaviors.
iii)Image Prediction:
Image prediction, particularly using deep learning models, holds significant
importance in various fields due to its ability to automate visual recognition
tasks. Here are some key points highlighting its significance:
14
These autonomous vessels are designed to navigate waterways and coastal
areas, equipped with advanced sensors and collection mechanisms to identify and
gather plastic debris. By utilizing GPS and machine learning algorithms, the
robotic boats can efficiently map pollution hotspots and optimize their collection
routes.
The collected waste will be properly sorted and sent for recycling or safe
disposal, contributing to a circular economy. By integrating technology with
community efforts, the deployment of robotic boats not only aims to reduce plastic
pollution but also enhances overall ecosystem health and resilience.
15
recognize complex patterns in data, enhancing the accuracy of predictions
related to future plastic waste generation and disposal.
iii) Innovative Disposal Methods:
Bioremediation: Explore the use of microorganisms or enzymes to break
down plastics in marine environments. This method focuses on enhancing
the natural degradation processes, providing an eco-friendly alternative to
traditional disposal methods.
Advanced Recycling Technologies: Investigate new recycling technologies
that can process a wider range of plastics. This includes chemical recycling
methods that break plastics back down into their original monomers,
allowing for the creation of new, high-quality plastic products.
iv) Predictive Modelling:
Integrated Waste Management Systems: Develop integrated models that
account for various factors influencing plastic disposal, including
socioeconomic data, waste management policies, and community behavior.
These models help in forecasting future plastic disposal scenarios and
identifying effective interventions.
Geospatial Analysis: Use Geographic Information Systems (GIS) to
visualize and analyze the spatial distribution of plastic waste and disposal
methods. This helps in identifying hotspots for targeted interventions and
resource allocation.
v) Community Engagement and Feedback
Participatory Approaches: Involve local communities in the data
collection and prediction process. Gather insights on their disposal practices
and attitudes toward plastic use, which can enhance the accuracy of
predictive models.
Feedback Mechanisms: Establish channels for continuous feedback from
16
community members and stakeholders. This can help refine methods and
strategies based on real-world experiences and challenges faced in plastic
disposal.
iii) Image Prediction System for Plastic Waste Collection
i)Data Collection:
Gather a diverse dataset of images showcasing various types of plastic waste
(e.g., bottles, bags, packaging) in different environments (landfills, beaches,
oceans).
Ensure the dataset is annotated with labels indicating the type of plastic and
its condition (e.g., recyclable, non-recyclable).
ii) Preprocessing:
Resize images to a standard format to ensure uniformity.
Normalize pixel values to enhance model training.
Augment the dataset through techniques like rotation, flipping, and
brightness adjustment to increase diversity.
iii) Model Selection:
Choose a suitable deep learning architecture (e.g., Convolutional Neural
Networks - CNNs) known for image classification tasks.
Consider using pre-trained models (e.g., ResNet, Mobile Net) for transfer
learning to leverage existing knowledge and reduce training time.
iv) Training:
Split the dataset into training, validation, and testing sets.
Train the model using the training dataset, adjusting hyperparameters
(learning rate, batch size) to optimize performance.
Use validation data to monitor overfitting and fine-tune the model.
v)Evaluation:
Assess the model's performance using metrics like accuracy, precision,
17
recall, and F1-score on the test dataset.
Conduct error analysis to identify common misclassifications and improve
the model.
vi)Deployment:
Implement the trained model in a user-friendly interface or application
where users can upload images for classification.
Provide feedback on the type of plastic and suggestions for disposal
methods.
iv)Contact:
Our team is committed to ensuring that your experience with our application
is seamless and enjoyable. If you encounter any issues, have questions, or need
guidance while using the app, we’re here to help. Whether you’re a first-time user
or a seasoned expert, we want to ensure that every interaction with our platform
meets your expectations.
You can reach our support team through several channels, ensuring that you
get the assistance you need in the most convenient way. We encourage you to
contact us for both technical support and general inquiries about the features and
services of the application. Our team is available via email, phone, and through our
official website, where a detailed FAQ section is also available to address common
queries.
18
For a more personalized experience, users can also opt for a live chat with
our customer care representatives during working hours.
Our customer service team works diligently to respond to all queries within
24-48 hours. For urgent matters, please don’t hesitate to reach us via phone, where
we offer real-time assistance. We are constantly improving and growing, and your
communication helps us ensure that our application evolves in ways that suit our
user base.
1.5) REPORT ORGANIZATION
In next Chapter, which is Chapter 2, we gave the Literature survey of
the project. The Chapter 3 is system and software requirements. Whereas chapter 4
is an overview of the whole project. Plastic pollution in the marine ecosystem has
emerged as a critical environmental issue, with plastic degradation leading to
harmful effects on marine life and global ecosystems. To address this, a holistic
strategy that integrates cutting-edge technologies and ecological restoration is
essential. The user interface for input information for a new group is also
discussed. Chapter 5 gives the Conclusion and Future scope of the project.
19
CHAPTER 2
LITERATURE SURVEY
Introduction:
The Ocean Cleanup Project Initiated by Boyan Slat this large-scale project
uses autonomous booms and skimming devices to collect floating plastic debris.
Slat’s system is designed to concentrate plastic waste for easy collection,
dramatically reducing the time and cost of clean-up operations.
20
2) “Drone-Assisted Plastic Detection by Garcia-Garcia et al. (2020)”
CHAPTER 3
Processor: AMD Ryzen 5 5600U with Vega 8 graphics. (or) Intel Core
i5-1155G7 with Iris Xe graphics.
22
CHAPTER 4
PROJECT DESCRIPTION
23
1)Welcome:
This section serves as the entry point to the cleaning the blu initiative, a
cutting-edge solution focused on tackling plastic degradation in marine
ecosystems. It offers users a glimpse into the multifaceted strategy behind our
efforts, which span advanced technologies in waste collection, robotic controls,
and sustainable plastic disposal methods. Users are invited to explore and engage
with this comprehensive platform to understand how innovative solutions are
shaping the future of ocean cleanup.
24
2) Robot Controls:
3) Image Prediction:
4) Object Identification:
5) Waste Collection:
The About Us & Contact section invites users to learn more about the
passionate team behind CLEANING THE BLU and discover how to get involved.
Whether you are seeking more information, looking to collaborate, or eager to join
our mission, this space provides easy access to contact details for direct
communication. Reach out to our dedicated team through email or phone to
contribute your ideas, ask questions, or become part of the global effort to combat
marine pollution. Together, we can create cleaner oceans for future generations.
26
4.2) USE CASE DIAGRAM
27
4.3 Block Diagram:
28
CHAPTER 5
CONCLUSION & FUTURE SCOPE
29
5.1 Conclusion:
A comprehensive strategy to mitigate the environmental impact of plastic
degradation in the marine ecosystem must be both multifaceted and innovative. By
focusing on anti-pollutants, plastic disposal methods, and leveraging biological and
technological advancements, we can significantly reduce the harmful effects of
plastic on marine life and ecosystems.
30
plastic degradation in the marine ecosystem involves several innovative solutions
that have the potential for long-term impact and future growth in the industry. Let's
break down the future scope for each component of the initiative.
iv) Algae farming and biofuels: Algae can be grown in the ocean or controlled
environments to capture carbon dioxide while providing raw material for biofuels.
Industries such as energy, pharmaceuticals, and nutrition will increasingly rely
on algae for sustainable production.
CHAPTER 6
APPENDICES
32
APPENDIX 1: SAMPLE CODE
HTML CODE:
USER INTERFACE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CLEANING THE BLU</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>CLEANING THE BLU</h1>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="index.html">Robot contorl's</a></li>
<li><a href="Image Prediction">Image Prediction</a></li>
<li><a href="#Object identification">Object identification</a></li>
<li><a href="#waste-collection">Waste Collection</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
33
<section id="home">
<h2>Welcome</h2>
<p>Welcome to our initiative focused on mitigating the impact of plastic
degradation in marine ecosystems. Explore our comprehensive strategy to learn
more.</p>
</section>
<section id="Robot Controls">
<h2>Robot Controls</h2>
<p>
"Robot Controls: Manage and monitor robot movements, speed, and tasks
in real-time through an intuitive interface.</p>
</section>
<section id="Image Prediction">
<h2>Image Prediction</h2>
<p>Image Prediction refers to the process of detecting and classifying objects
within an image or video, often using machine learning or computer vision
techniques.</p>
</section>
<section id="Object identification">
<h2>Object Identification</h2>
<p>Object identification refers to the process of detecting and classifying
objects within an image or video, often using machine learning or computer vision
techniques.</p>
</section>
<section id="waste-collection">
<h2>Robotic Waste Collection</h2>
34
<p>Discover the deployment of boats equipped with robots to efficiently
collect plastic waste from the oceans.</p>
</section>
<footer id="contact">
<h2>About Us & Contact</h2>
<p>Learn more about our team and get in touch with us for more information
or to join our cause.</p>
<address>
<p>Email: [email protected]</p>
<p>Phone: 6309927713</p>
</address>
</footer>
</body>
</html>
CSS CODE:
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
}
header {
background-color: #333;
color: #fff;
35
padding: 20px 0;
text-align: center;
}
header h1 {
margin: 0;
}
nav ul {
list-style: none;
padding: 0;
}
nav ul li {
display: inline;
margin: 0 10px;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
section {
padding: 20px;
margin: 20px auto;
max-width: 800px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
36
section h2 {
margin-top: 0;
}
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 20px 0;
margin-top: 20px;
}
footer p, footer address {
margin: 0;
}
address p {
margin: 5px 0;
}
CONTROL’S:
HTML CODE:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Robot Control</title>
<style>
body {
37
background-color: #f0f0f5;
font-family: Arial, sans-serif;
text-align: center;
padding: 20px;
}
h1 {
color: #333;
margin-bottom: 40px;
}
.button-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}
button {
padding: 20px;
font-size: 20px;
border: none;
border-radius: 10px;
cursor: pointer;
transition: transform 0.2s ease;
}
button:active {
transform: scale(0.95);
}
.forward {
38
background-color: #28a745;
color: white;
}
.reverse {
background-color: #dc3545;
color: white;
}
.left, .right {
background-color: #ffc107;
color: white;
}
.led-on {
background-color: #17a2b8;
color: white;
}
.led-off {
background-color: #6c757d;
color: white;
}
.stop {
background-color: #343a40;
color: white;
}
img {
width: 100px;
height: auto;
margin-top: 20px;
39
}
</style>
</head>
<body>
<h1>Control Your Robot</h1>
<div class="button-container">
<button class="forward" onclick="sendCommand('F')">Forward</button><br>
<button class="reverse" onclick="sendCommand('B')">Reverse</button>
<button class="left" onclick="sendCommand('L')">Left</button>
<button class="right" onclick="sendCommand('R')">Right</button>
<button class="led-on" onclick="sendCommand('W')">LED On</button>
<button class="led-off" onclick="sendCommand('w')">LED Off</button>
<button class="stop" onclick="sendCommand('S')">Stop</button>
</div>
<img src="https://www.pngwing.com/en/search?q=ROBOT" alt="Robot Image">
<script>
function sendCommand(command) {
fetch(`/send/${command}`)
.then(response => response.text())
.then(data => {
console.log(data);
})
.catch(error => {
console.error('Error:', error);
});
}
</script>
40
</body>
</html>
JAVA SCRIPT CODE:
const express = require('express');
const {SerialPort} = require('serialport');
const Readline = require('@serialport/parser-readline');
const app = express();
const port = 3000;
// Set up serial communication
const arduinoPort = new SerialPort('COM3', { baudRate: 9600 }); // Replace
'COM3' with your Arduino's COM port
const parser = arduinoPort.pipe(new Readline({ delimiter: '\n' }));
app.use(express.static('public')); // Serve static files from 'public' directory
app.get('/send/:command', (req, res) => {
const command = req.params.command;
arduinoPort.write(command, (err) => {
if (err) {
return res.send('Error on write: ' + err.message);
}
res.send('Command sent: ' + command);
});
});
app.listen(port, () => {
console.log(`Server running at http://localhost:${port}/`);
});
IMAGE PREDICTION:
41
HTML:
INDEX PAGE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Prediction</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
text-align: center;
margin: 0;
padding: 0;
}
.container {
margin-top: 50px;
}
h1 {
color: #333;
}
.upload-form {
background-color: #fff;
padding: 20px;
border-radius: 10px;
42
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: inline-block;
}
.upload-form input[type="file"] {
margin: 10px 0;
}
.upload-form button {
padding: 10px 20px;
background-color: #28a745;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.upload-form button:hover {
background-color: #218838;
}
</style>
</head>
<body>
<div class="container">
<h1>Upload an Image for Prediction</h1>
<form class="upload-form" action="/predict" method="POST"
enctype="multipart/form-data">
<input type="file" name="file" required>
<button type="submit">Predict</button>
</form>
43
</div>
</body>
</html>
RESULT PAGE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prediction Result</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
text-align: center;
margin: 0;
padding: 0;
}
.container {
margin-top: 50px;
}
h1 {
color: #333;
}
img {
max-width: 300px;
height: auto;
44
margin-top: 20px;
}
.result-box {
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: inline-block;
}
</style>
</head>
<body>
<div class="container">
<h1>Prediction Result</h1>
<div class="result-box">
<p><strong>Predicted Label: </strong>{{ prediction }}</p>
<img src="/uploads/{{ filename }}" alt="Uploaded Image">
</div>
<br>
<a href="/">Upload another image</a>
</div>
</body>
</html>
PYTHON CODE:
import os
from flask import Flask, request, render_template
from tensorflow.keras.applications.mobilenet_v2 import MobileNetV2,
45
preprocess_input, decode_predictions
from tensorflow.keras.preprocessing import image
from werkzeug.utils import secure_filename
import numpy as np
app = Flask(__name__)
# Load the pre-trained MobileNetV2 model
model = MobileNetV2(weights='imagenet')
# Directory to save uploaded images
UPLOAD_FOLDER = 'uploads'
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
if not os.path.exists(UPLOAD_FOLDER):
os.makedirs(UPLOAD_FOLDER)
# Route for the homepage
@app.route('/')
def index():
return render_template('index.html')
# Route to handle image upload and prediction
@app.route('/predict', methods=['POST'])
def predict():
if 'file' not in request.files:
return "No file uploaded", 400
file = request.files['file']
if file.filename == '':
return "No selected file", 400
filename = secure_filename(file.filename)
filepath = os.path.join(app.config['UPLOAD_FOLDER'], filename)
file.save(filepath)
46
# Load the image for prediction
img = image.load_img(filepath, target_size=(224, 224))
img_array = image.img_to_array(img)
img_array = np.expand_dims(img_array, axis=0)
img_array = preprocess_input(img_array)
# Perform prediction
predictions = model.predict(img_array)
decoded_predictions = decode_predictions(predictions, top=1)[0]
# Get the name of the predicted object
predicted_label = decoded_predictions[0][1]
return render_template('result.html', prediction=predicted_label,
filename=filename)
if __name__ == "__main__":
app.run(debug=True)
OBJECT IDENTIFICATION:
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Marine Garbage Classifier</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
47
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
.container {
background-color: #fff;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
border-radius: 8px;
}
h1 {
color: #4CAF50;
}
input[type="file"] {
margin: 20px 0;
}
button {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
48
}
.result {
margin-top: 20px;
}
.result span {
font-weight: bold;
font-size: 1.2em;
}
</style>
</head>
<body>
<div class="container">
<h1>Marine Garbage Classifier</h1>
<p>Upload an image to check if it's disposable or non-disposable.</p>
<form id="uploadForm" enctype="multipart/form-data">
<input type="file" id="fileInput" accept="image/*" required>
<button type="submit">Classify</button>
</form>
<div class="result" id="result"></div>
</div>
<script>
const form = document.getElementById('uploadForm');
const resultDiv = document.getElementById('result');
APPENDIX -2
52
OUTPUT SCREENS
USER INTERFACE:
ROBOT CONTROLS:
53
IMAGE PREDICTION:
54
OBJECT IDENTIFICATION:
REFERENCES:
55