You are on page 1of 61

A PROJECT STAGE-II REPORT ON

Direct Delivery of Agriculture Product from Farmer to


Consumer and Leftover Food to NGO

Submitted In the Partial Fulfillment of the Requirement for

BACHELOR OF ENGINEERING
IN
COMPUTER ENGINEERING

BY

Sudhir Shrimant Arawtkal B150544202


Suraj Subhash Gade B150544216
Abhishek Manik Patil B150544251
Deepak Bhagirath Maharana B150544246

Under The Guidance of


Prof. Ms. Rachna Sable

DEPARTMENT OF COMPUTER ENGINEERING

G. H. RAISONI INSTITUTE OF ENGINEERING AND


TECHNOLOGY
WAGHOLI , PUNE -412207
SAVITRIBAI PHULE PUNE UNIVERSITY
2021-2022
CERTIFICATE
This is to certify that,

Sudhir Shrimant Arawtkal B150544202


Suraj Subhash Gade B150544216
Abhishek Manik Patil B150544251
Deepak Bhagirath Maharana B150544246

of class B.E Computer; have successfully completed their project Phase-II


work on ”Direct Delivery of Agriculture Product from Farmer to Consumer and
Left-over Food to NGO” in the partial fulfillment of the Graduate Degree
course in B.E at the Department of Computer Engineering, in the academic
Year 2021-2022 as prescribed by the Savitribai Phule Pune University, Pune.

Prof. Ms. Rachna Sable Prof. Ms. Rachna Sable

Project Guide HOD

Dr. R. D. Kharadkar
External Examiner Director
Acknowledgments

We here by wish to take this opportunity to express our gratitude to our teachers

and friends and all who have helped toward the completion of our project.

We take a great honor in presenting this Project Report to our Director, Dr.
R. D. Kharadkar

We also like to give thanks to our Guide Ms. Rachna Sable for helping and
guiding us throughout our endeavor.

We are very grateful to our teaching staff for guiding us all over the duration of
the degree. They were very helpful to us, as and when we required their help.
We are also very grateful to non-teaching staff to help us in the laboratory in
various ways. We would also like to extend our gratitude to those friends
whose knowledge and time helped us in many different ways.

Sudhir Shrimant Arawtkal B150544202


Suraj Subhash Gade B150544216
Abhishek Manik Patil B150544251
Deepak Bhagirath Maharana B150544246
(Computer engineering)

GHRIET, Department of Computer Engineering, 2021-2022 I


Abstract

E-Agriculture is a stage for supporting marketing of agricultural products. This will


help to all those farmers who need to get exact value to their agricultural products
and end users need good precised´ rate of each product. This will help for the
betterment of their day today lives along with these it used to support poor people
to feed them who need it. Different government based NGO work for them for that
they reach to those people who have extra food (which they used to waste
previously) can share eatable food to NGO to fulfill their basic need and also to
prevent food wastage. The aim of system/application is to make such community
in that we totally eliminate all brokers and estimated value directly goes to farmer
from there agricultural selling products. And finally we use wastage food through
NGO directly distribute in poor people.. Thus, this system can improve the end
customer’s confidence on products and establish a trust relationship between
consumers and producers. And disposal wastage/extra of food in different
functions the rest of the food is distributed to the poor, NGOs

Keywords:agricultural product, food delivery, consumer, NGO, web application

GHRIET, Department of Computer Engineering, 2021-2022 II


List of Figures

3.2 Time Line Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16


4.1 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

4.2 case 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.3 case 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.4 case 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.5 case 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.6 case 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.7 DFD Level 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.8 DFD Level 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.9 UseCase Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.10 Activity Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.11 Sequence Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.1 System Welcome Page . . . . . . . . . . . . . . . . . . . . . . . . 35

6.2 Farmer Login Page . . . . . . . . . . . . . . . . . . . . . . . . . . 35


6.3 Farmer Registration Page . . . . . . . . . . . . . . . . . . . . . . . 36
6.4 Farmer Home page . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.5 Adding New Product . . . . . . . . . . . . . . . . . . . . . . . . . 37
6.6 Registration Page for Buyer . . . . . . . . . . . . . . . . . . . . . . 37
6.7 Buyer Login Page . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.8 Buyer Home Page . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.9 Items For Buying . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
6.10 Cart Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
6.11 Checkout Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
6.12 Notification After Adding Product . . . . . . . . . . . . . . . . . . 40
6.13 Transcation History . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6.14 Form to Upload Remaining Food . . . . . . . . . . . . . . . . . . . 41
6.15 NGO mail ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.16 Wastage Food Notification Via Mail . . . . . . . . . . . . . . . . . 42

GHRIET, Department of Computer Engineering, 2021-2022 IV


List of Tables

3.1 Effort Estimate Table . . . . . . . . . . . . . . . . . . . . . . . . . 15


3.2 Project Scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1 Test Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
INDEX

1 INTRODUCTION 2
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Objectives of Project . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Organization of project report . . . . . . . . . . . . . . . . . . . . . 4
2 LITERATURE SURVEY 5

2.1 Literature Survey . . . . . . . . . . . . . . . . . . . . . . . . . . . 6


3 SOFTWARE REQUIREMENT SPECIFICATION 8

3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1.1 Problem Statement . . . . . . . . . . . . . . . . . . . . . . 9
3.1.2 User Classes and Characteristics . . . . . . . . . . . . . . . 9
3.1.3 Assumptions and Dependencies . . . . . . . . . . . . . . . 9
3.2 Functional Requirement . . . . . . . . . . . . . . . . . . . . . . . . 10
3.2.1 System Feature 1(Functional Requirement) . . . . . . . . . 10
3.3 Non-Functional Requirement . . . . . . . . . . . . . . . . . . . . . 10
3.3.1 Performance Requirements . . . . . . . . . . . . . . . . . . 10
3.3.2 Safety Requirements: . . . . . . . . . . . . . . . . . . . . . 10
3.3.3 Security Requirements . . . . . . . . . . . . . . . . . . . . 11
3.3.4 Software Quality Attributes . . . . . . . . . . . . . . . . . 11
3.4 System Requirement . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.4.1 Software Requirements(Platform Choice) . . . . . . . . . . 12
3.4.2 Hardware Requirements . . . . . . . . . . . . . . . . . . . 12
3.5 Analysis Models: (SDLC Model to be applied) . . . . . . . . . . . 12
3.6 System Implementation Plan . . . . . . . . . . . . . . . . . . . . . 15
3.6.1 Project Estimates . . . . . . . . . . . . . . . . . . . . . . . 15

3.7 Time Line Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15


4 SYSTEM DESIGN 17

4.1 System Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 18


4.2 Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.2.1 SVM ............................. 19
4.3 Data Flow Diagram . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.3.1 Level 0 Data Flow Diagram . . . . . . . . . . . . . . . . . 23
4.3.2 Level 1 Data Flow Diagram . . . . . . . . . . . . . . . . . 23
4.4 UML Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.4.1 Use-cases . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.4.2 Activity Diagram: . . . . . . . . . . . . . . . . . . . . . . 25
4.4.3 Sequence Diagram: . . . . . . . . . . . . . . . . . . . . . . 26
4.5 Tools and Technology Used . . . . . . . . . . . . . . . . . . . . . . 26
5 TESTING 29

5.1 Test Plans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30


5.2 Testing Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.3 Test Strategy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.3.1 Unit Testing: . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.3.2 Integration Testing: . . . . . . . . . . . . . . . . . . . . . . 31
5.3.3 Performance Testing: . . . . . . . . . . . . . . . . . . . . . 31
5.3.4 Regression Testing: . . . . . . . . . . . . . . . . . . . . . . 32
5.4 Test Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.5 Test Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6 RESULTS 34

6.1 Outcomes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
7 CONCLUSION 43

GHRIET, Department of Computer Engineering, 2021-2022 VII


8 REFERENCES 45
A APPENDIX A 47

A.1 PROBLEMSTATEMENT ...................... 48


A.2 NP-HARD,NP-COMPLETE..................... 48
B APPENDIX B 51

GHRIET, Department of Computer Engineering, 2021-2022 VIII


CHAPTER 1

INTRODUCTION
1.1 INTRODUCTION

India is an agricultural based Country where mostly people tend to do farming. As


a primary occupation there are lots of agricultural products yield every year on
differ-ent places all over in India though we required food product as a primary
need which all over come from farm and farmer’s headwork being by that in
today’s date there is no such thing which is useful for their betterment is sad truth
is Indian farmers are most ignored even if we called it as a country of farmers and
to overcome this, technological importance has been a great support for making
decisions in various fields especially in farming. The main aim of this system is to
accomplish farmer’s needs and make them fully independent in financial terms. E-
Agriculture is a stage for supporting marketing of agricultural products. This will
help to all those farmers who need to get exact value to their agricultural products
and end users need good precised´ rate of each product this will help farmer as
well as consumer to fulfill their need towards day-today life along with this poor
people who can’t even afford food for two times can get food from this platform
through government based NGO con-sumer who is willing to share their extra
food to prevent wastage of it can give by this platform. This paper we describes
the purpose of this online vegi -mart system is to help farmers to sell agricultural
products in convenient way and easy to use ap-plication for consumers who are
willing to buy it on daily basis by using data science technique we can able to do
so it. To make farmer- consumer relation far better with good estimation value of
product as well as fresh direct delivery of product up to certain distance.

1.2 OBJECTIVES OF PROJECT

Implementing a system with a web application, this provides product


informa-tion to farmers and end users.

To implement the system using data servers, which can available for
end users 24*7

To implement the platform independent application that can work in all


envi-ronments

GHRIET, Department of Computer Engineering, 2021-2022 2


1.3 ORGANIZATION OF PROJECT REPORT

Chapter 2 Deals with the Project Related Work i.e Literature Survey.

Chapter 3 Giving an overall view of the techniques used in the system

Chapter 4 Deals with System Design.

Chapter 5 Project Plan

Chapter 6 Implementation Part

Conclusion and at last references

GHRIET, Department of Computer Engineering, 2021-2022 3


CHAPTER 2

LITERATURE SURVEY
2.1 LITERATURE SURVEY

Described there experience with technologies to change the logistics of food


surplus, at various stages of the supply chain. Technologies, when paired with the
activity of volunteers can effectively increase the recoverability of food surplus,
reducing the Management Intensity of collecting donations. However, where food
is available in small quantities and often close to the expiration date it is
necessary to work on the reduction of food waste by increasing awareness.

In [2]The important factors were developed more sustainable supply


chains are iden-tified as the type of supply chain involved and the
individual business attitude to ex-tending responsibility for product quality
into social and environmental performance within their own supply chains.

Prposed[3] System presents a methodology to estimate donations for non-


profit hunger relief organizations. They developed a simulation model to
determine the expected quantity of food donations received per month in a
multi-warehouse distribution net-work. The simulation model is based on a
state-space model for exponential smooth-ing.

In [4] A software system was been developed for helping restaurants and food

deliv-ery companies. Users can create individual or group orders through the web

inter-face. The menus, restaurants, users, and orders can be managed by the

administra-tors. The delivery process was supported by the Android application.

Proposed Systems [5] aims at designing was to design an Automated Food Deliv-ery

System to overcome this problem. The new proposed system structure consists of

colour lines that are drawn on the restaurant ground and they link all tables to the

kitchen serving as a guiding track; a robot that is in sync with the ordering sys-tem will

serve. When customers place their order through the ordering system, the system will

send the order to the kitchen. Once the dish is prepared, a signal will be sent to the

robot then robot will then deliver it to the specific table and return to

GHRIET, Department of Computer Engineering, 2021-2022 5


the kitchen and send a feedback signal to the ordering system as a
confirmation of delivery.

Proposes[6] smartphone based no food waste supply chain is for the


urban Areas city with option for communication using mobile and web
technologies for waste food supply chain and response. This may help for
fast and efficient to deliver food to those who need it.

GHRIET, Department of Computer Engineering, 2021-2022 6


CHAPTER 3

SOFTWARE REQUIREMENT
SPECIFICATION
3.1 INTRODUCTION

This software requirement specification (SRS) report expresses complete


description about proposed System. This document includes all the functions
and specifications with their explanations to solve related problems.

3.1.1 Problem Statement

E-agriculture is a stage for supporting marketing of agricultural products. This will help

to all those farmers who need to get exact value to their agricultural products and end

users need good precised´ rate of each product. This will help for the betterment of

their day today lives along with these it used to support poor people to feed them who

need it. Different government based NGO work for them for that they reach to those

people who have extra food (which they used to waste previously) can share eatable

food to NGO to fulfill their basic need and also to prevent food wastage

3.1.2 User Classes and Characteristics

Basic knowledge of using computers is adequate to use this application.

Knowledge of how to use a mouse or keyboard and internet browser is


neces-sary.

The user interface will be friendly enough to guide the user.

3.1.3 Assumptions and Dependencies

Assumptions:

The product must have an interface which is simple enough to


under-stand.

All the software such as python, mysql, php are installed and
running on the computers

Dependencies:

GHRIET, Department of Computer Engineering, 2021-2022 8


All necessary software’s are available for implementing and use of
the system.

The proposed system would be designed, developed and implemented based

on the software requirements specifications document.

End users should have basic knowledge of computer and we also


assure that the users will be given software training
documentation and refer-ence material.

3.2 FUNCTIONAL REQUIREMENT

3.2.1 System Feature 1(Functional Requirement)

Functional requirement describes features, functioning, and usage of a product/system

or software from the perspective of the product and its user. Functional requirements

are also called as functional specifications were synonym for specification is design.

Provide User friendly Interface and Interactive as per standards.

3.3 NON-FUNCTIONAL REQUIREMENT

3.3.1 Performance Requirements

High Speed :- System should process requested task in parallel for various action

to give quick response. Then system must wait for process completion.

Accuracy :- System should correctly execute process, display the result


accu-rately. System output should be in user required format.

3.3.2 Safety Requirements:

The data safety must be ensured by arranging for a secure and reliable
transmission media. The source and destination information must be
entered correctly to avoid any misuse or malfunctioning. Password
generated by user is consisting of charac-ters, special character number
so that password is difficult to hack. So, that user account is safe.

GHRIET, Department of Computer Engineering, 2021-2022 9


3.3.3 Security Requirements

Secure access of confidential data (user’s details). Information security means


pro-tecting information and information systems from unauthorized access, use,
disclo-sure, disruption, modification or destruction.The terms information security,
com-puter security and information assurance are frequently incorrectly used
interchange-ably. These fields are interrelated often and share the common goals
of protecting the confidentiality, integrity and availability of information; however,
there are some subtle differences between them.

3.3.4 Software Quality Attributes

Runtime System Qualities: Runtime System Qualities can be measured


as the system executes.

Functionality: The ability of the system to do the work for which it was in-
tended.

Performance:The response time, utilization, and throughput behavior of the system.

Not to be confused with human performance or system delivery time.

Security:A measure of systems ability to resist unauthorized attempts at usage or

behavior modification, while still providing service to legitimate users.

Availability: (Reliability quality attributes falls under this category) the


mea-sure of time that the system is up and running correctly; the
length of time between failures and the length of time needed to
resume operation after a failure.

Usability: The ease of use and of training the end users of the system. Sub

qualities: learn ability, efficiency, affect, helpfulness, control.

Interoperability: The ability of two or more systems to cooperate at runtime.

GHRIET, Department of Computer Engineering, 2021-2022 10


3.4 SYSTEM REQUIREMENT

3.4.1 Software Requirements(Platform Choice)

Tools - Python IDE

Programming Language - Python ,PHP

Software Version - Python 3.5

3.4.2 Hardware Requirements

Processor - Pentium IV/Intel I3 core

Speed - 1.1 GHz

RAM - 512 MB (min)

Hard Disk - 20GB

Keyboard - Standard Keyboard

Mouse - Two or Three Button Mouse

Monitor - LED Monitor

3.5 ANALYSIS MODELS: (SDLC MODEL TO BE APPLIED)

One of the basic notions of the software development process is SDLC


models which stands for Software Development Life Cycle models. SDLC is a
continuous process, which starts from the moment, when its made a decision
to launch the project, and it ends at the moment of its full remove from the
exploitation. There is no one sin-gle SDLC model. They are divided into main
groups, each with its features and weaknesses. Evolving from the first and
oldest waterfall SDLC model, their variety significantly expanded.

The SDLC models diversity is predetermined by the wide number of product types

starting with a web application development to a complex medical software. And

GHRIET, Department of Computer Engineering, 2021-2022 11


if you take one of the SDLC models mentioned below as the basis in any case, it

should be adjusted to the features of the product, project, and company. The

most used, popular and important SDLC models are given below:

Waterfall Model

Iterative Model

Spiral Model

V-shaped Model

Agile Model

GHRIET, Department of Computer Engineering, 2021-2022 12


3.6 SYSTEM IMPLEMENTATION PLAN
3.6.1 Project Estimates

3.6.1.1 Effort Estimate Table:

Task Effort weeks Deliverables Milestones


Analysis of existing systems 4 weeks
& compare with proposed
one
Literature survey 1 weeks
Designing & planning 2 weeks
System flow 1 weeks
Designing modules & its´ de- 2 week Modules: design
liverables document
Implementation 7 weeks Primary system
Testing 4 weeks Test Reports Formal
Documentation 2 weeks Complete project Formal
report

Table 3.1: Effort Estimate Table

GHRIET, Department of Computer Engineering, 2021-2022 13


3.7 TIME LINE CHART

Phase Task Description


Phase 1 Analysis Analyse the information given in the IEEE pa-
per.
Phase 2 Literature survey Collect raw data and elaborate on literature sur-
veys.
Phase 3 Design Assign the module and design the process flow
control.
Phase 4 Implementation Implement the code for all the modules and in-
tegrate all the modules.
Phase 5 Testing Test the code and overall process weather the
process works properly.
Phase 6 Documentation Prepare the document for this project with con-
clusion and future enhancement.

Table 3.2: Project Scheduling

Figure 3.2: Time Line Chart

GHRIET, Department of Computer Engineering, 2021-2022 14


CHAPTER 4

SYSTEM DESIGN
4.1 SYSTEM ARCHITECTURE

Figure 4.1: Block Diagram

The proposed system is been developed using php and python


techniques. further is a brief description of modules included in the system.

Farmer Function:

– Upload vegetable details:


Farmers can upload vegetable, fruits details like expire date,
upload images

– View notification:
If a request is made by a Customer for buying vegetable or fruits, a
notification will pop up

– Accept/reject order:
When customer is request for a product a farmer can accept or
reject the order

Consumer Function:

– Get all details of product:


In customer side buyer can see the product details like image of
product, expire date, price per Kg,

– Send request and place order:


When a customer places an order or send a request then the
farmer get the notification regarding this and on the farmer side they
have the privilege of accepting or rejecting the request

GHRIET, Department of Computer Engineering, 2021-2022 16


NGO Function:

– View notification: In this part NGO’s get notification regarding the


product before hand only so it doesn’t go to waste

Response sequence:

– Add details of product and get order from consumer

– Place order -send request to farmer

– Delete food as per time/limit

GHRIET, Department of Computer Engineering, 2021-2022 17


4.2 ALGORITHM

4.2.1 SVM

A support vector machine (SVM) is a supervised machine learning algorithm that can

be used for both classification and regression purposes. SVM are mostly used in

classification problems. SVM are founded on the idea of finding a hyperplane that

best divides a dataset into two classes. Support vectors are the data points nearest to

the hyperplane, the points of a data set that, if deleted, would alter the position of the

dividing hyperplane. Because of this, they can be considered the critical elements of a

data set. The distance between the hyperplane and the nearest data point from either

set is known as the margin. The aim is to choose a hyperplane with the greatest

possible margin between the hyperplane and any point within the training set, giving a

higher chance of new data being classified correctly

Examples of SVM boundaries Selecting best hyperplane for our classification. We

will show data from 2 classes. The classes represented by triangle and circle .

Case 1 Consider the case in Fig 1, with data from 2 different classes. Now, we wish to

find the best hyperplane which can separate the two classes. Please check Fig

On the right to find which hyperplane best suit this use case. In SVM, we try to

maximize the distance between hyperplane nearest data point. This is known as

margin. Since 1st decision boundary is maximizing the distance between classes

on left and right. So, our maximum margin hyperplane will be “1st “.

Case 2 Consider the case in Fig 2, with data from 2 different classes. Now, we wish to

find the best hyperplane which can separate the two classes. As data of each class is

distributed either on left or right. Our motive is to select hyperplane which can

GHRIET, Department of Computer Engineering, 2021-2022 18


Figure 4.2: case 1
separate the classes with maximum margin. In this case, all the decision
boundaries are separating classes but only 1st decision boundary is
showing maximum margin between

Figure 4.3: case 2

Case 3: Consider the case in Fig 3, with data from 2 different classes. Now, we
wish to find the best hyperplane which can separate the two classes. Data is not
evenly distributed on left and right. Some of the are on right too. You may feel we
can ignore the two data points above 3rd hyperplane but that would be incorrect.
SVM tries to find out maximum margin hyperplane but gives first priority to correct
classification. 1st decision boundary is separating some from but not all. It’s not
even showing good margin. 2nd decision boundary is separating the data points
similar to 1st boundary but here margin between boundary and data points is
larger than the previous case.3rd decision boundary is separating all from all
classes. So, SVM will select 3rd hyperplane.

GHRIET, Department of Computer Engineering, 2021-2022 19


Figure 4.4: case 3
Case 4:
Consider the figure 4, we will learn about outliers in SVM. We wish to find the best
hyperplane which can separate the two classes.Data is not evenly distributed on
left and right. Some of the are on right too. In the real world, you may find few
values that correspond to extreme cases i.e., exceptions. These exceptions are
known as Outliers. SVM have the capability to detect and ignore outliers. In the
image, 2 are in between the group of . These are outliers.While selecting
hyperplane, SVM will automatically ignore these and select best-performing
hyperplane.1st 2nd decision boundaries are separating classes but 1st decision
boundary shows maximum margin in between boundary and support vectors.
s

Figure 4.5: case 4

GHRIET, Department of Computer Engineering, 2021-2022 20


Case 5:
We will learn about non-linear classifiers. Please check the figure 5 on right.
It’s showing that data can’t be separated by any straight line, i.e, data is not
linearly separable. SVM possess the option of using Non-Linear classifier. We
can use dif-ferent types of kernels like Radial Basis Function Kernel,
Polynomial kernel etc. We have shown a decision boundary separating both
the classes. This decision boundary resembles a parabola.

Figure 4.6: case 5

GHRIET, Department of Computer Engineering, 2021-2022 21


4.3 DATA FLOW DIAGRAM

4.3.1 Level 0 Data Flow Diagram

Figure 4.7: DFD Level 0

4.3.2 Level 1 Data Flow Diagram

Figure 4.8: DFD Level 1

GHRIET, Department of Computer Engineering, 2021-2022 22


4.4 UML DIAGRAM

4.4.1 Use-cases

Figure 4.9: UseCase Diagram

GHRIET, Department of Computer Engineering, 2021-2022 23


4.4.2 Activity Diagram:

Figure 4.10: Activity Diagram

GHRIET, Department of Computer Engineering, 2021-2022 24


4.4.3 Sequence Diagram:

Figure 4.11: Sequence Diagram

4.5 TOOLS AND TECHNOLOGY USED

Python

Python is an interpreted, high-level, general-purpose programming language. Cre-

ated by Guido van Rossum and first released in 1991, Python has a design philoso-

phy that emphasizes code readability, notably using signifficant whitespace. It pro-

GHRIET, Department of Computer Engineering, 2021-2022 25


vides constructs that enable clear programming on both small and large

scales.Van Rossum led the language community until July 2018. Python is

dynamically typed and garbage-collected. It supports multiple programming

paradigms, including pro-cedural, object-oriented, and functional programming.

Python features a comprehensive standard library, and is referred to as


”batteries in-cluded”. Python interpreters are available for many operating
systems. CPython, the reference implementation of Python, is open-
source software and has a community-based development model. Python
and CPython are managed by the non-profit Python Software Foundation.

Python is a general-purpose object-oriented programming language with


high-level programming capabilities. It has become famous because of its
apparent and easily understandable syntax, portability and easy to learn.
Python is a programming lan-guage that includes features of C and Java.
It provides the style of writing an elegant code like C, and for object-
oriented programming, it offers classes and objects like Java.

Python was developed in the late eighties, i.e., late 1980’s by Guido
van Rossum at the National Research Institute for Mathematics and
Computer Sci-ence in the Netherlands as a successor of ABC
language capable of exception handling and interfacing.

Python is derived from programming languages such as ABC, Modula


3, small talk, Algol-68. Van Rossum picked the name Python for the
new language from a TV show, Monty Python’s Flying Circus.

Python page is a file with a .py extension that contains could be the
combina-tion of HTML Tags and Python scripts.

In December 1989 the creator developed the 1st python interpreter as


a hobby and then on 16 October 2000, Python 2.0 was released with
many new fea-tures. On 3rd December 2008, Python 3.0 was
released with more testing and includes new features.

GHRIET, Department of Computer Engineering, 2021-2022 26


Python is an open source scripting language., which means that anyone
can download it freely from www.python.org and use it to develop
programs. Its source code can be accessed and modified as required in
the project.Python is one of the official languages at Google.

Features of Python

Easy to Learn and Use. Python is easy to learn and use.

Expressive Language. Python language is more expressive means that it


is more understandable and readable.

Interpreted Language.

Cross-platform Language.

Free and Open Source.

Object-Oriented Language.

Extensible.

Large Standard Library.

GHRIET, Department of Computer Engineering, 2021-2022 27


CHAPTER 5

TESTING
5.1 TEST PLANS

A system should always be tested thoroughly before implementing it, as regards its

individual programs. This is because implementing a new system is a major job which

a lot of man hours and a lot of other resources, so an error not detected be-fore

implementation may cost a lot. Effective testing early in the process translates directly

into long term cost saving from reduced number of errors. This is also necessary

because in some cases, a small error is not detected and corrected before

installation, which may explode into much larger problem. Programming and testing is

followed by the stage of installing the new computer based system. Actual imple-

mentation of the system can begin at this point using either a parallel or a direct

changeover plan, or some blend of two. Testing and implementation of fire fighting

robot controlled using android application is carried out as below. Software testing is a

critical element of Software Quality Assurance(SQA) and represents the ulti-mate

review of specification, design and coding. The purpose of product testing is to verify

and validate the various work products viz. units, integrate unit, final product to ensure

that they meet their respective requirements.

5.2 TESTING PROCEDURE

Software Testing is the critical element of the Software Quality Assurance and repre-

sents the ultimate review of specification, design and coding. Testing is the process of

checking whether software works according to the specification. Testing will be

performed by running the program using the test data. Testing is vital to the success

of the system. It will also test whether the system identifies the problem correctly.

System is tested by following steps:

Unit Testing: Each program is tested individually using dummy records


to see whether that program produce satisfactory reports.

Sequential Testing: The program, whose output will affect the processing done

by another program, will be tested using dummy records. Testing:


The system is corrected in such a way that it does not affect the
forced system failure. This testing is done with low volumes of data

GHRIET, Department of Computer Engineering, 2021-2022 29


5.3 TEST STRATEGY

The test strategy consists of a series of different tests that will fully
exercise the sys-tem. The primary purpose of the test is to uncover the
system limitations. Following are the several tests that will be conducted:

5.3.1 Unit Testing:

Testing conducted to verify the implementation of the design for one software
el-ement (e.g., unit, module) is called unit testing. The purpose of unit testing
is to ensure that the program logic is complete and correct and ensuring that
the com-ponent works as designed. In this module, each unit will go through
Unit testing after the completion of the module. The bugs in module testing will
be reported in Test Log document and will be reported to the developers. After
fixing the bug suc-cessfully, one more iteration of module testing (Regression
Testing) is done. This process is repeated till all critical test cases pass.

5.3.2 Integration Testing:

Testing conducted in which software elements, hardware elements, or both are com-

bined and tested until the entire system has been integrated. The purpose of integra-

tion testing is to ensure that design objectives are met and ensures that the software,

as a complete entity, complies with operational requirements. This type of testing will

be done after all module test cases are passed through module testing, security

testing, performance testing, user interface testing and regression testing

5.3.3 Performance Testing:

In developing the system, we are going to use Java which will reduce the response

time. In Performance Testing, We are going to test Response time for each Screen. It

is a type of non-functional testing. Performance testing is testing that is performed; to

determine how fast some aspect of a system performs under a particular work-load. It

can serve different purposes like it can demonstrate that the system meets

performance criteria. It can compare two systems to find which performs better. Or

GHRIET, Department of Computer Engineering, 2021-2022 30


it can measure what part of the system or workload causes the system to
perform badly. This process can involve quantitative tests done in a lab,
such as measuring the response time or the number of MIPS (millions of
instructions per second) at which a system functions.

5.3.4 Regression Testing:

Testing done to ensure that, the changes to the application have not
adversely af-fected previously tested functionality. Here testing will take
care of the test cases passed during the first module testing will not be
affected in the subsequent rounds of module testing.

5.4 TEST CASES

The listed tests were conducted in the software at the various developments stages.

Unit testing was conducted. The errors were debugged and regression testing was

performed. The integration testing will be performed once the system is integrated

with other related systems like Inventory, Budget etc. Once the design stage was over

the Black Box and White Box Testing was performed on the entire application. The

results were analyzed and the appropriate alterations were made. The test results

proved to be positive and henceforth the application is feasible and test approved.

GHRIET, Department of Computer Engineering, 2021-2022 31


5.5 TEST RESULT

Table 5.1: Test Cases

Sr.No Description Test Case I/P Actual Result Expected Test Criteria (P/F)
1 Install Python Exe Should Proper P
Python get install Installed
properly
2 Installing Library Should Get Libarary P
Libraries command installed Installed
for install Success-
fully
3 Training Dataset Error in Trained F
Dataset Training Training Model
Model
4 Training Dataset Trained Trained P
Dataset Training Model Model
5 Login Cre- User Name Login Un- Unsuccessful F
dentials and Pass- successful Login
word
6 Login Cre- User Name Login Suc- Successful P
dentials and Pass- cessful Login
word
7 Password Current and Password Update P
New Pass- Updated Password
word
8 Prediction Data as in- Should Pre- Result Pre- P
put dict the re- dicted
sult

GHRIET, Department of Computer Engineering, 2021-2022 32


CHAPTER 6

RESULTS
6.1 OUTCOMES

Figure 6.1: System Welcome Page

Figure 6.2: Farmer Login Page

GHRIET, Department of Computer Engineering, 2021-2022 34


Figure 6.3: Farmer Registration Page

Figure 6.4: Farmer Home page

GHRIET, Department of Computer Engineering, 2021-2022 35


Figure 6.5: Adding New Product

Figure 6.6: Registration Page for Buyer

GHRIET, Department of Computer Engineering, 2021-2022 36


Figure 6.7: Buyer Login Page

Figure 6.8: Buyer Home Page

GHRIET, Department of Computer Engineering, 2021-2022 37


Figure 6.9: Items For Buying

Figure 6.10: Cart Page

GHRIET, Department of Computer Engineering, 2021-2022 38


Figure 6.11: Checkout Page

Figure 6.12: Notification After Adding Product

GHRIET, Department of Computer Engineering, 2021-2022 39


Figure 6.13: Transcation History

Figure 6.14: Form to Upload Remaining Food

GHRIET, Department of Computer Engineering, 2021-2022 40


Figure 6.15: NGO mail ID

Figure 6.16: Wastage Food Notification Via Mail

GHRIET, Department of Computer Engineering, 2021-2022 41


CHAPTER 7

CONCLUSION
Conclusion

With the proposed system we are able to implement an online system which would

help for selling and buying agricultural products with good cost estimation and safety

aspects in consideration also good quality of processed food for needy once with the

help of required software effectively for the farmer consumers and NGO and for hotels

so that the food is not wasted and may reach the needy peoples.

GHRIET, Department of Computer Engineering, 2021-2022 43


CHAPTER 8

REFERENCES
Cristina-Edina Domokos and Barna Sera, “Netfood: A software system
for food ordering and delivery”, IEEE 2018

Aaron Ciaghi and Adolfo Villafiorita , “beyond food sharing: supporting


food waste reduction with icts”, IEEE 2016

Yongchai Tan, Bentfei Lew , “A new automated food delivery system using
autonomous track guided centre-wheel drive robot” , IEEE 2010

Lauren davis , “Predicting donations using a forecasting-simulation


model” , Research Article

B. Gail Smith , “Developing sustainable food supply chains”, Research Article

Hitesh V. Raut , swapnil R. Rajput , dhananjay B. Nalawade,


“Smartphone based waste food supply chain for aurangabad city
using GIS location based and google web services ”, International
Journal of Research in Engineering and Technology 2016

GHRIET, Department of Computer Engineering, 2021-2022 45


ANNEXURE A

APPENDIX A
A.1 PROBLEM STATEMENT

The purpose of this project is to help to all those farmers who need to get exact
value to their agricultural products andend users need good pr ecised rate of each
product. This will help for the bettermentof their day today lives along with these it
used to support poor people to feed themwho need it. Different government
based NGO work for them for that they reach tothose people who have extra food
(which they used to waste previously) can shareeatable food to NGO to fulfill their
basic need and also to prevent food wastage

A.2 NP-HARD, NP-COMPLETE

P-type Problems:

In computational complexity theory, P, also known as PTIME or

DTIME(nO(1)), is one of the most fundamental complexity classes. It contains

all decision problems that can be solved by a deterministic Turing machine

using a poly-nomial amount of computation time, or polynomial time.

A language L is in P if and only if there exists a deterministic Turing

machine M, such that

M runs for polynomial time on all

inputs For all x in L, M outputs 1

For all x not in L, M outputs 0

P can also be viewed as a uniform family of boolean circuits. A language L

is in P if and only if there exists a polynomial-time uniform family of boolean

circuits Cn : n N,suchthat

For all n N,C takes n bits as input and out

puts1bit For all x in L, C—x—(x) = 1

For all x not in L, C—x—(x) = 0

GHRIET, Department of Computer Engineering, 2021-2022 47


NP-type Problems:-

In computational complexity theory, NP is one of the most fundamental com-

plexity classes. The abbreviation NP refers to ”nondeterministic polynomial

time.” Intuitively, NP is the set of all decision problems for which the instances

where the answer is ”yes” have efficiently verifiable proofs of the fact that the

answer is indeed ”yes”. More precisely, these proofs have to be verifiable in

polynomial time by a deterministic Turing machine. In an equivalent for-mal

definition, NP is the set of decision problems where the ”yes”-instances can be

accepted in polynomial time by a non-deterministic Turing machine. The

equivalence of the two definitions follows from the fact that an algo-rithm on

such a non-deterministic machine consists of two phases, the first of which

consists of a guess about the solution, which is generated in a non-

deterministic way, while the second consists of a deterministic algorithm that

verifies or rejects the guess as a valid solution to the problem.

NP Complete:-

An NP problem is one where a computer algorithm that verifies a solution can

be created in polynomial time. an NP-Complete problem is NP, but also if you

can solve it in polynomial time (called P) then all NP problems are P. The

easiest way to prove that some new problem is NP-complete is first to prove

that it is in NP, and then to reduce some known NP-complete problem to it.

Therefore, it is useful to know a variety of NP-complete problems.

NP hard:-

A decision problem H is NP-hard when for any problem L in NP, there is a


polynomial time reduction from L to H. An equivalent definition is to require
that any problem L in NP can be solved in polynomial time by an oracle ma-
chine with an oracle for H. Informally, we can think of an algorithm that can
call such an oracle machine as a subroutine for solving H, and solves L in

GHRIET, Department of Computer Engineering, 2021-2022 48


polynomial time, if the subroutine call takes only one step to
compute. An-other definition is to require that there is a polynomial-
time reduction from an NP-complete problem G to H. As any problem
L in NP reduces in polynomial time to G, L reduces in turn to H in
polynomial time so this new definition implies the previous one. It
does not restrict the class NP-hard to decision problems, for instance
it also includes search problems, or optimization prob-lems.

GHRIET, Department of Computer Engineering, 2021-2022 49


ANNEXURE B

APPENDIX B
Cristina-Edina Domokos and Barna Sera, “Netfood: A software system
for food ordering and delivery”, IEEE 2018

Aaron Ciaghi and Adolfo Villafiorita , “beyond food sharing: supporting


food waste reduction with icts”, IEEE 2016

Yongchai Tan, Bentfei Lew , “A new automated food delivery system using
autonomous track guided centre-wheel drive robot” , IEEE 2010

Lauren davis , “Predicting donations using a forecasting-simulation


model” , Research Article

B. Gail Smith , “Developing sustainable food supply chains”, Research Article

Hitesh V. Raut , swapnil R. Rajput , dhananjay B. Nalawade,


“Smartphone based waste food supply chain for aurangabad city
using GIS location based and google web services ”, International
Journal of Research in Engineering and Technology 2016

GHRIET, Department of Computer Engineering, 2021-2022 51

You might also like