Giter Club home page Giter Club logo

footdetection's Introduction

Foot Measurement

Web application

Visit https://share.streamlit.io/scinerd68/footdetection/main/foot_detection.py to see the result.

Approach

  • Use k-means to segment the image
  • Detect edges on the segmented image
  • Detect bouding box around the A4 paper
  • Crop the A4 paper from the image
  • Detect bounding box around the foot
  • Based on length and width of paper's bounding box and foot's bouding box calculate real length and width of the foot (in cm) and output shoe size based on measured length and width

Image requirements

The uploaded image must satisfy the following requirements

  • Foot should be on an A4 paper, with the heel touching 1 edge of the paper
  • Floor color should not be white
  • Paper must be completly visible (all 4 corners are visible)

Visualization

Original image:
foot image
Step 1: Segment image
segment image
Step 2: Detect edges
edge image
Step 3: Detect paper bounding box
bouding box image
Step 4: Crop paper
cropped image
Step 5: Detect foot bounding box
foot bouding box image

Convert to shoe size table

Length (cm) Width (cm) Shoe size
21 7.5 - 8 32
21.1 - 21.5 8 33
21.6 - 22 8 - 8.5 34
22.1 - 22.5 8.5 35
22.6 - 23 8.5 - 9 36
23.1 - 23.5 9 37
23.6 - 24 9 - 9.5 38
24.1 - 24.5 9.5 39
24.6 - 25 9.5 - 10 40
25.1 - 25.5 10 41
25.6 - 26 10 - 10.5 42
26.1 - 26.5 10.5 43
26.6 - 27 10.5 - 11 44
> 27 > 11 45

footdetection's People

Contributors

scinerd68 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.