Skip to content

Latest commit

 

History

History
167 lines (107 loc) · 5.06 KB

README-en.md

File metadata and controls

167 lines (107 loc) · 5.06 KB

Contributors Forks Stargazers Issues Apache 2.0 License

I R I S

team logo

Prolog

Food Waste Disposal Costs Problem

There is vicious circle at cafeteria

Overordering -> Over-food production -> A lot of leftover -> Excessive Food Waste Disposal Costs

The number of people who eat dinner on weekends is greatly reduced, while food production remains unchanged.

This leads to a lot of leftovers.

However, the chef cooked according to the number of people scheduled for the official dinner.

To solve this problem, let's find out how many people are actually going to eat dinner using DeepLearning.

Predictions will be effective if only certain patterns are found in cafeteria

This program consists of several services that interact each other

Functional Design

Database

HA-Database-Infra

[WEB] Attendance Check using QR

API docs

Prerequisites

  • Docker Engine version >= 19.03
  • Docker Compose version >= 1.27.4
  1. Install docker follow below posts depends on your os
  1. Docker Compose Installation (Don't need at already installed)
$ cd scripts
$ ./install_docker-compse.sh

attendance_check service

Technique Used

front-end

  1. common
  • Flask
  • SQLAlchemy
  1. attendance_check

Database

  • Mysql ( >= 8.0)

Load balancer

  • HA Proxy
  • Read / Write Splitting : Before query switch uri that binds SQLAlchemy Object

Installation Process

1-1. Compose Database ( at INFRA_FRIDAY )

IF you use wsl or codespace, checkout branch to wsl or codespace

$ cd database
$ docker-compose up -d --build

1-2. Compose Database ( at Web_FRIDAY )

$ cd scripts
$ ./run_infra.sh
  1. Run Attendance Check app ( at Web_FRIDAY )
$ cd attendance_check
$ docker-compose up -d --build

Getting Started

attendance_check

Check the actual number of people who ate.

First, We need to give them a QR Code that include there id

and then bring device that has camera and follow below steps

This service auto check time on device, so you have to check the device time is correct

qr_scanned_screen

  1. go to Endpoint ( url/qr/scan) at Web Browser

  2. Show QR at rear camera

  3. wait 5~10 sec, check your id on screen

Team Information

Copyleft / End User License

License

This software is licensed under the Apache 2 license, quoted below.

Copyright 2020. Team IRIS

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


JsQRScanner

https://github.com/jbialobr/JsQRScanner

Apache License 2.0