Skip to content

⭐️A face recognition system that detects people with food allergy or specific dietory restriction⭐️

License

Notifications You must be signed in to change notification settings

SadDONUT1/Dietary-Management-System-for-Campus-Dining-using-Face-Recognition

Repository files navigation

Dietary Management System for Campus Dining using Face Recognition

four_files

I have always wondered what would happen if the students in our school consume food that they are severely allergic to? What if they were not aware that the food contains those harmful ingredients? These thoughts came across to me when I faced up a disappointing news article talking about a student passing out from allergens. This is when I decided to take action about the circumstance and create a system that would prevent these incidents from happening.

Table of Content

Set up the environment

  1. Python

  2. Install required python library modules

    a) open cv (pip install opencv-python)

    b) numpy (pip install numpy)

    c) pillow (pip install pillow)

    d) requests (pip install requests)

    e) tkinter (pip install tk)

  3. Download required algorithm file

Step by Step on how to run the program

four_files
  1. Download four python files on the file list

  2. Create a folder and name it as you want

  3. In that folder, add all the files that you have downloaded

  4. Create an empty folder called "dataset" and "trainer"

four_files

Editing few lines of code

Changing paths of file according to the user's detail

Open a terminal, change the working directory to the folder and run the following command:

'file name / folder name' | pbcopy

This line of code allow you to copy the path of certain file or folder (useful when you use terminal as output)

  1. Edit the first "face initialisation" file by copying the path of algorithm file and pasting it on line 4

  2. Change line 33 to the path of your dataset folder

  3. Move on to the second file and change line 6 to path of dataset folder

  4. Change line 9 to algorithm file path and line 38 to path of trainer and add /trainer.yml at the end

  5. Carry on to the third file and edit line 10 and 13 to "trainer.yml" path and algorithm file respectively

  6. Change the host as your current IP address ($ipconfig getifaddr en0 for mac), same for the next file

  7. and.. you are ready!

About

⭐️A face recognition system that detects people with food allergy or specific dietory restriction⭐️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages