Skip to content

The software calculates the bmi from the person's photo. It compares with previous measurements and gives advice.

Notifications You must be signed in to change notification settings

meteahmetyakar/Bmi-Calculator-With-Image-Processing

Repository files navigation

BMI CALCULATOR

Overview

The software is an extremely primitive prototype written to study on image processing and AI. The aim of the software is to calculate the bmi from the person's photo and compare it with the previous measurements, if any, and make recommendations. There is no height, weight or any other entry in the software. Bmi calculation and recognition the person is done with the person's photo.

  • In the project, I used LBPG Algorithm and I developed in windows forms with C#

Usage and installation

Ip Camera Input Screen

We enter the ip of the ip camera there may be changes in the code according to the ip camera software you use, you can edit it. I used my own phone as a ip camera.



ip camera part in CameraScreen.cs

Face Recognition Screen

  • In this screen software is using webcam of computer because here the webcam is more useful than ip camera, but it can be easily converted to ip camera.
  • İf dot is green, this mean face detected and it can recognize

Camera Screen

  • Here the software uses the phone camera as an ip camera, I did not use a webcam because the phone camera can take portraits. It is very difficult to take portraits on webcam
  • For healthy results, the camera should be kept parallel to the person and the person should be centered.

Result Screen

  • Here old results are drawn from the database, compared with the new result and recommendations are given to the person





  • When BMI calculating the background of the captured photo is deleted and I use the remove.bg site's api to do this.
  • This site gives you 5 free attempts, that's why api-key must be change regularly.

You must write your api-key in the second part on line 65

Database Part

  • I created a class called database.cs and performed the database operations in it.
  • The software creates the database itself, changing the following three variables in the database.cs class will be sufficient for the database connection.

You just need to change the server name for the software to work. No need to manually create databases or tables.



Table Design

persons.dbo
Column Name Data Type
[Name Surname] varchar(50)
BMI varchar(50)
Date datetime



I used this article to create the algorithm of the body mass index calculation from the photo.

About

The software calculates the bmi from the person's photo. It compares with previous measurements and gives advice.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages