Final Report PES1PG22CA011
Final Report PES1PG22CA011
Aishwarya H R - (PES1PG22CA011)
Feb. 2024 – June 2024
under the guidance of
Guide Details
Dr. S Thenmozhi
Professor
Department of Computer Applications,
CERTIFICATE
This is to certify that the project entitled
Aishwarya HR - (PES1PG22CA011)
in partial fulfillment for the completion of Capstone Project Phase-2 work in the
Program of Study MCA under rules and regulations of PES University, Bengaluru
during the period Feb. 2024 – June 2024. The project report has been approved as it
satisfies the academic requirements of 4th semester MCA.
PLACE: Bangalore
DATE: 19-06-2024
Aishwarya H R
ACKNOWLEDGEMENT
The successful completion of any task would be incomplete without mentioning the people
who made it possible.
I would like to express my deep sense of gratitude to the honourable Vice Chancellor of
PES University, Dr. J Suryaprasad, for giving the opportunity to work on this project.
I take this occasion to thank my sincere and heartfelt thanks to Chairperson, Department
of Computer Applications Dr.Veena S, for her motivation, support and for providing a
suitable working environment.
I extend my sincere thanks to our project coordinator Mr. Tamal Dey, Assistant
Professor, Department of Computer Applications, for providing schedule and timelines
and documenting information about project.
I would like to express my gratitude towards my parents for their kind cooperation and
encouragement which helped me in the completion of this project.
My thanks and appreciation to my friends for the constant support and people who have
willingly helped me out in this project.
ABSTRACT
Fashion is a means of expressing one’s self, emotions, and attitude. Online sales are a
rapidly growing element for many businesses. However, few industries utilise e-
commerce quite as much as the fashion industry. Clothing and footwear being high
involvement products in fashion industry, it is very difficult to make sales online as size
and fit are the most important criteria which influences the customer satisfaction. The
need for this type of system is that the present world has gradually begun to digitize
and everyone prefers online shopping as it saves lot of time. Especially in footwear
selection, many people go wrong because the foot size of a person varies from brand to
brand. Hence this type of detection will help people to find their perfect fit that allows
a smooth transaction from both ends.
This project proposes a Footwear Size Detection and Recommendation system which
uses OpenCV (Open-Source Computer Vision Library) based logic for calculation of
foot size. The web application is highly beneficial for customers who shop online
regularly. The user can upload their foot image and the logic will calculate the foot size
and display the size in Euro, UK, US and centimetres. This will serve as an advantage
for user to know their foot size in different scales. Recommendation system is also
developed in which the user can select footwear from different brands according to their
preference. Based on the user selection, the page will be directed to that brand and type
of footwear. The end users for this system will be customers who shop for footwear
online because it enables them to choose their perfect match without any hassle.
CONTENTS
ABSTRACT
LIST OF FIGURES
LIST OF TABLES
1. INTRODUCTION .................................................................................................................. 1
1.1 PROJECT DESCRIPTION............................................................................................... 2
2. LITERATURE SURVEY .......................................................................................................... 5
2.1 DOMAIN SURVEY ....................................................................................................... 5
2.2 RELATED WORKS ........................................................................................................ 7
2.3 EXISTING SYSTEM ....................................................................................................... 8
2.4 TECHNOLOGY SURVEY ............................................................................................... 8
2.5 FEASIBILITY STUDY ..................................................................................................... 8
3. HARDWARE AND SOFTWARE REQUIREMENTS ................................................................ 11
3.1 HARDWARE REQUIREMENTS ................................................................................... 11
3.2 SOFTWARE REQUIREMENTS .................................................................................... 11
4. SOFTWARE REQUIREMENTS SPECIFICATION ................................................................... 13
4.1 USERS ....................................................................................................................... 13
4.2 FUNCTIONAL REQUIREMENTS ................................................................................. 13
4.3 NON-FUNCTIONAL REQUIREMENTS ........................................................................ 14
5. SYSTEM DESIGN ............................................................................................................... 16
5.1 ARCHITECTURE DIAGRAM........................................................................................ 16
5.2 BLOCK DIAGRAM / CONTEXT FLOW DIAGRAM ....................................................... 17
6. DETAILED DESIGN ............................................................................................................ 19
6.1 PROCESS FLOW DIAGRAM WITH DESIGN METHODOLOGY ..................................... 19
6.2 METHODOLOGY ....................................................................................................... 20
7. IMPLEMENTATION ........................................................................................................... 25
7.1 PSEUDOCODE ........................................................................................................... 25
7.2 SCREENSHOT ............................................................................................................ 31
8. SOFTWARE TESTING......................................................................................................... 38
9. CONCLUSION.................................................................................................................... 42
10. FUTURE ENHANCEMENT .............................................................................................. 44
11. APPENDIX A .................................................................................................................. 46
12. PLAGIARIASM REPORT ................................................................................................. 49
13. POSTER ......................................................................................................................... 52
LIST OF FIGURES
1. INTRODUCTION
This chapter briefs us about the description of the proposed project along with the existing
system and its limitations. The purpose, scope and applicability of project is discussed in
detail.
Fashion is a form of self-expression which mostly defines one’s identity, moods, and
opinions, which might be in any form such as clothing, footwear, accessories etc. Recent
studies show that size and fit are the factors which are most influential that drives e-
commerce for customer’s satisfaction.
In fashion industry there is factor called ‘vanity sizing’ (also be termed as size inflation)
which is a phenomenon of using a ready to wear product of a nominal size but it increases
in physical size as time passes. This requires the brands to change the standardized size
specifications to target a particular set of customers. Due to the availability of so many
products that overlap size systems in the fashion industry, there is no longer a standard size
for any given product. When a product is compared with different brands and especially
when the product is related to fashion such as clothing or footwear there is no particular
method of conversion logic which is implemented to convert sizes from one to another. To
help customers find the right size, it is possible to guide them by providing size conversion
charts. Customers can convert their body measurements to the sizes of the product.
Additionally, size charts within a brand will always suffer from high variation, even if the
consumer provides their correct measurements. In this fast-moving fashion industry, the
designers of a brand try hard to compete and win against various fashion brands by offering
customers with the latest trends at reasonable and competitive prices. And further keeping
in mind the cost and design factors, and also same type of products with different attributes
There are many other factors that make size detection essential for fashion e-commerce
platforms. To develop data-driven systems and in order to provide fit and size advice to
their customers, we propose a computer vision-based content-collaborative methodology
to get personalized size and fit detection and also recommend the product of the same
resulting foot size of a desired brand. We hereby propose a logic that calculates the size of
foot and filters the footwear of a desired brand which only rely on interaction data to model
customer behaviour. The method used for this kind of measurement is based on 3D
construction which uses some materials like structured light and plantar scanner in order to
get the information about foot. And the foot information is obtained by splicing and
measuring the common parameters. Though this technique gives high accuracy, it is not
suitable to implement on a large scale as this involves working with expensive equipment
and takes a long-time consumption. So, the idea of measuring the foot based on pictures
came to light so that this process does not need any method of reconstructing the 3D shape
of foot and this process is also more convenient than that 3D measuring. The whole
measuring can be done by only clicking pictures. The logic detects edges, with more
accurate and efficient foot measurement methods. And by a particular algorithm we process
the edge information of the image, and use the traditional OpenCV algorithm to separate
the foot from the background of image to calculate the size.
As a statement made by Nike, “Three out of five people are likely to wear the wrong sized
shoe”. Our web application tries to address this problem. The web application is developed
in such way that it can replace the role of a shoe salesperson by providing the right sized
shoes to the customers. Here we measure the size of foot by using a picture captured with
a mobile phone or camera and based on the clicked picture we determine the appropriate
shoe size. The logic allows us to calculate the length, width and height of foot, making it
PES University Department of Computer Applications 2
FIND YOUR FIT 2023-2024
easier to calculate the size of the shoes in the hope of reducing the number of return products
with wrong sizes and ultimately increasing the user satisfaction.
Designed primarily for online shoes, this technology allows to accurately match different
styles of shoes which will reduce the number of shoes returned back to the retailer. There
are many concerns like either returning or exchange of the products and due to this high
rate of return, many shoe retailers make less money from online sales. Our webpage
recommends the appropriate size for shoes or type of footwear based on us oers choice.
The main focus is on user comfort on different parts of the foot, such as the toes, heels,
soles and insteps.
PURPOSE
This project aims to revolutionize fashion e-commerce by detecting foot size from user-
uploaded images. The core objective is to enhance the online shopping experience by
offering personalized footwear recommendations based on calculated foot size and user
brand preferences. With the innovative image processing techniques, the platform provides
accurate sizing, and makes the website more engaging and offers a customer-centric
shopping environment. The website seeks to improve customer satisfaction with provide a
best selection process and merge the user-specific preference with accurate foot
measurements. At the end the project aims to transform the way consumers find and buy
shoes on the internet, by maximizing the convergence of fashion and technology in the e-
commerce domain.
SCOPE
This project focuses on 2D image-based detection of human foot size. This leads to some
challenges in appropriately fitting a range of foot forms and sizes. Because each person’s
foot anatomy is unique, since it varies it might not work for everyone, which would affect
its accuracy and usefulness. It is important to consider that different users may experience
different levels of accuracy in foot sizes recognition. Thus, the research emphasizes clarity
regarding its limits in addressing the complete range of foot variability. It also gives
significant insights into automated foot sizing from uploaded images.
2. LITERATURE SURVEY
This chapter provides an overview of the many shoe sizing systems that are in use around
the world. Some of the systems are used in the US, Great Britain, Continental Europe, and
the UK, as well as the measurement techniques unique to each of these regions. It also
presents the recently suggested BHA system, specifically used, and is designed for Indian
population. To increase shoe fitting accuracy and comfort, it also examines relevant
literature and current technological advancements that improve footwear size recognition
and recommendation.
One barleycorn equals 1/3 of an inch. So, a shoe size of 1 would be one barleycorn longer
than a shoe size 0.
US and UK shoe sizes are measured in barleycorns, which are roughly 1/3 in length.
However, the US starts counting from 1, so US sizes are 1 unit larger than their UK
equivalents. That is to say, a US10 is the same length as a UK9, which are both 1/3 longer
than a US9 and UK8.
The continental european system uses the mondopoint length system, which is based on the
length of the foot in millimeters. It is widely used in europe and other parts of the world.
The sizes are based on the actual length of the foot, making it a more precise measurement
system.
The great britain shoe size system is similar to the US system, as both are derived from the
length of the brannock device. Zero-point measurement is the length of the brannock
device. It is 1/72 of an inch.
The Central Leather Research Institute (CLRI) in collaboration with the Department for
Promotion of Industry and Internal Trade (DPIIT) led this initiative which aims to create
footwear that fits better and more comfortable for the Indian population.
There are several benefits and advantages from this proposal. It brings Improved Fit
compared to footwear based on European, US and UK moulds. It enhances the Comfort for
its users by reducing the issues like blisters, foot pain and poor blood circulation thus
bringing down the all-possible health problems in vulnerable groups such as elderly people
and diabetics. It introduces a Unified Sizing system which standardizes the shoe sizing in
India thus simplifying the process of finding the right shoe size for consumers.
The BHA has its own disadvantages since it is in its Initial phase. Implementing the new
sizing system will require a lot of time and effort from manufacturers, retailers, and
consumers to adapt to the changes. The BHA system could be expensive as well since it
involves redesigning and producing the shoes according to new BHA sizes. High
competition from established brands may resist this new sizing system.
The BHA has high future scope, as consumer become aware of this BHA system it is certain
that they will adopt this Indian sizing system. Also, other countries can adopt it for its major
advantages leading to a potential global impact.
Advances in 3D printing and custom footwear production might lead the BHA system to
offer personalized shoe solutions for its consumers.
Thus, it can be concluded that the BHA shoe-sizing system represents a significant step
forward in addressing the specific needs of the Indian population. By providing better-
fitting and more comfortable footwear, BHA has the potential to improve foot health,
enhance consumer satisfaction, and set new standards in the footwear industry.
Emily Yim Lee Au and Ravindra S. Goonetilleke [7] in their study say that by using two
models they were able to predict footwear fit by considering foot-shoe dimension
difference in toe. Also, a polynomial relation was built to predict preference rating from
this footwear fit where the quality of fit will also be evaluated. Damir Omrcen and Ales
Jurca [8] share their innovative shoe size recommendation system which is based on foot
measurements that significantly increase accuracy of recommendation. Finally, they also
shared their future work on further development of this recommendation system where
instead of using foot scanners a self-foot measurement would provide a good solution.
Nike Fit: It recommends best shoe sizes when the user scan their feet using the Nike app.
It uses various concepts such as computer vision, artificial intelligence, machine learning,
data science and recommends accurate size recommendation.
True Fit: It is a platform which integrates various e-commerce sites. It also uses large
database of clothing and shoe sizes, combined with user feedback, and recommend the best
fit for the shoppers.
FeetSizr: It provides a 3D foot scanning technology and it is used by the users in their
homes through mobile apps. The app provides size recommendations based on the scanned
data and aims to improve online shoe shopping accuracy by providing a detailed fit
analysis.
Processor: Intel(R) Core (TM) i3-6006U CPU @ 2.00GHz, 2000 MHz, 2 Core(s),
4 Logical Processor(s) and higher.
System Type: x64-based PC and higher.
RAM: Minimum of 8GB is recommended.
System Memory: 512 GB SSD or 1 TB HDD.
4.1 USERS
With the foot size identification, the website is designed to accommodate a wide range of
users with various needs and interest. These users include consumers and online shoppers
seeking accurate measurements, shoe manufacturers wishing to integrate foot size detection
technology into their manufacturing processes, and retailers and e-commerce sites hoping
to enhance customer experience and reduce return rates. Researchers and developers
studying or developing foot size detection techniques and applications in fields such as
computer vision and artificial intelligence may also find the website useful. Lastly, casual
visitors who are interested in foot size detection technology or machine learning
applications in everyday life may find the website useful. The website seeks to provide
precise outcomes and is user-friendly to the users.
Foot Size Detection: The system can precisely determine the size of the foot by using the
foot image by the user. This size detection calculates the foot size and displays the size in
centimetres, euros, pounds, and US.
User Interface Integration: Provide an easy-to-use interface and makes it possible for
users to upload pictures of their feet. The system provides guidelines for capturing images
gives an easy-to-use interface which identifies the foot size and recommends brands to the
user.
5. SYSTEM DESIGN
This chapter describes how the system is designed using two diagrams namely Architecture
diagram and Context flow diagram. This shoe size recommendation website utilizes a 3-
tier client-server architecture. This document details the architecture and interaction
between the user interface, processing logic, and data storage components.
6. DETAILED DESIGN
In this chapter the detailed design of the shoe size detection and recommendation system
explores the methodology used for image pre-processing, foot detection through
segmentation and edge detection, and size calculation. Additionally, the design
incorporates a user-friendly recommendation system for footwear selection.
The overlayed image is fed into Edge Detection function again to crop the foot alone
excluding the paper (Fig 6.2.7). Once the foot and paper edges are extracted, Fbound Rect
function is applied on foot and paper to calculate the height and width of images. Based
on height and width, distance metric is used to compute the size of the foot.
7. IMPLEMENTATION
This chapter consists of Pseudo code and provides a visual walkthrough of the user
experience, allowing you to see the website's functionalities in action. It includes Home
page, Login page, profile Page, sign up page, Profile page, size Detection pages and
Recommendation page
7.1 PSEUDOCODE
def size(request):
if request.method == 'POST':
p_form =
footimage(request.POST,request.FILES,instance=request.user.footimage)
if p_form.is_valid():
p_form.save()
messages.success(request, 'Here are your results')
a = p_form.cleaned_data.get("image")
oimg = p_form
preprocessedOimg = preprocess(a)
clusteredImg = kMeans_cluster(preprocessedOimg)
edgedImg = edgeDetection(clusteredImg)
boundRect, contours, contours_poly, img = getBoundingBox(edgedImg)
pdraw = drawCnt(boundRect[1], contours, contours_poly, img)
croppedImg, pcropedImg = cropOrig(boundRect[1], clusteredImg)
newImg = overlayImage(croppedImg, pcropedImg)
fedged = edgeDetection(newImg)
fboundRect, fcnt, fcntpoly, fimg = getBoundingBox(fedged)
fdraw = drawCnt(fboundRect[2], fcnt, fcntpoly, fimg)
output = calcFeetSize(pcropedImg, fboundRect)/10
output_m = output
output_w = output
output_m = round(output_m, 2)
output_w = round(output_w, 2)
sizes = [
{
'Gender' : "Male",
'UK_Size': UK_M,
'US_Size': US_M,
'Euro_Size': Euro_M,
'Centimeters' : output_m
},
{
'Gender' : "Female",
'UK_Size': UK_W,
'US_Size': US_W,
'Euro_Size': Euro_W,
'Centimeters': output_w
}
]
context = {'sizes':sizes}
return render(request,'Prediction/output.html',context)
else:
p_form = footimage(instance=request.user.profile)
7.2 SCREENSHOT
The home page includes several navigation bars such as Home, About, Profile, Logout,
Know Your Size, and Recommendation sections. It also has a "Contact Us" button, inviting
users to reach out for more information or assistance
The page is titled "LOG IN" and features fields for users to enter their username and
password, along with a "Login" button to submit their credentials. Below the login form,
there's a prompt that says "Need An Account? Sign In," directing new users to create an
account if they do not have one.
The Sign-Up page is designed for new users to create an account. t includes form fields
for entering a username, email, password, and password confirmation. The username
field allows up to 150 characters, including letters, digits, and certain special characters.
The password field specifies requirements: it must be at least 8 characters long, not
similar to other personal information, not a commonly used password, and not entirely
numeric.
The Profile page is designed to maintain the information of the user. This provides
personalization. It saves the name, email id and image of the User. The user can update
the information anytime in the website.
The Know your Size page will have an option for the user to upload his/her Foot image.
The image which is to be uploaded by the user should satisfy several conditions. The image
should have its foot at the center touching at one edge only, Image must be captured from
the top angle, Paper and background must be of different colours. It also has a Submit
Button. The user can upload the image and submit it. It displays a alert message requesting
the user to wait for some time.
The image displays a size chart for shoes, indicating different sizes based on gender.
For males, a US size 7 corresponds to UK size 6.5, Euro size 40, and 24.72 centimetres.
For females, a US size 8.5 is equivalent to UK size 6.5, Euro size 39, and also
24.72 centimetres.
PES University Department of Computer Applications 34
FIND YOUR FIT 2023-2024
The image shows a shoe recommendation interface where users can select their gender,
preferred brand, type of wear, and shoe size. In this instance, the selected options are Male,
Bata brand, Sports wear, and size 7, with a submission button leading to a recommendation
link for the specified criteria.
The image shows a sandals recommendation interface where users can select their gender,
preferred brand, type of wear, and shoe size. In this instance, the selected options are
Female, Puma brand, sandals, and size 9, with a submission button leading to a
recommendation link for the specified criteria.
The image describes the Django admin page. Here all the admin privileges can be seen.
The admin has authority to create new group, users. Admin can delete them as well. The
recent actions of the admin will be displayed under recent actions. The red cross mark
means the admin has removed the user and green tick mark means the admin has added the
user.
The Logout page will logout the user from the website FIND YOUR FIT. Also it has a
option which provides the user a chance to login again if the user wish to.
8. SOFTWARE TESTING
This chapter discusses about various test cases and the approaches used for testing the
model.
Test Case ID: Test Plan Expected Actual Result Pass / Fail
Result
TC001 Registration Sign up Same as Pass
successful expected
TC002 Sign Up with User with Same as Pass
same name name already expected
exists
TC003 Password similar The password Same as Pass
to user name is too similar expected
to the
username.
TC004 Password less This password Same as Pass
than 8 characters is too short. It expected
must contain
at least 8
characters
TC005 Password is This password Same as Pass
numeric is entirely expected
numeric.
TC006 Different The two Same as Pass
passwords during password expected
confirmation fields didn’t
match.
TC007 Login with Please enter a Same as Pass
unregistered user correct expected
username and
password.
Note that both
Quantified Accuracy: This results in an 80% accuracy rate, highlighting the model's
effectiveness in detecting foot measurements from user-provided images.
Further Improvement: While the model excels in most cases, refinement and
optimization efforts may be needed to address the remaining 20% of inaccuracies.
9. CONCLUSION
In summary, our project offers several benefits that enhance the user experience. The
website's simplicity ensures ease of use, with updates reflecting instantly across the
platform. The conversion of foot sizes into various measurements like Euro, UK, and
US sizes provides users with valuable information, making their shopping experience
more convenient. Also, the secure storage of user-uploaded pictures ensures data
privacy and builds trust among the users. Additionally, the integration of foot detection
with a recommendation system adds another layer of personalization, catering to
individual preferences. However, certain limitations, such as specific image capture
requirements and the need for repetitive uploads are some of the present challenges
that need addressing. By overcoming these hurdles, we can further improve our project
and make it even more attractive to users seeking accurate foot size detection and
seamless online shopping experiences.
11. APPENDIX A
PAPER REFERENCES
[1] A.-S. Sheikh et al., “A Deep Learning System for Predicting Size and Fit
in Fashion E-Commerce,” Proceedings of the 13th ACM Conference on
Recommender Systems, pp. 110–118, Sep. 2019, doi:
10.1145/3298689.3347006.
[2] Gunseli Yalcinkaya, “Nike app uses AR and AI to scan feet for perfect
fit,” Dezeen, May 09, 2019. https://www.dezeen.com/2019/05/09/nike-fit-app-
ar-ai-trainers/
[3] Wevolver, “Computer vision for virtual footwear fitting and shoe size
suggestion,” 1651. https://www.wevolver.com/article/computer-vision-for-
virtual-footwear-fitting-and-shoe-size-suggestion (accessed Jul. 29, 2022).
[4] A.-S. Sheikh et al., “A deep learning system for predicting size and fit in fashion
e-commerce,” in Proceedings of the 13th ACM Conference on Recommender
Systems, 2019.
[8] D. Omrcen and A. Jurca, “Shoe size recommendation system based on shoe
inner dimension measurement,” in Proceedings of the 2nd International Conference
on 3D Body Scanning Technologies, Lugano, Switzerland, 25-26 October 2011,
2011.
WEB REFERENCES
[9] Foot-scanning-app (no date) Find Me A Shoe. Available at:
https://findmeashoe.com/foot-scanning-
app/#:~:text=Findmeashoe%20foot%20scanner%20app%20allows,ordering%20th
e%20best%20fitting%20shoe. (Accessed: 03 June 2024).
[10] Connecting Foot and shoe fitting together (no date) Connecting Foot and Shoe
Fitting Together | Shoefitr.io. Available at: https://www.shoefitr.io/ (Accessed: 03
June 2024).
[11] Python django tutorial: Full-featured web app part 1 - getting started (2018)
YouTube. Available at: https://www.youtube.com/watch?v=UmljXZIypDc
(Accessed: 03 June 2024).
[12] Python django tutorial for beginners (2021) YouTube. Available at:
https://www.youtube.com/watch?v=rHux0gMZ3Eg (Accessed: 03 June 2024).
[14] How to measure your shoe size | daraz nepal | (2018) YouTube. Available at:
https://www.youtube.com/watch?v=kPQ2s_NeTMU (Accessed: 03 June 2024).
[15] Django project introduction: Django project tutorial [1] (2020) YouTube.
Available at: https://www.youtube.com/watch?v=gAI218HSK8s (Accessed: 03
June 2024).
13. POSTER